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, '코멘트');
이부분을
// 포인트 부여
$point_range_mynum = @mysql_fetch_array(mysql_query("SELECT count(*) FROM `$write_table` WHERE `wr_parent` ='$wr_id' AND `wr_is_comment` ='1' AND `mb_id` = '$mb_id'"));
if($point_range_mynum[0]<=3)
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
이렇게 수정해주시면 (빨간색 조건문 추가)
한 게시물에 자신이 작성한 댓글 3개까지만 포인트가 지급됩니다.
파일을 수정해 주시면 됩니다.
// 포인트 부여
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
이부분을
// 포인트 부여
$point_range_mynum = @mysql_fetch_array(mysql_query("SELECT count(*) FROM `$write_table` WHERE `wr_parent` ='$wr_id' AND `wr_is_comment` ='1' AND `mb_id` = '$mb_id'"));
if($point_range_mynum[0]<=3)
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
이렇게 수정해주시면 (빨간색 조건문 추가)
한 게시물에 자신이 작성한 댓글 3개까지만 포인트가 지급됩니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 34021 | |
| 33994 | |
| 33922 | |
| 33895 | |
| 33889 | |
| 33882 | |
| 33868 |
최신글
최신글 함수 개량
11
|
| 33863 | |
| 33859 | |
| 33857 | |
| 33849 | |
| 33842 | |
| 33835 | |
| 33830 | |
| 33828 | |
| 33807 | |
| 33797 | |
| 33796 | |
| 33791 | |
| 33786 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기