묻고답하기

http://www.xpressengine.com/index.php?document_srl=20337553&search_keyword=%EB%8F%99%EC%9A%B0

 

안녕하세요. 빠른 답변 감사합니다. 제가 확인이 늦었네요. ^^

그런데 알려주신 방법으로 파일을 열고 적용을 했는데 오류는 나지 않으나 번호를 매기는 숫자가 아예 나타나질 않습니다. ㅠㅠ

제가 적용한 소스는 아래와 같습니다. 무엇이 문제일까요? 숫자를 닉네임 바로 뒤에 출력하고 싶습니다.

 

{@
 $oDB = &DB::getInstance();
 $query = $oDB->_query('select regdate from xe_comments where document_srl = '.$document_srl);
 $result = $oDB->_fetch($query);
 $no = array();
}
<block loop="$i=0;$i<count($result);$i++">
{@ $no[] = $result[$i]->regdate}
</block>
{@ sort($no)}
<!--// Comment Tag -->
<div cond="!$mi->fdb_style" class="fdb_tag<cmt_wrt_position=='cmt_wrt_btm'">!--@if($mi->cmt_wrt_position=='cmt_wrt_btm')--> bg_f_f9<!--@end-->">
 <a class="ui_font bubble" href="#" onclick="jQuery(this).parent().nextAll('ul,.bd_pg').slideToggle();return false" title="{$lang->comment} {$lang->cmd_view}">Comments <b>'{$oDocument->getCommentcount()}'</b></a>
</div>

<ul class="fdb_lst_ul {$mi->fdb_hide}">
 <li loop="$oDocument->getComments()=>$key,$comment" id="comment_{$comment->comment_srl}" class="fdb_itm clear<get('depth'">!--@if($comment->get('depth'))--> re bg{($comment->get('depth'))%2}<!--@end-->" style="margin-left:{($comment->get('depth'))*20}px">
  <b cond="$comment->get('depth')" class="ico_16px re"></b>
  <!--// 프로필 -->
  <block cond="!$mi->profile_img">
  <img cond="$comment->getProfileImage()" class="profile img" src="{$comment->getProfileImage()}" alt="profile" />
  <span cond="!$comment->getProfileImage()" class="profile img no_img">?</span>
  </block>
