답변 2개
회원 여분필드중 mb_10을 사용하지 않는경우에...
bbs/write_comment_update.php 제일 아래에
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id);
위로 넣어주세요
</p><p>if ($member[mb_10] != "1") {</p><p>$add_point = "지급할 포인트";</p><p>$cm_check_sql = " update g5_member set mb_point = mb_point +$add_point, mb_10 = '1' where mb_id = '$mb_id' ";</p><p>$cm_check_res = mysql_query($cm_check_sql);</p><p>}</p><p><span style="font-size: 13.3333330154419px; line-height: 1.5;">
댓글을 작성하려면 로그인이 필요합니다.
원글 하나당 댓글 포인트를 한번만 주고싶다는 것이겠죠?
write_comment_update.php 에서 아래처럼 수정 , $comment_id --> $wr_id 로 변경
// 포인트 부여
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 댓글쓰기", $bo_table, $comment_id, '댓글');
--->수정
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 댓글쓰기", $bo_table, $wr_id, '댓글');
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
자료 잘 이용합니다.
원글 하나당 댓글 포인트를 한번만 주고자할때!