특정게시판 댓글포인트
본문
a게시판 b게시판 c게시판중
a게시판만 댓글포인트를 계속증가시키지않고 한개의 댓글에만 포인트를 주고싶은데
어떻게 해야하는지 알려주시면 감사하겠습니다....
답변 1
a게시판 스킨을 따로 만드시고 write_commnet_update.php 에 아래소스를 넣어보세요
$cmt_write = sql_fetch(" select count(*) as cnt from $write_table where wr_parent = '$wr_id' and wr_is_comment = 1 and mb_id = '{$member['mb_id']}' ");
if ($cmt_write['cnt'] < 2) {
// 포인트 부여
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 댓글쓰기", $bo_table, $comment_id, '댓글');
}
답변을 작성하시기 전에 로그인 해주세요.