우선 이 팁은 comace님의 팁을 참고했음을 명시합니다. ( https://www.nzeo.com/bbs/zboard.php?id=cgi_tip&no=5598 )

원본소스 기준으로 comment_ok.php를 보시면, 92째줄에


// 해당글이 있는 지를 검사
        $check = mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where no = '$no'", $connect));
        if(!$check[0]) Error("원본 글이 존재하지 않습니다.");



위 코드가 있습니다. 바로 아래에 추가해 주세요.


// 30일 이상 지난 글에 코멘트 등록 방지
        $old_data = mysql_fetch_array(mysql_query("select headnum, reg_date from $t_board"."_$id where no = '$parent'", $connect));
        if(($reg_date - $old_data[reg_date]) >= (86400 * 30) && $old_data[headnum] > -2000000000 && !$is_admin) error("등록 후 30일 이상 지난 글에는 코멘트를 등록할 수 없습니다.");



위 코드만 추가해 주시면 30일 이상 지난 글에는 코멘트를 달 수 없게 됩니다.

만약 15일 이상 지난 글에 코멘트를 달지 못하게 하시려면 (86400 * 30) 부분에서 30 을 15 로 수정하시면 되겠죠.

그리고 코멘트를 허용하되, 포인트를 주고 싶지 않다면 위 코드 대신 105째줄 쯤에 있는


// 회원일 경우 해당 해원의 점수 주기
        @mysql_query("update $member_table set point2=point2+1 where no='$member[no]'",$connect) or error(mysql_error());



부분을 아래와 같이 수정하시면 될 겁니다. (이건 테스트해보질 않았... OTL)


// 30일이 지나지 않은 글이고 회원일 경우 해당 해원의 점수 주기
        $old_data = mysql_fetch_array(mysql_query("select headnum, reg_date from $t_board"."_$id where no = '$parent'", $connect));
        if(($reg_date - $old_data[reg_date]) >= (86400 * 30) && $old_data[headnum] > -2000000000 && !$is_admin) {
                @mysql_query("update $member_table set point2=point2+1 where no='$member[no]'",$connect) or error(mysql_error());
        }