게시판을 익명으로 만들었는데 회원은 익명이 아니네요 정보
게시판을 익명으로 만들었는데 회원은 익명이 아니네요본문
write.skin.php를
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$is_name = false;
$is_password = false;
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=wr_name value="익명">
이렇게 설정했더니 비로그인상태에서는 닉이 익명으로 뜨지만 회원인 상태에서는 닉네임이 그대로 노출되더라구요, 활용팁 게시판에서 익명으로 바꾸는 법을 찾아서 해봤지만 한글로는 안 되는것 같고, 어떻게 해야 회원인 상태에서도 닉이 똑같이 나올수 있을까요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$is_name = false;
$is_password = false;
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=wr_name value="익명">
이렇게 설정했더니 비로그인상태에서는 닉이 익명으로 뜨지만 회원인 상태에서는 닉네임이 그대로 노출되더라구요, 활용팁 게시판에서 익명으로 바꾸는 법을 찾아서 해봤지만 한글로는 안 되는것 같고, 어떻게 해야 회원인 상태에서도 닉이 똑같이 나올수 있을까요?
댓글 전체
게시글 등록을 처리하는 화일에서 회원인 경우는 자동으로 이름이나 닉넴이 들어갑니다
그러니 저렇게 하는 것은 아무 소용없는 것이죠
방법은 세가지입니다
디비에는 정상 입력하되 리스트스킨과 뷰스킨에서 이름 출력 부분을 다르게 보여주는 방법이있겠고
스킨 폴더에 write_update.skin.php를 만들고 아래코드를 넣는 방법이 잇습니다
sql_query("update $write_table set wr_name='익명' where wr_id='$wr_id'");
세번째는 write_update.php 자체를 수정하는 것인데 좋은 방법은 못됩니다
그러니 저렇게 하는 것은 아무 소용없는 것이죠
방법은 세가지입니다
디비에는 정상 입력하되 리스트스킨과 뷰스킨에서 이름 출력 부분을 다르게 보여주는 방법이있겠고
스킨 폴더에 write_update.skin.php를 만들고 아래코드를 넣는 방법이 잇습니다
sql_query("update $write_table set wr_name='익명' where wr_id='$wr_id'");
세번째는 write_update.php 자체를 수정하는 것인데 좋은 방법은 못됩니다