질문과 답변 (구)

최근본상품
TOP
DOWN

질문과 답변 (구)

베스트글 출력 설정법

2016.11.11 13:48 368 1

본문

안녕하세요.

아래 베스트글 출력 설정 답변 내용 중 궁금한게 있습니다.

예로 게시판 번호 (G02_T01,G02_T02,G02_T03,G02_T04,G02_T05,G02_T06)

베스트글로 노출 적용 시, 아래 명령줄에서 어떤 부분에 추가/수정해야하는지요?

 // 베스트 SET
 public function latest_bestset($skin,$option,$bo_table='') {
  global $tpl, $tpl_name;

  $opt = '';
  $optset = $this->option_query($option);
  $title = $optset['title'] ? $optset['title']:'';
  $_option['today'] = "best=y||period=1";
  $_option['week'] = "best=y||period=7";
  $_option['month'] = "best=y||period=30";

  $opt .= $optset['count'] ? "||count=".$optset['count']:"||count=10";
  $opt .= $optset['cut_subject'] ? "||cut_subject=".$optset['cut_subject']:"||cut_subject=30";
  if($bo_table) {
   $opt .= "||bo_table=".$bo_table;
  } else {
   $opt .= $optset['bo_include'] ? "||bo_include=".$optset['bo_include']:"";
   $opt .= $optset['bo_exclude'] ? "||bo_exclude=".$optset['bo_exclude']:"";
   $opt .= $optset['gr_id'] ? "||gr_id=".$optset['gr_id']:"";
  }
  $opt .= $optset['where'] ? "||where=".$optset['where']:"";

  $_option['today'] .= $opt;
  $_option['week'] .= $opt;
  $_option['month'] .= $opt;

0
로그인 후 평가 가능합니다.
- 부끄럼소년 - 회원등급 : 지상계 / Level 6
포인트 7,768
경험치 3,856
[레벨 6] - 진행률 72%
- 가입일 : 2016-04-04 09:40:18
- 서명 : 미입력
- 자기소개 : 미입력

댓글목록 1

이윰IN님의 댓글

이윰IN 2016.11.11 15:37

{latest->latest_bestset('community','title=베스트 게시글||bo_include=G02_T01,G02_T02,G02_T03,G02_T04,G02_T05,G02_T06||count=9||cut_subject=30')}

이렇게 하시면 됩니다.

최신글 추출 옵션은
http://eyoom.net/page/?pid=latest
위 링크를 참조해 주세요.

축하합니다. 첫댓글 포인트 6포인트를 획득하였습니다.

질문과 답변 (채택기능) 게시판이 신설되었습니다.
질문과 답변 (구) 게시판은 글쓰기가 제한되오니 착오 없으시길 바랍니다. (댓글 및 조회는 여전히 가능합니다.)

전체 2,800 건 - 47 페이지
제목
페이지메이커 2016.11.18 414 0
준파 2016.11.18 298 0
지은 2016.11.18 464 0
지은 2016.11.17 473 0
지은 2016.11.17 543 0
부끄럼소년 2016.11.16 488 0
부끄럼소년 2016.11.15 578 0
designview 2016.11.15 300 0
tbtbbdww 2016.11.14 330 0
이온음료 2016.11.14 277 0
김세창 2016.11.13 366 0
부끄럼소년 2016.11.11 369 0
부끄럼소년 2016.11.11 572 0
부끄럼소년 2016.11.11 400 0
공상과학 2016.11.10 503 0