묻고답하기

<?php
    /**
     * @class newest_images
     * @author zero (zero@nzeo.com)
     * @brief 최근 이미지를 출력하는 위젯
     * @version 0.1
     **/

    class newest_images extends WidgetHandler {

        /**
         * @brief 위젯의 실행 부분
         *
         * ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
         * 결과를 만든후 print가 아니라 return 해주어야 한다
         **/
        function proc($args) {
            // 대상 모듈 (mid_list는 기존 위젯의 호환을 위해서 처리하는 루틴을 유지. module_srls로 위젯에서 변경)
            $oModuleModel = &getModel('module');
            if($args->mid_list) {
                $mid_list = explode(",",$args->mid_list);
                if(count($mid_list)) {
                    $module_srls = $oModuleModel->getModuleSrlByMid($mid_list);
                    if(count($module_srls)) $args->module_srls = implode(',',$module_srls);
                    else $args->module_srls = null;
                } 
            }

            // 글자 제목 길이
            $widget_info->title_length = (int)$args->title_length;
            if(!$widget_info->title_length) $widget_info->title_length = 1;

            // 썸네일 생성 방법
            $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 = 1;

            // 가로 이미지 수
            $widget_info->cols_list_count = (int)$args->cols_list_count;
            if(!$widget_info->cols_list_count) $widget_info->cols_list_count = 5;

            // 노출 여부 체크
            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';

            // 제목
            $widget_info->title = $args->title;

            $oModuleModel = &getModel('module');

            // 대상 모듈이 선택되어 있지 않으면 해당 사이트의 전체 모듈을 대상으로 함
            $site_module_info = Context::get('site_module_info');
            if($args->module_srls) $obj->module_srls = $args->module_srls;
            else if($site_module_info) $obj->site_srl = (int)$site_module_info->site_srl;

            $obj->direct_download = 'Y';
            $obj->isvalid = 'Y';

            // 정해진 모듈에서 문서별 파일 목록을 구함
            $obj->list_count = $widget_info->rows_list_count*$widget_info->cols_list_count;
            $files_output = executeQueryArray("file.getOneFileInDocument", $obj);
            $files_count = count($files_output->data);

            $document_srl_list = array();
            $document_list = array();

            $oDocumentModel = &getModel('document');
            if($files_count>0) {
                for($i=0;$i<$files_count;$i++) $document_srl_list[] = $files_output->data[$i]->document_srl;

                $tmp_document_list = $oDocumentModel->getDocuments($document_srl_list);
                if(count($tmp_document_list)) {
                    foreach($tmp_document_list as $val) $document_list[] = $val;
                }
            }

            $document_count = count($document_list);
            $total_count = $widget_info->rows_list_count * $widget_info->cols_list_count;
            for($i=$document_count;$i<$total_count;$i++) $document_list[] = new DocumentItem();
            $widget_info->document_list = $document_list;

            // 모듈이 하나만 선택되었을 경우 대상 모듈 이름과 링크를 생성
            $module_srl = explode(',',$args->module_srls);
            if(count($module_srl)==1) {
                $oModuleModel = &getModel('module');
                $module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl[0]);
                if($module_info->site_srl) {
                    $site_info = $oModuleModel->getSiteInfo($module_info->site_srl);
                    if($site_info->domain) {
                        $widget_info->more_link = getSiteUrl('http://'.$site_info->domain, '','mid', $module_info->mid);
                    }
                } else {
                    $widget_info->more_link = getUrl('','mid',$module_info->mid);
                }
                $widget_info->module_name = $module_info->mid;
            }

            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;
        }
    }
?>






여기서 if(!$widget_info->title_length) $widget_info->title_length = 'N'; 로 했더니 아예 제목이 다 나와버리더라구요;;
http://www.ilovesongqian.com/xe/main/ 해당 사이트구요. 제목과 댓글 모두 출력하고 싶지 않은데 어떻게 해야 하나요?




