최신글에서 비밀글은 안불러오려면 정보
그누보드 최신글에서 비밀글은 안불러오려면
본문
>
> 최신글에서 비밀글 안불러 오려면 어떻게 해야하죠?
> 답글 안불러 오는것처럼 대충 때래맞추기로 해볼려고 했더니, 역시 무식;;; 해서 안되네요
> latest.lib.php파일에서
> 이부분을 어뜨게 하믄 될꺼같은데;;
>
> $sql = " select *
> from {$cfg[write_table_prefix]}{$bo_table}
> where wr_comment = 0
> order by wr_id desc limit 0, $rows ";
>
> 도와주세요
>
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
and wr_secret = 0
order by wr_id desc limit 0, $rows ";
으로 하시면 비밀글은 SELECT 하지 않을겁니다.
참고로 비밀글만 SELECT 하실 경우
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
and wr_secret = 1
order by wr_id desc limit 0, $rows ";
> 최신글에서 비밀글 안불러 오려면 어떻게 해야하죠?
> 답글 안불러 오는것처럼 대충 때래맞추기로 해볼려고 했더니, 역시 무식;;; 해서 안되네요
> latest.lib.php파일에서
> 이부분을 어뜨게 하믄 될꺼같은데;;
>
> $sql = " select *
> from {$cfg[write_table_prefix]}{$bo_table}
> where wr_comment = 0
> order by wr_id desc limit 0, $rows ";
>
> 도와주세요
>
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
and wr_secret = 0
order by wr_id desc limit 0, $rows ";
으로 하시면 비밀글은 SELECT 하지 않을겁니다.
참고로 비밀글만 SELECT 하실 경우
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
and wr_secret = 1
order by wr_id desc limit 0, $rows ";
댓글 전체

감사합니다. ^^