<block loop="$no => $k,$v" cond="$v==$comment->variables[regdate]">
{@ $k++}
<? break ?>
</block>
  <!--// 댓글 정보 -->
  <div class="meta">
   <a cond="$comment->member_srl" href="#popup_menu_area" class="member_{$comment->member_srl}" onclick="return false">{$comment->getNickName()}</a>{$k}
   <a cond="!$comment->member_srl && $comment->homepage" href="{$comment->homepage}" target="_blank">{$comment->getNickName()}</a>
   <b cond="!$comment->member_srl && !$comment->homepage">{$comment->getNickName()}</b>
   <span class="date">{getTimeGap($comment->get('regdate'), "Y.m.d H:i")}</span><small cond="$grant->manager || $mi->display_ip_address">({$comment->getIpaddress()})</small>
   <!--// 첨부파일 -->
   <block cond="$comment->hasUploadedFiles()">
   <a class="tg_btn2" href="#files_{$comment->comment_srl}"><b class="ui-icon ui-icon-disk">Files</b>{$lang->uploaded_file} <small>({$comment->get('uploaded_count')})</small></a>
   <div id="files_{$comment->comment_srl}" class="cmt_files tg_cnt2">
    <button type="button" class="tg_blur2"></button><button type="button" class="tg_close2" title="{$lang->cmd_close}"><b class="ui-icon ui-icon-closethick">X</b></button>
    <ul class="wrp">
     <li loop="$comment->getUploadedFiles()=>$key,$file"><em>&bull;</em> <a class="bubble" href="{getUrl('')}{$file->download_url}" title="[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]">{$file->source_filename}</a></li>
    </ul>
    <button type="button" class="tg_blur2"></button>
   </div>
   </block>
  </div>
  <!--// 댓글 본문 -->
  <isAccessible">!--@if(!$comment->isAccessible())-->
  <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')}" />
   <p>&quot;{$lang->msg_is_secret}&quot;</p>
   <span class="itx_wrp">
    <label for="cpw_{$comment->comment_srl}">{$lang->password}</label>
    <input type="password" id="cpw_{$comment->comment_srl}" name="password" class="itx" />
    <input type="submit" value="{$lang->cmd_input}" class="btn" />
   </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"><span cond="$mi->declare_img" class="ico_16px" style="background:url({$mi->declare_img})"></span>{$lang->cmd_declare}</a>
   <a href="#" onclick="doCallModuleAction('comment','procCommentVoteUp','{$comment->comment_srl}');return false"><span cond="$mi->cmt_vote_img" class="ico_16px" style="background:url({$mi->cmt_vote_img})"></span>{$lang->cmd_vote}</a>
   <a cond="!$mi->cmt_vote_down" href="#" onclick="doCallModuleAction('comment','procCommentVoteDown','{$comment->comment_srl}');return false"><span cond="$mi->cmt_vote_down_img" class="ico_16px" style="background:url({$mi->cmt_vote_down_img})"></span>{$lang->cmd_vote_down}</a>
   </block>
   <a cond="(!$mi->cmt_this_btn && $is_logged) || $grant->manager" class="comment_{$comment->comment_srl}" href="#popup_menu_area" onclick="return false"><span class="tx_ico_chk">✔</span>{$lang->cmd_comment_do}</a>
   <block cond="$comment->isGranted() || !$comment->get('member_srl')">
   <a href="{getUrl('act','dispBoardModifyComment','comment_srl',$comment->comment_srl)}"><span class="ico_16px write"></span>{$lang->cmd_modify}</a>
   <a href="{getUrl('act','dispBoardDeleteComment','comment_srl',$comment->comment_srl)}"><span class="ico_16px delete"></span>{$lang->cmd_delete}</a>
   </block>
   <a cond="$grant->write_comment && $oDocument->isEnableComment()" class="re_comment" href="{getUrl('act','dispBoardReplyComment','comment_srl',$comment->comment_srl)}"><span class="ico_16px reply"></span>{$lang->cmd_reply}</a>
   <!--// 추천-비추천 -->
   <span cond="$mi->cmt_vote!='N' && ($mi->cmt_vote=='2' || $comment->get('voted_count')!=0 || $comment->get('blamed_count')!=0)" class="vote">
    <a class="bd_login" href="#" onclick="doCallModuleAction('comment','procCommentVoteUp','{$comment->comment_srl}');return false"|cond="$is_logged"><span cond="$mi->cmt_vote_img" class="ico_16px" style="background:url({$mi->cmt_vote_img})"></span> {$lang->cmd_vote}<b><em>{$comment->get('voted_count')?$comment->get('voted_count'):0}</em></b></a>
    <a cond="!$mi->cmt_vote_down" class="bd_login" href="#" onclick="doCallModuleAction('+ 'comment','procCommentVoteDown','{$comment->comment_srl}');return false"|cond="$is_logged"><span cond="$mi->cmt_vote_down_img" class="ico_16px" style="background:url({$mi->cmt_vote_down_img})"></span> {$lang->cmd_vote_down}<b>{abs($comment->get('blamed_count')?$comment->get('blamed_count'):0)}</b></a>
   </span>
  </div>
 </li>
</ul>

<!--// 페이지 -->
<div cond="$oDocument->comment_page_navigation" class="bd_pg {$mi->fdb_hide}">
 <a href="{getUrl('cpage',1)}#comment" class="direction" title="{$lang->first_page}">&laquo; <span>First</span></a>
 <block loop="$page_no=$oDocument->comment_page_navigation->getNextPage()">
 <strong cond="$cpage==$page_no" class="this">{$page_no}</strong>
 <a cond="$cpage!=$page_no" href="{getUrl('cpage',$page_no)}#comment">{$page_no}</a>
 </block>
 <a href="{getUrl('cpage',$oDocument->comment_page_navigation->last_page)}#comment" class="direction" title="{$lang->last_page}"><span>Last</span> &raquo;</a>
