코멘트에서 비밀글 사용시 글쓴이도 비밀로 하는 방법 질문입니다.
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
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]= "비밀";?>
이런식으로 끌어와서 사용했습니다.
어떻게 해야 글쓴이(실명)을...
비밀글에서 글쓴이에게만 출력 시킬 수 있을까요 ?
오류 주소 :
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]= "비밀";?>
이런식으로 끌어와서 사용했습니다.
어떻게 해야 글쓴이(실명)을...
비밀글에서 글쓴이에게만 출력 시킬 수 있을까요 ?
댓글 2개
12년 전
기존스킨에서 원하시는 기능이 있는걸로 아는데요? 답글시에 비밀글에 체크만하시면 되는데요~
12년 전
글쓴이는 출력이 됩니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기