관리자가 작성한 댓글만보이게..[급해용] 정보
관리자가 작성한 댓글만보이게..[급해용]본문
댓글 작성시 관리자가 작성한 댓글만 보이고
그외에작성 댓글은 작성자 본인만 보이게 하는 방법은 없을까요??ㅠㅠ
그외에작성 댓글은 작성자 본인만 보이게 하는 방법은 없을까요??ㅠㅠ
댓글 전체
<!-- 코멘트 출력 -->
<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 "테스트중입니다";
}
?>
<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])) {
if ($list[$i][wr_id]==$is_admin) { ---> if (is_admin($list[$i][mb_id])) {
감사합니다.^^ 다른방법으로 해결은 하였습니다만..
해볼께요..^^
해볼께요..^^