묻고답하기
코멘트 닉네임 옆에 번호를 달고 싶어요
2013.07.06 17:38
<!--@if($oDocument->getCommentCount())-->
<div class="replyBox">
<a name="{$oDocument->get('document_srl')}_comment"></a>
{@ $no = 1}{@ $_comment_list = $oDocument->getComments() }
<!--@foreach($_comment_list as $key => $comment)-->
<a name="comment<comment_srl)-->_{$comment->comment_srl}">!--@if($comment->comment_srl)-->_{$comment->comment_srl}<!--@end-->"></a>
<div class="replyItem <!--@if($comment->get('depth'))-->reply<!--@end-->">
<!--@if($comment->get('depth'))-->
<div style="margin-left:{($comment->get('depth')-1)*20}px" class="replyIndent">
<!--@end-->
<div class="author">
<!--@if(!$comment->member_srl)-->
<!--@if($comment->homepage)-->
<a href="{$comment->homepage}" onclick="window.open(this.href);return false;">플비{$no}
</a>
<!--@else-->
플비{$no}
<!--@end-->
<!--@else-->
<div class="member_{$comment->member_srl}">플비{$no}</div>
<!--@end-->
</div>
<div class="replyOption">
<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
<a href="{getUrl('act','dispBoardDeleteComment','document_srl',$oDocument->document_srl,
'comment_srl',$comment->comment_srl)}"><img src="./images/common/buttonDeleteX.gif" alt="{$lang-
>cmd_delete}" width="12" height="13" /></a>
<a href="{getUrl('act','dispBoardModifyComment','document_srl',$oDocument->document_srl,
'comment_srl',$comment->comment_srl)}"><img src="./images/{$module_info->colorset}/buttonModifyE.gif"
alt="{$lang->cmd_modify}" width="20" height="17" /></a>
<!--@end-->
<a cond="$oDocument->allowComment()" href="{getUrl
('act','dispBoardReplyComment','document_srl',$oDocument->document_srl, 'comment_srl',$comment-
>comment_srl)}"><img src="./images/{$module_info->colorset}/buttonReply.gif" alt="{$lang->cmd_reply}"
width="20" height="17" /></a>
</div>
<div class="date">
<strong>{$comment->getRegdate('Y.m.d')}</strong> {$comment->getRegdate('H:i:s')}
<!--@if($grant->manager)-->
({$comment->get('ipaddress')})
<!--@end-->
</div>
<!--@if($comment->get('voted_count')!=0)-->
<div class="voted">
({$lang->voted_count}:
<strong>{$comment->get('voted_count')}</strong>)
</div>
<!--@end-->
<div class="replyContent">
<!--@if(!$comment->isAccessible())-->
<div class="secretContent">
<form action="./" method="get" onsubmit="return procFilter(this, input_password)">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />
<div class="title">{$lang->msg_is_secret}</div>
<div class="content"><input type="password" name="password" class="iText"
/><span class="btn"><input type="submit" value="{$lang->cmd_input}" /></span></div>
</form>
</div>
<!--@else-->
{$comment->getContent(false,false)}
<!--@end-->
</div>
<!--@if($comment->hasUploadedFIles())-->
<div class="fileAttached">
<ul>
{@ $_uploaded_files = $comment->getUploadedFiles() }
<!--@foreach($_uploaded_files as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename}
({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
<!--@end-->
</ul>
</div>
<!--@end-->
<!--@if($comment->get('depth'))-->
</div>{@ $no++}
<!--@end-->
</div>
<!--@end-->
<!-- comment page navigation -->
<!--@if($oDocument->comment_page_navigation)-->
{@
$cpageStr = sprintf('%d_cpage', $oDocument->get('document_srl'));
$cpage = Context::get($cpageStr);
}
<div class="pagination a1">
<a href="{getUrl($cpageStr,1)}#{$oDocument->get('document_srl')}_comment" class="prevEnd">{$lang-
>first_page}</a>
<!--@while($page_no = $oDocument->comment_page_navigation->getNextPage())-->
<!--@if($cpage == $page_no)-->
<strong>{$page_no}</strong>
<!--@else-->
<a href="{getUrl($cpageStr,$page_no)}#{$oDocument->get('document_srl')}_comment">{$page_no}
</a>
<!--@end-->
<!--@end-->
<a href="{getUrl($cpageStr,$oDocument->comment_page_navigation->last_page)}#{$oDocument->get
('document_srl')}_comment" class="nextEnd">{$lang->last_page}</a>
</div>
<!--@end-->
</div>
<!--@end-->
http://playgroundb.com/xe/data/574
적용된 페이지
http://www.xpressengine.com/qna/19933441
이 소스를 보고 수정한 건데 닉네임 옆에 숫자가 나타나지 않습니다.
어떻게 수정해야 닉네임 옆에 숫자가 나타날까요?
게시판 설정 - 고급설정에서 하시면 되는거 아닌가요?