그 중 최근글 리스트에 좀더 부가적인 정보 (해당글의 작성시간, 트랙백 수)를 출력하는 팁입니다.
이 팁은 태터툴즈 0.96버전을 기준으로 작성되었습니다.
이 팁에 나온 파일의 줄수는 정확하지 않을 수 있습니다.
팁을 따라하시기 전에 백업하는 것을 잊지 마시기 바랍니다.
이 팁에 나온 파일의 줄수는 정확하지 않을 수 있습니다.
팁을 따라하시기 전에 백업하는 것을 잊지 마시기 바랍니다.
inc_pressword.php
141번째 줄 $sql = "select no, title, rp_cnt from t3_".$dbid." where $is_public order by regdate desc limit 0, $p_rct_ps_cnt"; 를 아래와 같이 수정해주세요.
$sql = "select no, title, rp_cnt, tb_cnt, regdate from t3_".$dbid." where $is_public order by regdate desc limit 0, $p_rct_ps_cnt";
144번째 줄 while(list($no, $title, $rp_cnt) = @mysql_fetch_array($result)) { 를 아래와 같이 수정해주세요.
while(list($no, $title, $rp_cnt, $tb_cnt, $regdate) = @mysql_fetch_array($result)) {
[TT]
149번째 줄 $p_rep = str_replace("[##_rctps_rep_rp_cnt_##]", $rp_cnt, $p_rep); 아래에 삽입해주세요.
// Update by Arzz START
$p_rep = str_replace("[##_rctps_rep_time_##]", get_timevalue0($regdate, 2), $p_rep); // 시간
$p_rep = str_replace("[##_rctps_rep_tb_cnt_##]", $tb_cnt, $p_rep); // 트랙백 수
// Update by Arzz END
$p_rep = str_replace("[##_rctps_rep_time_##]", get_timevalue0($regdate, 2), $p_rep); // 시간
$p_rep = str_replace("[##_rctps_rep_tb_cnt_##]", $tb_cnt, $p_rep); // 트랙백 수
// Update by Arzz END
skin.html (자신의 스킨파일)
자신의 스킨파일을 열어 최근글 출력부분 와 사이에 아래의 치환자를 알맞게 배치해줍니다.
[##_rctps_rep_time_##] : 적은 시각
[##_rctps_rep_tb_cnt_##] : 트랙백 수
[##_rctps_rep_time_##] : 적은 시각
[##_rctps_rep_tb_cnt_##] : 트랙백 수
[/TT]
'이럴땐, 이렇게! > 프로그래밍' 카테고리의 다른 글
| 태터툴즈 백업기능을 100% 믿지마세요. (13) | 2006/01/11 |
|---|---|
| 태터툴즈, 최근 코멘트(계층형코멘트)리스트 정리하기 (2) | 2005/09/11 |
| 태터툴즈, 최근글 목록에 추가정보 출력하기 (0) | 2005/09/11 |
| 태터툴즈, 링크를 풀다운메뉴로 만들기 (2) | 2005/05/28 |
| 동영상 링크 걸때 사이즈를 지정해 주세요 (0) | 2005/02/09 |
| 태터툴즈 Archive 풀다운메뉴로 바꾸기 (25) | 2005/01/19 |





댓글을 달아 주세요