1. 댓글 카운팅 패치(겔드님)
태터가 0.96 정식버전으로 버전업이 되면서 댓글에 대한 답글의 카운팅을 하지 않게 된것을 카운팅하게 하는 패치
*수정하는 방법
1. 태터툴즈 0.96폴더 안에 있는 inc_function.php를 텍스트에디터로 불러옵니다.
2. 332번째 라인으로 가서
$sql = "select count(*) from t3_".$dbid."_reply where pno = $num and rno = 0";
을
$sql = "select count(*) from t3_".$dbid."_reply where pno = $num";
으로 바꿔줍니다. 밑줄친 부분이 사라졌지요.
3. 태터툴즈 0.96폴더 안에 있는 add_exe.php를 텍스트 에디터로 불러옵니다.
4. 40번째 라인으로 가서
if ($md == "rp"){
set_rp_cnt($num);
}
을 추가해주세요. 저부분이 있어야 댓글에 댓글을 달아도 카운팅이 됩니다.(....)
5. 저장하고 ftp를 통해 업로드합니다.
덧붙임 - 수정한후 바로 적용된 것을 확인한 것이 어려운것 같아서 간단히 테스트 답글을 작성한 후 삭제하면 적용된 것을 확실히 알 수 있음.
2. 최근 댓글 리스트에서 관리자 댓글 제거하기(도아님)
태터 정식버전에서 댓글에 대해 관리자가 답글을 남길경우 최근 답글 리스트에 관리자 답글이 나오는 것을 삭제하는 패치, 각 댓글에 대하여 한번에 답글을 다는 유저에게 유용함.
* 수정하는 방법
1. inc_presswork.php 파일을 연다
2. 다음과 같은 구문을 찾는다.
$sql = "select no, pno, name, body, regdate, is_secret from t3_".$dbid."_reply order by no desc limit 0, $p_rct_rp_cnt";
3. 찾은 구문위에 다음 세줄을 추가한다.
$sql = "select user_nick from t3_".$dbid."_setting";
$result = @mysql_query($sql);
list($user_nick) = mysql_fetch_row($result);
4. 찾은 구문에 다음과 같이 where name != '$user_nick' 부분을 추가한다.
$sql = "select no, pno, name, body, regdate, is_secret from t3_".$dbid."_reply where name != '$user_nick' order by no desc limit 0, $p_rct_rp_cnt";
이 주제와 관련된 글 목록
ㆍhttp://linarina.ibbun.com/tt/index.php?pl=484 - 08/26
ㆍhttp://offree.net/index.php?pl=307 - 08/21
ㆍhttp://crizin.net/index.php?pl=283 - 08/21
ㆍhttp://geld.pe.kr/tt/index.php?pl=141 - 08/21
ㆍhttp://offree.net/index.php?pl=306 - 08/21