묻고답하기

커스텀되어있는 최근 게시물을 사용하고 있는데요

포인트 투표가 된 게시글만 최근게시물 위젯에 나타나고

일반 게시물은 최근게시물 위젯에 나타나질 않고 있습니다.

원인이 뭘까요?



==== 아래는 메인화면 최근게시물 위젯 내용입니다.

                    <div class="Rdiv"><img class="zbxe_widget_output" widget="popular_document" skin="ysdesign01" colorset="normal" list_type="readed_count" order_type="desc" order_keyword="실시간무료" list_count="7" view_date="30" mid_list="review_apple,review_ann,review_win,review_ipad" subject_cut_size="26" thumbnail_type="crop" display_author="N" display_regdate="N" display_readed_count="Y" display_voted_count="N" /></div></td>



===== 아래는 Popular_document 위젯 내용입니다.

<?php
    /**
     * @class popular_document
     * @author Hwani (donghanee@gmail.com)
     * @brief 인기 게시물을 출력하는 위젯
     * @version 0.2
     **/
    class popular_document extends WidgetHandler {
        /**
         * @brief 위젯의 실행 부분
         *
         * ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
         * 결과를 만든후 print가 아니라 return 해주어야 한다
         **/
        function proc($args) {
            // 위젯 자체적으로 설정한 변수들을 체크
            $title = $args->title;
            $order_target = $args->order_target;
            if(!in_array($order_target, array('readed_count','voted_count','point'))) $order_target = 'readed_count';
            $order_type = $args->order_type;
            if(!in_array($order_type, array('asc','desc'))) $order_type = 'desc';
$order_keyword = $args->order_keyword;
if(!in_array($order_keyword, array('유료','무료','실시간무료')));
            $list_count = (int)$args->list_count;
            if(!$list_count) $list_count = 5;
            $mid_list = explode(",",$args->mid_list);
            $subject_cut_size = $args->subject_cut_size;
            if(!$subject_cut_size) $subject_cut_size = 0;
//페이징 때문에 추가
$list_count = (int)$args->list_count;
            if(!$list_count) $list_count = 5;
// 위젯 외곽 꾸미기 처리..
$design_top = $args->design_top;
            $design_middle = $args->design_middle;
            $design_bottom = $args->design_bottom;
            $design_img = $args->design_img;
            // module_srl 대신 mid가 넘어왔을 경우는 직접 module_srl을 구해줌
            if($mid_list) {
                $oModuleModel = &getModel('module');
                $module_srl = $oModuleModel->getModuleSrlByMid($mid_list);
            }
            // DocumentModel::getDocumentList()를 이용하기 위한 변수 정리
            if(is_array($module_srl)) $obj->module_srl = implode(',',$module_srl);
            else $obj->module_srl = $module_srl;
$obj->sort_index = $order_target;
            $obj->order_type = $order_type=="desc"?"desc":"asc";
$obj->order_keyword = $order_keyword;
            $obj->list_count = $list_count;
$obj->s_date=-1;
if($args->view_date)
{
//time -> zdate 변형의 함수 필요
$date=ztime(date('YmdHis')) - 60*60*24*$args->view_date;
$date2=date('YmdHis', $date);
$obj->s_date=$date2;
}
         //   if($obj->sort_index == 'list_order') $obj->avoid_notice = -2100000000;
//$obj->category_srl = $args->category_srl;
if($args->category_srl && !is_array($args->category_srl)) $args->category_srl = explode(',',$args->category_srl);
            //if(is_array($args->category_srl)) $args->category_srl = implode(',',$args->category_srl);
for($i=0; $i < count($args->category_srl); $i++) {
$csrl = $args->category_srl[$i];
$sql = "select category_srl from xe_document_categories where parent_srl=$csrl";
$qry = mysql_query($sql);
while($psrl = mysql_fetch_array($qry)) {
$realsrl .= $psrl[0].",";
}
$realsrl = substr($realsrl,0,-1);
}
$obj->category_srl = $realsrl;
/* 페이지 네비게이션 기능 추가 */
// 페이지 목록 수 (1,2,3,4....)
$page_count = $args->page_count;
            if(!$page_count) $page_count = 5;
            $obj->page_count = $page_count;
// 페이지 출력 여부
$page_type = $args->page_type;
// 페이지 번호 구하기
if($page_type=='Y') $obj->page = (Context::get('page'))? Context::get('page'): 1;
/* 페이지 네비게이션 기능 추가 끝 */
            $output = executeQueryArray('widgets.popular_document.getPopularDocuments', $obj);
/* 페이지 네비게이션 기능 추가 */
$output_count = executeQueryArray('widgets.popular_document.getNewestDocumentsCount', $obj);
/* 페이지 네비게이션 기능 추가 끝 */
// document 모듈의 model 객체를 받아서 결과를 객체화 시킴
            $oDocumentModel = &getModel('document');
            // 오류가 생기면 그냥 무시
            if(!$output->toBool()) return;
            // 결과가 있으면 각 문서 객체화를 시킴
            if(count($output->data)) {
                foreach($output->data as $key => $attribute) {
                    $document_srl = $attribute->document_srl;
                    $oDocument = null;
                    $oDocument = new documentItem();
                    $oDocument->setAttribute($attribute);
                    $document_list[] = $oDocument;
                }
            } else {
                $document_list = array();
                
            }
//이미지 위젯 호환
            // 글자 제목 길이
            $widget_info->title_length = (int)$subject_cut_size;
            if(!$widget_info->title_length) $widget_info->title_length = 10;
            // 썸네일 생성 방법
            $widget_info->thumbnail_type = $args->thumbnail_type;
            if(!$widget_info->thumbnail_type) $widget_info->thumbnail_type = 'crop';
            // 썸네일 가로 크기
            $widget_info->thumbnail_width = (int)$args->thumbnail_width;
            if(!$widget_info->thumbnail_width) $widget_info->thumbnail_width = 100;
            // 썸네일 세로 크기
            $widget_info->thumbnail_height = (int)$args->thumbnail_height;
            if(!$widget_info->thumbnail_height) $widget_info->thumbnail_height = 100;
// 가로 이미지 수
            $widget_info->rows_list_count = (int)$args->rows_list_count;
            if(!$widget_info->rows_list_count) $widget_info->rows_list_count = 5;
            // 세로 이미지 수
            $widget_info->cols_list_count = (int)$args->cols_list_count;
            if(!$widget_info->cols_list_count) $widget_info->cols_list_count = 1;
            // 노출 여부 체크
            if($args->display_author!='Y') $widget_info->display_author = 'N';
            else $widget_info->display_author = 'Y';
            if($args->display_regdate!='Y') $widget_info->display_regdate = 'N';
            else $widget_info->display_regdate = 'Y';
            if($args->display_readed_count!='Y') $widget_info->display_readed_count = 'N'+ ';
            else $widget_info->display_readed_count = 'Y';
            if($args->display_voted_count!='Y') $widget_info->display_voted_count = 'N';
            else $widget_info->display_voted_count = 'Y';
            // 템플릿 파일에서 사용할 변수들을 세팅
            if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
            
            $widget_info->title = $title;
            $widget_info->document_list = $document_list;
            $widget_info->subject_cut_size = $subject_cut_size;
/* 페이지 네비게이션 기능 추가 */
            $widget_info->page_type = $page_type;
$widget_info->total_count = $output_count->data[0]->count; // 전체 개시물 수
            $widget_info->page = (!Context::get('page'))? 1:Context::get('page'); // 현재 페이지
// 총 페이지 수
$total_count = $widget_info->total_count/$list_count;
if($widget_info->total_count%$list_count != 0) $total_count+=1;
            $widget_info->total_page = floor($total_count); // 총 페이지 수
            $widget_info->page_count = $page_count; // 총 페이지 수
/* 페이지 네비게이션 기능 추가 끝 */
//위젯꾸밈을 위해 사용한 변수 셋팅
$widget_info->design_top = $design_top;
            $widget_info->design_middle = $design_middle;
            $widget_info->design_bottom = $design_bottom;
            $widget_info->design_img = $design_img;
$widget_info->list_count = $list_count;
            Context::set('widget_info', $widget_info);
            // 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
            $tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
            Context::set('colorset', $args->colorset);
            // 템플릿 파일을 지정
            $tpl_file = 'list';
            // 템플릿 컴파일
            $oTemplate = &TemplateHandler::getInstance();
            $output = $oTemplate->compile($tpl_path, $tpl_file);
            return $output;
        }
    }
