이어가는 댓글에 포인트를 주지 않습니다.(도배방지) 정보
이어가는 댓글에 포인트를 주지 않습니다.(도배방지)본문
bbs/write_comment_update.php
파일을 수정해 주시면 됩니다.
// 포인트 부여
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
이부분을
// 포인트 부여
if($tmp_comment_reply) $least_check = @sql_query("SELECT mb_id FROM `$write_table` WHERE `wr_parent` =$wr_id AND `wr_is_comment`=1 AND `wr_comment` = '$tmp_comment' ORDER BY `$write_table`.`wr_id` DESC LIMIT 0 , 2");
else $least_check = @sql_query("SELECT mb_id FROM `$write_table` WHERE `wr_parent` =$wr_id AND `wr_comment_reply` = '' AND `wr_is_comment`=1 ORDER BY `$write_table`.`wr_id` DESC LIMIT 0 , 2");
if(mysql_result($least_check,1)!=$mb_id)
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
연달아 댓글을 작성시 포인트를 주지 않습니다.
2
댓글 3개
감사합니다. 수고하셨습니다 ^ㅡ^