특정게시판 최신글 추출... 정보
특정게시판 최신글 추출...
본문
물한모금님의 최신인기글 추출 스킨을 쓰고 있습니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76978&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B8%EA%B8%B0%EA%B2%80%EC%83%89&sop=and&page=1
헌데 이 게시판이 그냥 쓰면 잘 나오는데 제가 특정게시판만 추출하고자 합니다.
그래서 물한모금님이 쓰신 것처럼 best10.lib.php를
$sql= " select bo_table from {$g4['board_table']} where gr_id='$gr_id' and bo_use_search='1' order by bo_order_search ";
이렇게 수정하고 메인에 호출할 때 그룹아이디를 넣어서 수정을 했는데 추출이 전혀 되지 않고 있습니다.
<? echo izen_group('best10', 's01', wr_hit, 5, 34, 1);//인기글게시판, '스킨', '그룹명', 정렬필드, 출력갯수, 자를 문자열, 최근 몇일간을 출력할 것인가 ?>
이 외에 또 수정해야 할 부분이 있는건지 궁금합니다.
글올리고 하루를 기다려야 하나 해서 기다려봤는데 반응이 없네요.;;
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76978&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B8%EA%B8%B0%EA%B2%80%EC%83%89&sop=and&page=1
헌데 이 게시판이 그냥 쓰면 잘 나오는데 제가 특정게시판만 추출하고자 합니다.
그래서 물한모금님이 쓰신 것처럼 best10.lib.php를
$sql= " select bo_table from {$g4['board_table']} where gr_id='$gr_id' and bo_use_search='1' order by bo_order_search ";
이렇게 수정하고 메인에 호출할 때 그룹아이디를 넣어서 수정을 했는데 추출이 전혀 되지 않고 있습니다.
<? echo izen_group('best10', 's01', wr_hit, 5, 34, 1);//인기글게시판, '스킨', '그룹명', 정렬필드, 출력갯수, 자를 문자열, 최근 몇일간을 출력할 것인가 ?>
이 외에 또 수정해야 할 부분이 있는건지 궁금합니다.
글올리고 하루를 기다려야 하나 해서 기다려봤는데 반응이 없네요.;;
댓글 전체
저 부분은 특정 그룹을 이야기 하는것인데요. 특정게시판만 하려면 소스를 한번 더 수정하셔야 할듯합니다
<?php
$sql= " select bo_table from {$g4['board_table']} where bo_table='".$gr_id."'";
?>

아이쿠... 찰스님, 감사합니다.
$sql= " select bo_table from {$g4['board_table']} where bo_table='".$gr_id."' and bo_use_search='1' order by bo_order_search ";
요렇게 고쳤는데 마... 맞나요? ㅎ
잘나옵니다. ^ㅡ^
감사합니다~
$sql= " select bo_table from {$g4['board_table']} where bo_table='".$gr_id."' and bo_use_search='1' order by bo_order_search ";
요렇게 고쳤는데 마... 맞나요? ㅎ
잘나옵니다. ^ㅡ^
감사합니다~