<!-- 갤러리 -->
<div class="gal">
<img class="zbxe_widget_output" widget="newest_images" skin="photo" thumbnail_type="crop" thumbnail_width="199" thumbnail_height="150" cols_list_count="4" rows_list_count="1" display_author="N" display_regdate="N" display_readed_count="N" display_voted_count="N" module_srls="79"/>
</div>
<!-- //갤러리 -->
<BR><BR />
<!-- 공지사항 -->
<div class="ntc">
<img class="zbxe_widget_output" widget="content" skin="pastar_nv2" colorset="white" content_type="document" module_srls="75" list_type="title_content" tab_type="none" markup_type="table" list_count="3" page_count="1" subject_cut_size="45" content_cut_size="350" option_view="title,regdate,content" show_browser_title="N" show_comment_count="N" show_trackback_count="N" show_category="N" show_icon="Y" duration_new="24" order_target="list_order" order_type="desc" thumbnail_type="crop" />
</div>
<!-- //공지사항 -->




이건 파일 소스입니다.
아 그리고 공지 내용 글자 제한 없애려면 어떻게 해야 하나요?
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
바닐라스카이77 큰일.....레이아웃이 없어졌습니다. [1] 2013.01.29 by 바닐라스카이77
삼방디자인 xe를 다시 설치를 하려고 하는데 먼저설치된게 삭제가 안되요 [1] 2013.01.29 by monu
4b4 Sketchbook5 링크 게시판 질문 한번만 더 할게요! [2] 2013.01.29 by App-studio
Gmelon 누구나 답변하실수 있는.. [6] 2013.01.29 by App-studio
_writer ie 에서 background-image 가 안나옵니다. [1] 2013.01.29 by 푸시아
KTK nginx 관렵입니다..  
드들나루 엄동설한 끝에서 이제 입춘이 얼마 안남았습니다.  
mglkiss 메인 페이지 질문좀 [1] 2013.01.29 by 송동우
하나둘셋p 메뉴에 이미지를 적용 시켯는데요 어떻게 하면 이미지 말고 메뉴이름만 출력할수 있을가요 ? [1] 2013.01.29 by 하나둘셋p
핫남 신디케이션 의문사항. file  
냥만주의자 게시물의 제목 등 특정값을 입력폼으로 가져오는 방법에 대해 [1] 2013.01.29 by mindpainter
夜飛 확장변수 날짜 기본값 입력 문제 [1] 2013.01.29 by 푸시아
4b4 sketchbook5 익명게시판 닉네임을 바꾸고 싶어요! [1] 2013.01.29 by 송동우
4차원섭이 구글애드센스 광고 2개 삽입하면... [1] file 2013.01.29 by 맨유MU
4b4 익명 게시판 사용 중인데 닉네임 수정이 되질 않아요. [2] 2013.01.29 by MoeZya
검정고내 소스코드가 개체가 필요하다고 합니다..만약 nav.js안쓰시면 일없는데 쓰면 뜨네요.. file  
nado0124 컨텐츠 확장위젯에서 마우스 오버시 밑줄 색상 주는 법 (재질문 드립니다.) [2] 2013.01.29 by 송동우
nimm 게시판 확장변수 출력에 관해서요.. file  
:에반: marker_title 값은 필수입니다. member_srl 값은 필수입니다. 갑자기 게시판 글쓰기가 ㅠㅠ [1] 2013.01.29 by 푸시아
polbon 메인페이지의 베너가 게시판 목록에서도 노출이 됩니다..이미지 첨부.. [1] file 2013.01.29 by 송동우
polbon 분류관리가 전혀 먹지 않습니다..ㅠㅠ도와주세요.. [4] 2013.01.29 by polbon
4b4 Sketchbook5 링크 게시판을 사용하고 싶은데요. [1] 2013.01.29 by 윈컴이
pilasry 코멘트창에서 엔터키가 안먹히는 이유 [2] file 2013.01.29 by 송동우
XE만세 작성 글 보기 페이지에서 익명게시판 글도 나오게 하고싶습니다. [1] 2013.01.29 by 송동우
son xpresseditor 파일첨부 부분에서요...!!! [1] file 2013.01.29 by 송동우
XE모듈 css 초간단 질문 [1] file 2013.01.29 by 무도사랑
bangal 스팸로봇!! file  
heroxodn 플래시xml관련해서 질문드립니다!! 고수님들 답변좀부탁드릴게요 ~!  
초보관심 쉬운 설치 시작시, 브라우져 접속 끊김 file  
kran 자신의 게시글에 댓글이 올라왔을때 [2] 2013.01.29 by 송동우