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

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

· 12년 전 · 747 · 4
댓글 작성시 관리자가 작성한 댓글만 보이고

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

댓글 작성

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

로그인하기

댓글 4개

12년 전
<!-- 코멘트 출력 -->
<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 "테스트중입니다";
}
?>
12년 전
이런식으로 지금했는데...뭐가 문제일까요..?
전부다 테스트중입니다..
이렇게 보여지네요..
$list[$i][wr_id]는 등록자 아이디가 아닐뿐만 아니라 $is_admin과 같을 수도 없습니다


if ($list[$i][wr_id]==$is_admin) { ---> if (is_admin($list[$i][mb_id])) {
12년 전
감사합니다.^^ 다른방법으로 해결은 하였습니다만..
해볼께요..^^

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440