묻고답하기

안녕하세요. 묻고 답하기 게시판을 찾던 중,

아래의 글에서 송동우님께서 달아주신 댓글 덕분에 등록된 시간순으로 댓글이 매겨지게끔 해두었습니다. (익명게시판)

 

송동우님 댓글번호에 대해서..(로그인시에만 댓글이 표시됨=> 해결)

댓글(코멘트) 등록된 시간순으로 번호 매겨지게 하기

http://www.xpressengine.com/index.php?document_srl=19935289&search_keyword=%EC%BD%94%EB%A9%98%ED%8A%B8

http://www.xpressengine.com/index.php?document_srl=19933441&search_keyword=%EC%BD%94%EB%A9%98%ED%8A%B8

 

 

 

그런데 번호 매기기 기능이 공지글에서만 적용이 되고 일반 글에서는 아래처럼 오류가 납니다.

 

Warning: Invalid argument supplied for foreach() in/home/hosting_users/

계정명/www/xe/classes/template/TemplateHandler.class.php(220) : eval()'d code on line 22

 

이런 식으로요...

 

제 생각엔 뭔가 소스의 위치나 배열의 문제? 같은데... ㅠㅅㅠ

초보인 저는 까막눈이라 찾기가 어렵네요. 죄송하지만 한번 봐주시면 감사하겠습니다..ㅠㅠ

 

저는 기본으로 제공되는 게시판이 아닌 SketchBook5 Board Skin 을 사용하고 있습니다.

http://www.xpressengine.com/index.php?mid=download&category_srl=18322943&parent_srl=18322919&package_srl=19555903

 

아래의 파일은 _comment.html 파일입니다.

 

─────────────────────────────────────────────

 

{@ $_comment_list = $oDocument->getComments() }
 <!--@ foreach($_comment_list as $key => $comment)-->
{@ $no[]=$comment->regdate}
<!--@ end-->
{@ 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="{$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>
  <!--// 댓글 정보 -->
    <b>지정닉네임
<!--@ foreach($no as $k => $v)-->
<!--@ if($v==$comment->variables[regdate])-->
{@ $k += 1}{$k}
<!--@ end-->
<!--@ end--></b>
&nbsp;&nbsp;<span class="date"><font color="c4c4c4">{getTimeGap($comment->get('regdate'), "Y.m.d H:i")}</font></span>&nbsp;&nbsp;<small cond="$grant->manager || $mi->display_ip_address=='Y'">({$comment->getIpaddress()})</small>
   <div class="meta">
   <!--// 첨부파일 -->
   <block cond="$comment->hasUploadedFiles()">
   <a class="tg_btn2 ui-state-default" 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">X</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>
   </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=='1' || $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>{$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 findwind
정경석543 로그인 풀리고, 페이지 내용 수정 후 저장이 되지 않습니다.  
철쌤 홈페이지 패키지에서 레이아웃 설정 [3] 2008.11.24 by 철쌤
완전 요청하신 action을 실행할 수 있는 권한이 없습니다? [1] 2008.11.24 by 백성찬
쭈야 가입할 당시 이메일도 모르겠어요 [1] 2008.11.24 by 백성찬
나당 글이 안써져요 ㅜㅜ  
줄루 1.1.0 설치후 "요청하신 모듈을 찾을 수 없습니다" [2] 2008.11.24 by 이수현735
박나래927 진짜 급해요!봐주세요...제로보드아이프레임으로삽입과정중문제 [1] file 2008.11.24 by findwind
어울림소리 파일 업로드가 안되요. [1] 2008.11.24 by 백성찬
류희경 상단 메뉴겟수 지정이 사라졌어요  
그냥뛰어 요청하신 action을 실행할 수 있는 권한이 없습니다  
중년 플래닛 질문. [1] 2008.11.24 by SOL군
afwh_1 정말 부탁 부탁 드립니다.  
지우555 파일 업로드 문제에 대한 질문  
jungchangdo zbxe1.06에서 zbxe 1.1로 마이그레이션시 질문입니다.  
줄루 1.1.0 업글 후 모듈을 찾을 수 없다고 나옵니다... [2] 2008.11.24 by 줄루
kjh329 XpressEngine ver 1.1.0 로 제로보드xe를 업그레이드 하시는 과정에서 완전하게 처리가  
Pizza527 회원 그룹이 전혀 먹히지 않을 때? [2] 2008.11.24 by 꼼손이
seatech 설치시 오류 입니다. [1] 2008.11.24 by 백성찬
mg 제로보드 xe 1.1.0 설치중 스크립트 오류가 발생합니다. [2] 2008.11.24 by mg
신짱 첨부파일 모듈 관련 - 관리자 모드 [1] 2008.11.24 by 백성찬
오송충 파일 첨부가 안되네요 [2] 2008.11.24 by 79i
하늘정워니 회원가입이 안됩니다. [3] 2008.11.24 by 하늘정워니
토니쩜티스토리 Xpress Engine 1.1.0으로 업그레이드 후 플래시 변수가 안먹는 문제 [1] 2020.03.14 by 토니쩜티스토리
포트거스.D.에이스 제로보드XE 게시판 추천수 표시 ... [1] 2008.11.24 by SOL군
양한진 도메인 주소에 www 여부 문제 [2] 2008.11.24 by 양한진
무화과나무 로그인박스 위치 변경은 어떻게 해야하나요? file  
토화랑 메인페이지가 뜨질 않아요 ㅜㅜ [4] 2008.11.24 by 백성찬
냥씨 가입폼에서 필요없는 부분 제거하기 [1] 2012.03.06 by reon
이성준762 공공기관에서 주로 사용하는 BizFlowGroupware 와 로그인 연동하려고 합니다!! [1] 2008.11.24 by ggg