RadarURL
웹 프로그래밍

제로보드 최근게시물 추출시 비밀글 보이고, 답글 안보이게

by JaeSoo posted Jan 12, 2006
?

Shortcut

PrevPrev Article

NextNext Article

ESCClose

Larger Font Smaller Font Up Down Go comment Print
안녕하세요.

이게 저도 찾던 거였는데 상당히 찾기 힘들더군요. 여긴 최근 으로 검색하면 글이 너무 많이 나와서리 --;

질문답변란에도 답이 거의 없구요.

그래서 올립니다.

outlogin.php 화일을 편집하시고,

$result = mysql_query("select * from $t_board"."_$id where is_secret=0 order by no desc limit $num", $connect) or die(mysql_error());

부분을 고쳐주셔야 합니다.

여기서 where is_secret=0 을 지워주시면 비밀글이 보입니다.

$result = mysql_query("select * from $t_board"."_$id where depth = 0 order by no desc limit $num", $connect) or die(mysql_error());

그리고 위와 같이 바꾸어 주시면 비밀글은 보이고, 답글([re]) 는 안보입니다.

비밀글, 답글도 안보이는건 조금 응용만 하면 될듯한데 전 필요가 없어서리 ^^

(php를 잘 모르기 때문에)

그럼, 도움이 되어드렸으면 좋겠네요.

출처 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=off&keyword=답글&select_arrange=headnum&desc=asc&no=3558

Who's JaeSoo

profile

http://JaeSoo.com Administrator


Articles

1 2 3 4 5 6 7 8 9 10