테스트 사이트 - 개발 중인 베타 버전입니다

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

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

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

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 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])) {
감사합니다.^^ 다른방법으로 해결은 하였습니다만..
해볼께요..^^

게시글 목록

번호 제목
284438
284437
284435
284430
284420
284417
284409
284401
284399
284397
284380
284378
284371
284370
284366
284364
284360
284357
284355
284354