카페 접속하면 최신글 중에 리플 글 안보이게 ... > 그누4 플러그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다.
플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

카페 접속하면 최신글 중에 리플 글 안보이게 ... 정보

카페 접속하면 최신글 중에 리플 글 안보이게 ...

본문

리플 달린것도 새글 처럼 올라와 있는데

이거 본문 제목만 보이고 리플은 안보이게 할수 있는 방법이 없을까요?

초자다 보니...^^

club 폴더에 ㅡ>club.lib.php 이 파일을 열어서 최신글 목록에..


$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";

위 부분을

$sql = " select * from $tmp_write_table where wr_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
   
이렇게도 고쳐 봤는데 이러면 리플단 본문이 안보이더군요 리플 안달린건 보이고요.그래서

$sql = " select * from $tmp_write_table where wr_is_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";

이렇게 해봤더니 처음 카페 생성하면 에러가 뜨는군요 기존에 있는것은 제대로 되는데...

123 이란 카페 생성시 에러가...

select * from g4_write_123 where wr_is_comment = 0 and ca_name = '공지사항' order by wr_id desc limit 0, 5
1054 : Unknown column 'wr_is_comment' in 'where clause'

error file : /club/cb_main.php

이런 에러가 뜨네요


방법이 없을까요..
추천
0
  • 복사

댓글 전체

$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' and wr_reply = '' order by wr_id desc limit 0, $rows ";

요렇게 하면 되지 않을까요???
$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' and wr_is_comment  = 0' order by wr_id desc limit 0, $rows ";

으로 하니까 되네요.!!
© SIRSOFT
현재 페이지 제일 처음으로