1개 발견

OOO님에게 달린 댓글 검색 결과

  1. 미리보기 2015.03.02

    [XE] 대댓글에 'OOO님에게 달린 댓글' 구현하기

2015. 3. 2. 21:08 - Str@wBerry

[XE] 대댓글에 'OOO님에게 달린 댓글' 구현하기


본 블로그 게시물은 XE SketchBook5를 기반으로 작성되었습니다


.    


/* 적용 스크린 샷 */





_comment.html 수정 전
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
     
<!--// 댓글 본문 -->
        <!--@if(!$comment->isAccessible())-->
        <form action="./" method="get" onsubmit="return procFilter(this, input_password)">
            <input name="mid" value="{$mid}" type="hidden">
            <input name="page" value="{$page}" type="hidden">
            <input name="document_srl" value="{$comment->get('document_srl')}" type="hidden">
            <input name="comment_srl" value="{$comment->get('comment_srl')}" type="hidden">
            <p>"{$lang->msg_is_secret}"</p>
            <span class="itx_wrp">
                <label for="cpw_{$comment->comment_srl}">{$lang->password}</label>
                <input id="cpw_{$comment->comment_srl}" name="password" class="itx" type="password">
                <input value="{$lang->cmd_input}" class="bd_btn" type="submit">
            </span>
        </form>
        <!--@else-->
        {$comment->getContent(false)}
        <!--@end-->
<!--// 편집 등 -->
        <div class="fdb_nav img_tx">
            <block cond="$mi->cmt_this_btn=='2' && $is_logged">
            <a href="#" onclick="doCallModuleAction('comment','procCommentDeclare','{$comment->comment_srl}');return false"><i class="fa fa-phone"></i>{$lang->cmd_declare}</a>
            <a href="#" onclick="doCallModuleAction('comment','procCommentVoteUp','{$comment->comment_srl}');return false"><i class="fa fa-heart color"></i>{$lang->cmd_vote}</a>
            <a cond="!$mi->cmt_vote_down" href="#" onclick="doCallModuleAction('comment','procCommentVoteDown','{$comment->comment_srl}');return false"><i class="fa fa-heart"></i>{$lang->cmd_vote_down}</a>
            </block>
</div>
_comment.html 수정 후
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
     
<!--// 댓글 본문 -->
        <!--@if(!$comment->isAccessible())-->
        <form action="./" method="get" onsubmit="return procFilter(this, input_password)">
            <input name="mid" value="{$mid}" type="hidden">
            <input name="page" value="{$page}" type="hidden">
            <input name="document_srl" value="{$comment->get('document_srl')}" type="hidden">
            <input name="comment_srl" value="{$comment->get('comment_srl')}" type="hidden">
            <p>"{$lang->msg_is_secret}"</p>
            <span class="itx_wrp">
                <label for="cpw_{$comment->comment_srl}">{$lang->password}</label>
                <input id="cpw_{$comment->comment_srl}" name="password" class="itx" type="password">
                <input value="{$lang->cmd_input}" class="bd_btn" type="submit">
            </span>
        </form>
        <!--@else-->
            <!--@if($comment->parent_srl)-->
            {@
                $oComment = &getModel('comment');
                $comment_parent = $oComment->getComment($comment->parent_srl);
            }
            {$comment_parent->getNickName()} 님에게 달린 댓글 {$comment->getContent(false)}
            <!--@else-->
                {$comment->getContent(false)}
            <!--@end-->
        <!--@end-->
<!--// 편집 등 -->
        <div class="fdb_nav img_tx">
            <block cond="$mi->cmt_this_btn=='2' && $is_logged">
            <a href="#" onclick="doCallModuleAction('comment','procCommentDeclare','{$comment->comment_srl}');return false"><i class="fa fa-phone"></i>{$lang->cmd_declare}</a>
            <a href="#" onclick="doCallModuleAction('comment','procCommentVoteUp','{$comment->comment_srl}');return false"><i class="fa fa-heart color"></i>{$lang->cmd_vote}</a>
            <a cond="!$mi->cmt_vote_down" href="#" onclick="doCallModuleAction('comment','procCommentVoteDown','{$comment->comment_srl}');return false"><i class="fa fa-heart"></i>{$lang->cmd_vote_down}</a>
            </block><font face="돋움"><span style="white-space: normal;">
</span></font></div>

대댓글일 경우에만 'OOO님에게 달린 댓글' 이 먼저 나오게 됩니다.

따로 수정하실 분들은 저 부분만 수정하시면 됩니다.