코멘트에서 비밀글 사용시 글쓴이도 비밀로 하는 방법 질문입니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

코멘트에서 비밀글 사용시 글쓴이도 비밀로 하는 방법 질문입니다. 정보

코멘트에서 비밀글 사용시 글쓴이도 비밀로 하는 방법 질문입니다.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
                $str = $list[$i][content];
                if (strstr($list[$i][wr_option], "secret"))
                    $str = "<span class='small' style='color:#ff6600;'>$str</span>";

코멘트에 비밀글로 답글을 *비밀글 입니다. 라는 문구가 나옵니다
content 부분에 이렇게 출력이 되지요.

저는 글쓴이도 비밀 이라고 나오게 하고 싶습니다.
그러기 위해 /bbs/view_comment.php 부분을
찾아보니

$list[$i][content] = $list[$i][content1]= "비밀글 입니다.";
    if (!strstr($row[wr_option], "secret") ||
        $is_admin ||
        ($write[mb_id]==$member[mb_id] && $member[mb_id]) ||
        ($row[mb_id]==$member[mb_id] && $member[mb_id])) {
        $list[$i][content1] = $row[wr_content];
        $list[$i][content] = conv_content($row[wr_content], 0, 'wr_content');
        $list[$i][content] = search_font($stx, $list[$i][content]);
    }

이런식으로 되어있더라구요.
저는 글쓴이가 실명이기 때문에
<?
$row_member = sql_fetch(" select * from $g4[member_table] where mb_id = '{$list[$i][mb_id]}' ");
$row_member[mb_name] = $row_member[mb_name]= "비밀";?>

이런식으로 끌어와서 사용했습니다.
어떻게 해야 글쓴이(실명)을...
비밀글에서 글쓴이에게만 출력 시킬 수 있을까요 ?
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로