묻고답하기

<?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 남기남
윙보이 로그인시 홈페이지 이동 부분에서..마찰 [1] 2013.01.30 by 송동우
Funys 타유저 회원정보 보기 문의 입니다. [1] 2013.01.30 by 송동우
메테워 레벨에따른 글쓰기관련 질문.. [1] 2013.01.30 by 송동우
미소미소 호스팅 이전 오류 [1] 2013.01.30 by 미소미소
우영아빠 Happy CGI의 뉴스솔루션으로 제작된 사이트를 XE로 옮겨 오는 방법을 아시는 분 계세요? [1] 2013.01.30 by 푸시아
단기종합 document_srl숫자 질문 [1] 2013.01.30 by 푸시아
xe전문가 템플릿 파서가 템플릿을 파싱하지 못하는 문제.. 템플릿 문법이 고스란히 노출됨.  
남자인간 스케치북 게시판 갤러리형 리스트(썸네일)에 gif 파일 출력하는 방법좀 알려주세요  
유유히 최신글 엑셀로 다운 하는 방법 없나요?  
녕쓰요 LDAP 및 검색 관련 질문  
맨유MU 레이어 로그인창의 경우 SSL이 자동적으로 적용되나요? [1] 2013.01.30 by 몽실아빠
pmarch 초보사용자입니다 ㅜ 도와주세요~ [1] 2013.01.30 by 몽실아빠
stylebygio 사이트가 영문으로 나옵니다. [1] 2013.01.30 by 윈컴이
서화담577 게시판의 제목 크기와 색깔을 어떻게 변경하는지 여줍니다. [1] file 2013.01.30 by 송동우
메테워 게시물 추천시 추천인도 포인트 받는법 [1] 2013.01.30 by 송동우
nimm 게시판 확장변수에서 바로 첨부파일 다운로드... [1] 2013.01.30 by 송동우
4b4 최근갤러리 이미지에서 제목을 출력하지 않으려고 하는데 [1] 2013.01.30 by 송동우
ytchoi xe 멀티미디어 링크에 플래시 ...  
유유히 최신글 테이블은 어느 테이블인가요? [1] 2013.01.30 by 송동우
音志 게시물에서 분류 선택안할시 경고문 [1] 2013.01.30 by 송동우
망토유령 xe 1.4.3.1 버전을 쓰고 있습니다.. 텍스파일 관련해서 질문요.. [1] 2013.01.30 by 푸시아
4b4 최근갤러리 이미지에서 제목을 출력 다시 질문합니다. [1] file 2013.01.30 by 송동우
fantimes 최근글 보기에서 자신이 쓴 글만 보이게 하고 싶습니다 [2] 2013.01.30 by 송동우
音志 아이콘샵 아이콘과 레벨아이콘의 중복해결... [1] 2013.01.30
zartin 사이트에서 외국어를 선택하니까 로그인이 안되네요? file  
톡톡보니 제로보드XE 유저DB 관련 문의드립니다..  
모두까기인형 회원 정보 레이아웃 [1] 2013.01.30 by 모두까기인형
mglkiss xe 쇼핑 스킨 없나요  
4b4 이미지 이름 수정과 자기가 쓴 글 삭제하기 [1] file 2013.01.30 by 송동우
XE카오스 게시판에 기능중에 " 관리자 메일알림"기능 잘되시나요.?? [1] 2013.01.30