묻고답하기

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 남기남
신짱 첨부파일 모듈 관련 - 관리자 모드 [1] 2008.11.24 by 백성찬
mg 제로보드 xe 1.1.0 설치중 스크립트 오류가 발생합니다. [2] 2008.11.24 by mg
seatech 설치시 오류 입니다. [1] 2008.11.24 by 백성찬
Pizza527 회원 그룹이 전혀 먹히지 않을 때? [2] 2008.11.24 by 꼼손이
kjh329 XpressEngine ver 1.1.0 로 제로보드xe를 업그레이드 하시는 과정에서 완전하게 처리가  
줄루 1.1.0 업글 후 모듈을 찾을 수 없다고 나옵니다... [2] 2008.11.24 by 줄루
jungchangdo zbxe1.06에서 zbxe 1.1로 마이그레이션시 질문입니다.  
지우555 파일 업로드 문제에 대한 질문  
afwh_1 정말 부탁 부탁 드립니다.  
중년 플래닛 질문. [1] 2008.11.24 by SOL군
그냥뛰어 요청하신 action을 실행할 수 있는 권한이 없습니다  
류희경 상단 메뉴겟수 지정이 사라졌어요  
어울림소리 파일 업로드가 안되요. [1] 2008.11.24 by 백성찬
박나래927 진짜 급해요!봐주세요...제로보드아이프레임으로삽입과정중문제 [1] file 2008.11.24 by findwind
줄루 1.1.0 설치후 "요청하신 모듈을 찾을 수 없습니다" [2] 2008.11.24 by 이수현735
나당 글이 안써져요 ㅜㅜ  
쭈야 가입할 당시 이메일도 모르겠어요 [1] 2008.11.24 by 백성찬
완전 요청하신 action을 실행할 수 있는 권한이 없습니다? [1] 2008.11.24 by 백성찬
철쌤 홈페이지 패키지에서 레이아웃 설정 [3] 2008.11.24 by 철쌤
정경석543 로그인 풀리고, 페이지 내용 수정 후 저장이 되지 않습니다.  
다케루 댓글 알리미 애드온 사용시 이상한 점... [1] 2008.11.24 by findwind
네오랑 [버젼 1.1.1] 홈페이지 패키지 생성시 데이터 연동? 및.. [2] 2008.11.24 by 네오랑
KYJ 도메인이름/zbxe 치면 로딩 표시만 보이고 로딩이 안됩니다.. [1] 2008.11.24 by 센세이션
김성진325 회원 그룹 권한을 설정하려고 하는데요. [1] 2008.11.24 by 센세이션
나당 글이 안써져요 ㅜㅜ  
엠™ 게시물 분류 출력기. 제목에 브라우저 제목 대신 원하는 이름 넣기..  
튀긴건빵 카페24 호스팅 svn 이용가능한가요? [2] 2008.11.24 by 지연아빠
gig 1.1.1 패치까지 했는데 모듈 수정이 안되네요..  
비가내리고 게시판 제목밑의 빨강색 바꾸는 법 [6] file 2008.11.24 by 비가내리고
sky77 도와주세요