/**
* @brief 다음 페이지 요청
**/
function WD_getNextPage($total_count, $total_page, $cur_page, $page_count = 10) {
$first_page = $cur_page - (int)($page_count/2);
if($first_page<1) $first_page = 1;
$last_page = $total_page;
if($last_page>$total_page) $last_page = $total_page;
if($total_page < $page_count) $page_count = $total_page;
$GLOBALS['wd_total_page'] = $total_page;
$GLOBALS['wd_first_page'] = $first_page;
$GLOBALS['wd_page_count'] = $page_count;
$GLOBALS['wd_last_page'] = $last_page;
$page->first_page = $first_page;
$page->last_page = $last_page;
return $page;
}
function WD_getNextPage2() {
$page = $GLOBALS['wd_first_page']+$GLOBALS['wd_i']++;
if($GLOBALS['wd_i'] > $GLOBALS['wd_page_count'] || $page > $GLOBALS['wd_last_page']) $page = 0;
return $page;
}
function WD_getNextClear() {
$GLOBALS['wd_i'] = 0;
}
?>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
한승연♡ 홈페이지에 노래 어떻게 넣나여 ?? [3] 2009.02.05 by 만쓰별(정만)
LucasTin BNU님의 플래너의 미니 달력 크기 조정 어떻게 하나요? [1] 2009.02.05 by 만쓰별(정만)
OBBa 저 오늘처음왓는데 .. [4] 2009.02.05 by 만쓰별(정만)
김용중 최근게시물뽑아올 때 공지사항 제외하는 방법 [3] 2009.02.05 by SM3
블랙카드 페이지수정에서 직접쓰기한뒤 그림올리고 그림 링크 못거나여? [2] file 2009.02.05 by 만쓰별(정만)
▷◁ 타락천사 에디터 폰트 추가후 에러 메시지 [2] 2009.02.05 by ▷◁ 타락천사
ksadonis 질문드립니다~~ [2] 2009.02.06 by ksadonis
Sus4_ 글을 등록하면 다른 게시판에도 글 등록되기 [2] 2009.02.06 by 주사위내기
하늘이22 열븐 도움 바랍니다.  
하늘이22 /이미지/동영상/첨부파일 아이콘 없애기 [2] 2009.02.06 by 하늘이22
gtobe 프레임셋이뜨게하기/ 메인페이지뜨게하기. [5] 2009.02.06 by EveR™
탄타끼 맨 처음 설치중에 말인데요 [1] 2009.02.06 by 백성찬
934083 최근글 출력시 more 링크 출력 및 컬러셋 문제 [4] file 2009.02.06 by 934083
제이 덧글 (리플) 입력란을 간단하게 할 수 없을까요? [1] 2009.02.06 by 백성찬
만쓰별(정만) 태그 출력기 1.1.5업데이트후 태그 다 안나옴 !! [1] file 2009.02.06 by 백성찬
산묘 이슈 트래커 권한 설정 오류  
최영석222 이런 메인배너 어떻게 만드나요? [고수] [1] 2009.02.06 by NZ448
피키4 주소에 따른 관련된 에러  
miso777 메인 페이지 메뉴 제목부분 위치조정 질문입니다. [2] file 2009.02.06 by miso777
피키4 다운권한이 없습니다. svn 수시 업로드 문제일까요?  
Badboy 외부 페이지 [1] 2009.02.06 by 넨네
김치파워 큰일났어요 어쩜좋아요 [1] 2009.02.06 by 넨네
제보공부중 게시물 "추천"을 다른 단어로 변경하려면? [1] 2009.02.06 by 팩토리
이미경681 카피라이트 안보이게 하기 [2] 2009.02.06 by 팩토리
비밀얌 가입하기에 추가 정보 공개 설정 여부 [2] 2009.02.06 by 熟女
꼰대영감 홈피 메인화면 사진을 교체하고 싶은데요.. [2] 2009.02.06 by 熟女
jk1 글쓰기 오류와 프로필 이미지 출력 문제 [2] file 2009.02.06 by jk1
hammers admin 모듈의 추가 [2] 2009.02.06 by hammers
cgregs 바카라때문에 짜증나네요 [2] 2009.02.06 by 올린이
류혈애서 재대로 된 검색을 안하고 질문을 해서 죄송합니다, [1] 2009.02.06 by 비나무