나의 최근게시물에서 제외하고 싶은그룹이 있는데.. 정보
나의 최근게시물에서 제외하고 싶은그룹이 있는데..
본문
다음 스킨을 적용해서 잘 사용하고 있습니다.
그런데 하나의 그룹에서 쓰는글들은 나의 최근게시물에서 나오지 않게 하고 싶은데
어떻게 해야할까요?
댓글 전체
$sql2 = "select count(*) as cnt from g4_board_new inner join g4_board using( bo_table) where wr_id = wr_parent and mb_id = 'admin' and gr_id !='some_gr_id' "
$sql = " select bo_table, wr_parent from $g4[board_new_table] a inner join g4_board using ( bo_table)
where mb_id = '$member[mb_id]'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
$sql = " select bo_table, wr_parent from $g4[board_new_table] a inner join g4_board using ( bo_table)
where mb_id = '$member[mb_id]'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
다음과 같은 애러가 뜹니다.
select bo_table, wr_parent from g4_board_new a inner join g4_board using( bo_table) where mb_id = 'boriba' and a.wr_id = a.wr_parent order by bn_id desc, a.bo_table, wr_parent limit 0, 5
1052 : Column: 'bo_table' in field list is ambiguous
error file : /shop/mypage.php
select bo_table, wr_parent from g4_board_new a inner join g4_board using( bo_table) where mb_id = 'boriba' and a.wr_id = a.wr_parent order by bn_id desc, a.bo_table, wr_parent limit 0, 5
1052 : Column: 'bo_table' in field list is ambiguous
error file : /shop/mypage.php
여기만 바꿔 주세요.
select bo_table, wr_parent from g4_board ...
를
select a.bo_table, wr_parent from g4_board ...
로.
select bo_table, wr_parent from g4_board ...
를
select a.bo_table, wr_parent from g4_board ...
로.
$sql2 = "select count(*) as cnt from g4_board_new inner join g4_board using( bo_table) where wr_id = wr_parent and mb_id = 'admin' and gr_id !='ckk' " ;
$sql = " select a.bo_table, wr_parent from $g4[board_new_table] a inner join g4_board using ( bo_table)
where mb_id = '$member[mb_id]'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
이렇게 하여주었습니다. ckk 그룹이 제외 되지 않는군요?
$sql = " select a.bo_table, wr_parent from $g4[board_new_table] a inner join g4_board using ( bo_table)
where mb_id = '$member[mb_id]'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
이렇게 하여주었습니다. ckk 그룹이 제외 되지 않는군요?
$sql = " select a.bo_table, a.wr_parent from $g4[board_new_table] a inner join g4_board using ( bo_table)
where mb_id = '$member[mb_id]'
and gr_id !='ckk'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
이렇게 넣어주니 ckk 그룹리스트가 안올라오네요 고맙습니다.
예전에도 그룹문제로 rolo 님에게 도움을 받았던거 같은데 ..
고맙습니다.
where mb_id = '$member[mb_id]'
and gr_id !='ckk'
and a.wr_id = a.wr_parent
order by bn_id desc, a.bo_table, wr_parent limit $from_record, $new_count ";
이렇게 넣어주니 ckk 그룹리스트가 안올라오네요 고맙습니다.
예전에도 그룹문제로 rolo 님에게 도움을 받았던거 같은데 ..
고맙습니다.
관리자 게시판 설정에서 "전체 검색 사용 사용"을 해제하시기 바랍니다.
해제한 후에 작성된 글은 최근게시물에 나오지 않습니다.
해제한 후에 작성된 글은 최근게시물에 나오지 않습니다.
해제를 해도 나의최근게시물에 나오는군요..
예전에 이미 등록된것은 나올겁니다.
최근게시물에 보관되는 기간이 지나면 이전것은 자동 삭제될것입니다.
최근게시물에 보관되는 기간이 지나면 이전것은 자동 삭제될것입니다.
검색체크 해제하고
글을 다시 올려도 나의 최근게시물 리스트에 나오네요..
이렇게 끝까지 도와주셔서 감사드립니다.
소스에 $sql 문에 where gr_id !='gr_id' "
해주니 해결되었습니다.
글을 다시 올려도 나의 최근게시물 리스트에 나오네요..
이렇게 끝까지 도와주셔서 감사드립니다.
소스에 $sql 문에 where gr_id !='gr_id' "
해주니 해결되었습니다.
아 그리고 스킨에서 해결가능한 이런방법도 있습니다.
그누보드4 : 팁(tip) > 글등록시 스킨에서 최근게시물($g4[board_new_table])의 글삭제하기
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=605
그누보드4 : 팁(tip) > 글등록시 스킨에서 최근게시물($g4[board_new_table])의 글삭제하기
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=605
스킨에서 해결하면 페이지마다 보이는 게시물 갯수가 달라질 수 있습니다.==33
게시판 테이블과 최근게시물 테이블이 다른데....
페이지마다 보이는 게시물 갯수가 달라진다는것이 어떤것인지 이해가 되지 않습니다
페이지마다 보이는 게시물 갯수가 달라진다는것이 어떤것인지 이해가 되지 않습니다
제가 혼자 옆길로 샛군요. 나의 최신 게시물 스킨을 가리키는 줄 알았습니다 .