관리자가 작성한 댓글만보이게..[급해용]

댓글 작성시 관리자가 작성한 댓글만 보이고

그외에작성 댓글은 작성자 본인만 보이게 하는 방법은 없을까요??ㅠㅠ
|

댓글 4개

<!-- 코멘트 출력 -->
<div style='line-height:20px; padding:7px; word-break:break-all; overflow:hidden; clear:both; '>
<?
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>";

$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);' border='0'>", $str);
if ($list[$i][wr_id]==$is_admin) {
echo $str;
} else {
echo "테스트중입니다";
}
?>
이런식으로 지금했는데...뭐가 문제일까요..?
전부다 테스트중입니다..
이렇게 보여지네요..
$list[$i][wr_id]는 등록자 아이디가 아닐뿐만 아니라 $is_admin과 같을 수도 없습니다


if ($list[$i][wr_id]==$is_admin) { ---> if (is_admin($list[$i][mb_id])) {
감사합니다.^^ 다른방법으로 해결은 하였습니다만..
해볼께요..^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
12년 전 조회 882
12년 전 조회 1,583
12년 전 조회 931
12년 전 조회 1,277
12년 전 조회 963
12년 전 조회 970
12년 전 조회 595
12년 전 조회 1,716
12년 전 조회 1,527
12년 전 조회 783
12년 전 조회 642
12년 전 조회 776
12년 전 조회 720
12년 전 조회 960
12년 전 조회 3,159
12년 전 조회 1,630
12년 전 조회 2,330
12년 전 조회 769
12년 전 조회 806
12년 전 조회 1,593
🐛 버그신고