[사용팁] [중요] XE 통합검색에서 댓글은 관리자만 가능하게 하기
2020.05.03 02:47
79
0
https://eond.com/432410
object(HotopayModel)#817 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#816 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(17) "xe/432410/page/21" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(7) { ["listStyle"]=> string(4) "list" ["order_type"]=> string(4) "desc" ["sort_index"]=> string(11) "voted_count" ["document_srl"]=> string(6) "432410" ["page"]=> int(1) ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

#xe통합검색코멘트비밀 


XE에서 통합검색 모듈(integration_search, ISX) 사용시,

비밀글의 일반댓글은 검색에 노출이 됩니다. (XE, RXE 동일한 문제.)


이를 해결하는 방법입니다.


경로

통합검색모듈 : /modules/isx/skins/default/comment.html

통합검색확장모듈 : /modules/integration_search/skins/default/comment.html


저는 이 코드를 추가로 넣어놓았습니다.


댓글 검색은 관리자만 가능합니다. 

<block cond="$grant->manager">

...

</block>


전체코드

<!--#include("header.html")-->
댓글 검색은 관리자만 가능합니다.
<block cond="$grant->manager">


<h3 class="subTitle">{$lang->comment} <span>({number_format($output->total_count)})</span> </h3>

<!--@if(!count($output->data))-->
    <span class="noResult">{$lang->msg_no_result}</span>
<!--@else-->
    <ul class="searchResult comment">
    <!--@foreach($output->data as $no => $comment)-->
        <li>
            <!--@if($comment->thumbnailExists(80))-->
            <a href="{$comment->getPermanentUrl()}" target="_blank"><img src="{$comment->getThumbnail(80)}" alt="" width="80" height="80" class="thumb" /></a>
            <!--@end-->
            <dl>
                <dt><a href="{$comment->getPermanentUrl()}" target="_blank">{$comment->getSummary(400)}</a></dt>
            </dl>
            <address><strong>{$comment->getNickName()}</strong> | <span class="time">{$comment->getRegdate("Y-m-d H:i")}</span></address>
        </li>
    <!--@end-->
    </ul>

    <!--@if($where == 'comment' && $output->page_navigation)-->
        <div class="pagination a1">
            <a href="{getUrl('page','')}" class="prevEnd">{$lang->first_page}</a> 
            <!--@while($page_no = $output->page_navigation->getNextPage())-->
                <!--@if($page == $page_no)-->
                    <strong>{$page_no}</strong> 
                <!--@else-->
                    <a href="{getUrl('page',$page_no)}">{$page_no}</a>
                <!--@end-->
            <!--@end-->
            <a href="{getUrl('page',$output->page_navigation->last_page)}" class="nextEnd">{$lang->last_page}</a>
        </div>
    <!--@end-->
</block>
   <!--@end-->



라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요

네이버로 로그인