|
|
|
16년 전
|
조회 1,572
|
|
|
|
16년 전
|
조회 1,036
|
|
|
|
16년 전
|
조회 797
|
|
|
|
16년 전
|
조회 1,167
|
|
|
|
16년 전
|
조회 832
|
|
|
|
16년 전
|
조회 1,593
|
|
|
|
16년 전
|
조회 1,672
|
|
|
|
16년 전
|
조회 1,435
|
|
|
|
16년 전
|
조회 1,005
|
|
|
|
16년 전
|
조회 975
|
|
|
|
16년 전
|
조회 851
|
|
|
|
16년 전
|
조회 1,624
|
|
|
|
16년 전
|
조회 1,608
|
|
|
|
16년 전
|
조회 1,558
|
|
|
|
16년 전
|
조회 1,194
|
|
|
|
16년 전
|
조회 923
|
|
|
|
16년 전
|
조회 1,672
|
|
|
|
16년 전
|
조회 848
|
|
|
|
16년 전
|
조회 1,303
|
|
|
|
16년 전
|
조회 1,551
|
댓글 4개
if ($w == "c" || $w == "cu")
{
if ($member[mb_level] < $board[bo_comment_level])
alert("코멘트를 쓸 권한이 없습니다.");
}
이부분을
if ($w == "c" || $w == "cu")
{
$check = sql_fetch(" select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = '1' and mb_id = '$mb_id' ");
if ($check[cnt])
alert("코멘트를 한번이상 쓸수 없습니다.");
if ($member[mb_level] < $board[bo_comment_level])
alert("코멘트를 쓸 권한이 없습니다.");
}
이렇게 해보세요..처음부터 입력박스가 안보이게 하는 방법입니다..쿼리도 줄어들고...
view_comment.skin.php에서
<!-- 코멘트 리스트 -->
<div id="commentContents">
<?
$com_box=1; //추가
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
if($list[$i][mb_id]==$member[mb_id]) $com_box=0; //추가
?>
if(<?=$com_box?>)
comment_box('', 'c'); // 코멘트 입력폼이 보이도록 처리하기위해서 추가 (root님)