</div>
<script type="text/javascript">
jQuery(function($){
 var t = $('<default_style=='blog')-->#comment_{$oDocument->document_srl">!--@if($mi->default_style=='blog')-->#comment_{$oDocument->document_srl} .bd_pg<#comment">!--@else-->#comment .bd_pg<'">!--@end-->');
 t.clone().removeClass('bd_pg').addClass('cmt_pg').appendTo(t.prev().prev());
});
</script>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
시은 멜로 답장이 오지 않았은데요?  
뮤랑이 최근 이미지 위젯중 이미지 클라우드가 이상합니다. [2] file 2008.11.22 by 고원재비
Wooripage 페이지 수정이 안됩니다 [2] 2008.11.22 by 영구만세
튀긴건빵 svn 으로 업그레이드 하려면.. [1] 2008.11.23 by 백성찬
이뷔리 포인트관련질문 [2] 2008.11.23 by 이뷔리
철쌤 1.1.0 업데이트 후 ''멀티미디어 관리'' [4] 2008.11.23 by 철쌤
브롬화칼륨 로그인폼에서 기본 언어를 영어로 설정 하는법 [1] 2008.11.23 by findwind
최관수905 싸이클럽에서 글 옮겨오기 [1] 2008.11.23 by findwind
HX 제목 글자수가 짧을때.. [1] 2008.11.23 by findwind
오프로더 게시판에 파일첨부하는데 그림처럼 오류가 나요. 도와주셔요!~ [12] file 2008.11.23 by 오프로더
로엘로니 로그인폼의 메뉴를 팝업창으로 ! [1] 2008.11.23 by findwind
Research 500에러때문에 설치 중단... [2] 2008.11.23 by Research
철쌤 홈페이지 패키지에 관한 질문... [2] 2008.11.23 by 철쌤
Pizza527 기본 레이아웃 폰트 색은 어디서 바꾸나요? [1] file 2008.11.23 by 넨네
공듀 회원가입후 이름과 이메일주소 수정변경 방법.. [2] 2008.11.23 by 공듀
&d 제로보드xe 관리자 로그인, 아이디비밀번호 찾기 문제 [2] 2008.11.23 by &d
&d 웹에 업로드 할때 [2] 2008.11.23 by &d
&d 회원가입, 로그인창 및 삭제 알림창 양식 스킨변경(색상변경) [2] file 2008.11.23 by &d
&d 스킨 수정 - 글색상 변경 [2] file 2008.11.23 by &d
oO나쁜토끼Oo mid와 게시판 연동이..ㅠ_ㅠ [1] file 2008.11.23 by 엠™
&d 사랑비 관리자 초기암호 문제 [1] 2008.11.23 by 센세이션
블루즈 layout template handler? 질문 [1] 2008.11.23 by 센세이션
저먼하늘아래 외부 페이지, 페이지 생성시 레이아웃  
왕왕초보 도움 청합니다. 첨부파일이,,,, [1] 2008.11.23 by 센세이션
fldfkero 최근게시물 탭형태가 뜨지 않습니다 ㅠㅠ [1] file 2008.11.23 by SMaker
earthhero.me 이미지를 다른곳에서 링크 걸었을경우 저의 트래픽이 되나요? [2] 2008.11.23 by earthhero.me
중년 php5로 이전후 100개 이상 리스트 소스 적용이 안됩니다.  
kim 방문자 경로 리퍼러 통계  
센세이션 플래닛에서 작성한 글 미투데이로 발송하려는데. [3] file 2008.11.23 by 센세이션
한재은 그림과 같이 메뉴를 구성하고 싶은데요. [2] 2008.11.23 by 한재은