태터 툴즈를 사용하다보면(특히나 군데 군데 게시물을 삭제하다보면..) 목록에 나오는 게시물을 선택하면 다른 게시물이 나오는 경우가 있습니다.
저 외에 겪어 보신분도 계시리라 생각합니만..
그 문제를 수정하는 어설픈 방법입니다.(사실은 더 머리 굴리기 싫어서..{{으에}})
0.931을 기준으로 합니다.
index.php 라는 파일을 열어서 대략 470번째 줄에 보면
아래와 같은 문장이 있습니다.
select
no, category1, category2, title, body,
user_id, image_file_path1, image_file_path2, regdate,
rp_cnt, tb_cnt, is_sync, is_public
from
t3_".$dbid."
where
$is_public
$add_query
order by
regdate desc
limit $start, $end
이것을
if ($pl) {
$sql = "
select
no, category1, category2, title, body,
user_id, image_file_path1, image_file_path2, regdate,
rp_cnt, tb_cnt, is_sync, is_public
from
t3_".$dbid."
where
$is_public
and no=".$pl."
order by
regdate desc
";}
else
{
$sql = "
select
no, category1, category2, title, body,
user_id, image_file_path1, image_file_path2, regdate,
rp_cnt, tb_cnt, is_sync, is_public
from
t3_".$dbid."
where
$is_public
$add_query
order by
regdate desc
limit $start, $end
";}
이렇게 고칩니다.
게시물을 선택하면 pl 이라는 파라미터에 게시물 번호를 넘기는데
이상하게도 limit $start, $end 를 이용해서 게시물을 찾아갑니다.
그래서 pl 값이 있을 경우에는 바로 이 값을 이용하도록 수정했습니다.
다른 분들도 참고하시길...