현재 공개된 컨텐츠 위젯과 컨텐츠 확장 위젯 기타 스킨들을 찾아봤는데요.

정렬방식이 댓글숫자순( 댓글이 많은 순 또는 적은 순 )으로 정렬해주는 위젯이 없는것 같습니다.

 

혹시 정렬방식을 댓글숫자순으로 정렬해주는 위젯을 아시는 분 계신가요?

  • ?
    위젯 자체가 그런건 없을테고..
    그냥 사용하는 위젯을 조금 수정해보세요

    댓글순이라는건 정렬을 comment_count 순으로 하면 되는거여서
    정렬 옵션에 comment_count 를 추가해주시면 작동할거예요
  • ? ?
    답변감사합니다.
    알려주신대로 시도해보겠습니다.
  • ?
    유료자료라면 댓글순으로 정렬해주는 위젯이 있네요
    https://xetown.com/thirdparties/819539
  • ? profile

    컨텐츠를 나열하는 위젯을 질문하고 계시네요. 회원랭킹이 아닌...

    댓글이 많이 달린 게시글이 위에 올라오는 정렬을 원하시는 듯 합니다.

  • ? ?
    답변감사합니다.
  • ?

    [ 컨텐츠 확장 위젯 contentextended  기준 댓글 순 추가 방법 ]
    1. contentextended\contentextended.class.php
     function proc($args) {
                // 정렬 대상
                if(!in_array($args->order_target, array('list_order','update_order','regdate','rand()','voted_count','readed_count','comment_count'))) $args->order_target = 'list_order';
                //if ($args->order_target == 'random') $args->order_target = 'rand()';
     

    2.  contentextended\conf\info.xml

    <options>
                        <value>rand()</value>
                        <name xml:lang="ko">랜덤순</name>
                        <name xml:lang="en">Random Order</name>
                    </options>
                    <!--// 댓글순 정렬 추가-->
                    <options>
                        <value>comment_count</value>
                        <name xml:lang="ko">댓글순</name>
                        <name xml:lang="en">comment count</name>
                    </options>
                </var>