묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
조회수 삭제시 오류가 발생합니다.
2015.02.02 13:45
<div class="boardRead"> <div class="boardReadHeader"> <div class="titleArea"> <h3 class="title"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h3> <a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}" class="category">{$category_list[$oDocument->get('category_srl')]->title}</a> <span class="sum"> <span class="read">{$lang->readed_count} <span class="num">{$oDocument->get('readed_count')}</span></span> <span class="vote">{$lang->voted_count} <span class="num">{$oDocument->get('voted_count')}</span></span> <span class="date">{$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')}</span> </span> </div> <div class="authorArea"> <!--@if($module_info->display_author!='N')--> <!--@if(!$oDocument->getMemberSrl())--> <!--@if($oDocument->isExistsHomepage())--> <a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;" class="author">{$oDocument->getNickName()}</a> <!--@else--><!--@if($logged_info->is_admin=='Y')--> {@ $args->member_srl = abs($document->get('member_srl')); $output = executeQuery('member.getMemberInfoByMemberSrl', $args); } {$output->data->nick_name} <!--@else--> {$document->getNickName()} <!--@end--> <!--@end--> <!--@else--> <a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')} author" onclick="return false">{$oDocument->getNickName()}</a> <!--@end--> <!--@end--> <span class="ipAddress"><!--@if($grant->manager || $module_info->display_ip_address!='N')-->{$oDocument->getIpaddress()}<!--@end--></span> <a href="{$oDocument->getPermanentUrl()}" class="permaLink">{$oDocument->getPermanentUrl()}</a> </div> </div>
위 코드는 /html/xe/modules/board/skins/elkha_xe_official/View_Document.html 의 윗부분 입니다.
이 코드를 올리면서 조회수, 추천수, 게시물 주소를 날리려면 어떻게 해야하냐고 물음을 올렸고, 가르쳐주신 부분을 다음과 같이 주석처리했습니다.
<div class="boardRead"> <div class="boardReadHeader"> <div class="titleArea"> <h3 class="title"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h3> <a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}" class="category">{$category_list[$oDocument->get('category_srl')]->title}</a> <span class="sum"> <span class="read"><!--{$lang->readed_count}--> <span class="num"><!--{$oDocument->get('readed_count')}--></span></span> <span class="vote"><!--{$lang->voted_count}--> <span class="num">!<!--{$oDocument->get('voted_count')}--></span></span> <span class="date">{$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')}</span> </span> </div> <div class="authorArea"> <!--@if($module_info->display_author!='N')--> <!--@if(!$oDocument->getMemberSrl())--> <!--@if($oDocument->isExistsHomepage())--> <a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;" class="author">{$oDocument->getNickName()}</a> <!--@else--><!--@if($logged_info->is_admin=='Y')--> {@ $args->member_srl = abs($document->get('member_srl')); $output = executeQuery('member.getMemberInfoByMemberSrl', $args); } {$output->data->nick_name} <!--@else--> {$document->getNickName()} <!--@end--> <!--@end--> <!--@else--> <a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')} author" onclick="return false">{$oDocument->getNickName()}</a> <!--@end--> <!--@end--> <span class="ipAddress"><!--@if($grant->manager || $module_info->display_ip_address!='N')-->{$oDocument->getIpaddress()}<!--@end--></span> <!--<a href="{$oDocument->getPermanentUrl()}" class="permaLink">{$oDocument->getPermanentUrl()}</a>--> </div> </div>
위와같이 수정한 뒤 게시물 본문을 보러 들어가니 아래와 같은 오류 문구가 뜹니다.
Error Parsing Template - syntax error, unexpected '&' in template file modules/board/skins/elkha_xe_official/view_document.html
아래에 View_Document.html 의 코드 전체를 올려둡니다. 해결 방안을 알려주세요
<div class="boardReadHeader"> <div class="titleArea"> <h3 class="title"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h3> <a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}" class="category">{$category_list[$oDocument->get('category_srl')]->title}</a> <span class="sum"> <span class="read"><!--{$lang->readed_count}--> <span class="num"><!--{$oDocument->get('readed_count')}--></span></span> <span class="vote"><!--{$lang->voted_count}--> <span class="num">!<!--{$oDocument->get('voted_count')}--></span></span> <span class="date">{$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')}</span> </span> </div> <div class="authorArea"> <!--@if($module_info->display_author!='N')--> <!--@if(!$oDocument->getMemberSrl())--> <!--@if($oDocument->isExistsHomepage())--> <a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;" class="author">{$oDocument->getNickName()}</a> <!--@else--><!--@if($logged_info->is_admin=='Y')--> {@ $args->member_srl = abs($document->get('member_srl')); $output = executeQuery('member.getMemberInfoByMemberSrl', $args); } {$output->data->nick_name} <!--@else--> {$document->getNickName()} <!--@end--> <!--@end--> <!--@else--> <a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')} author" onclick="return false">{$oDocument->getNickName()}</a> <!--@end--> <!--@end--> <span class="ipAddress"><!--@if($grant->manager || $module_info->display_ip_address!='N')-->{$oDocument->getIpaddress()}<!--@end--></span> <!--<a href="{$oDocument->getPermanentUrl()}" class="permaLink">{$oDocument->getPermanentUrl()}</a>--> </div> </div> <!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )--> <table border="1" cellspacing="0" summary="Extra Form" class="extraVarsList"> <!--@foreach($oDocument->getExtraVars() as $key => $val)--> <tr> <th>{$val->name} :</th> <td>{$val->getValueHTML()} </td> </tr> <!--@end--> </table> <!--@end--> <div class="boardReadBody"> <!--@if($oDocument->isSecret() && !$oDocument->isGranted())--> <form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="secretMessage"> <input type="hidden" name="mid" value="{$mid}" /> <input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="document_srl" value="{$oDocument->document_srl}" /> <p>"{$lang->msg_is_secret}"</p> <dl> <dt><label for="cpw">{$lang->password}</label> :</dt> <dd><input type="password" name="password" id="cpw" class="inputText" /><span class="buttonOfficial"><input type="submit" value="{$lang->cmd_input}" /></span></dd> </dl> </form> <!--@else--> {$oDocument->getContent()} <!--@end--> </div> <div class="boardReadFooter"> <!--@if($module_info->display_sign != 'N' && ($oDocument->getProfileImage() || $oDocument->getSignature()))--> <div class="memberSignature"> <!--@if($oDocument->getProfileImage())--> <img src="홈 자료/{$oDocument->getProfileImage()}" alt="profile" class="profile" align="left" /> <!--@end--> <!--@if($oDocument->getSignature())--> {$oDocument->getSignature()} <!--@end--> </div> <!--@end--> {@ $tag_list = $oDocument->get('tag_list') } <!--@if(count($tag_list))--> <dl class="tag"> <dt><img src="홈 자료/img/common/iconTag.gif" width="27" height="11" alt="{$lang->tag}" /></dt> <!--@for($i=0;$i<count($tag_list);$i++)--> {@ $tag = $tag_list[$i]; } <dd><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a></dd> <!--@end--> </dl> <!--@end--> <!--@if($oDocument->hasUploadedFiles())--> <dl class="attachedFile"> <dt><img src="홈 자료/img/common/iconFiles.gif" width="27" height="11" alt="{$lang->uploaded_file}" /> <button type="button" class="fileToggle" onclick="jQuery(this).parents('dl.attachedFile').toggleClass('open');return false;">{$lang->uploaded_file} ({$oDocument->get('uploaded_count')})</button></dt> <dd> <ul class="files"> {@ $uploaded_list = $oDocument->getUploadedFiles() } <!--@foreach($uploaded_list as $key => $file)--> <li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></li> <!--@end--> </ul> </dd> </dl> <!--@end--> <!--@if(!$oDocument->getTrackbackCount())--> <dl class="trackbackURL"> <dt>{$lang->trackback} : </dt> <dd><a href="{$oDocument->getTrackbackUrl()}" onclick="return false;">{$oDocument->getTrackbackUrl()}</a></dd> </dl> <!--@end--> </div> <div class="boardNavigation"> <!--@if($module_info->default_style != 'blog')--> <div class="buttonLeft"> <a href="{getUrl('document_srl','')}" class="buttonOfficial"><span class="calendar"></span><span>{$lang->cmd_list}</span></a> </div> <!--@end--> <!--@if($oDocument->isEditable())--> <div class="buttonRight"> <a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}" class="buttonOfficial"><span>{$lang->cmd_modify}</span></a> <a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="buttonOfficial"><span class="delete"></span><span>{$lang->cmd_delete}</span></a> </div> <!--@end--> </div> </div> <!--@if($oDocument->allowTrackback())--> <!--#include("./trackback.html")--> <!--@end--> <!--@if($oDocument->allowComment())--> <a name="comment"></a> <!--#include("./comment.html")--> <!--@if($grant->write_comment && $oDocument->isEnableComment() )--> <form action="./" method="post" onsubmit="jQuery(this).find('input').each(function(){if(this.title==this.value)this.value='';});return procFilter(this, insert_comment)" class="boardEditor"> <input type="hidden" name="mid" value="{$mid}" /> <input type="hidden" name="document_srl" value="{$oDocument->document_srl}" /> <input type="hidden" name="comment_srl" value="" /> <input type="hidden" name="content" value="" /> <div class="boardWrite commentEditor"> <div class="editor">{$oDocument->getCommentEditor()}</div> <div class="editorOption"> <!--@if(!$is_logged)--> <input type="text" name="nick_name" class="inputText userName" value="{$lang->writer}" title="{$lang->writer}" onfocus="if(this.value==this.title)this.value='';return false;" /> <input type="password" name="password" class="inputText userPw" value="{$lang->password}" title="{$lang->password}" onfocus="if(this.value==this.title)this.value='';return false;" /> <input type="text" name="email_address" class="inputText emailAddress" value="{$lang->email_address}" title="{$lang->email_address}" onfocus="if(this.value==this.title)this.value='';return false;" /> <input type="text" name="homepage" class="inputText homePage" value="{$lang->homepage}" title="{$lang->homepage}" onfocus="if(this.value==this.title)this.value='';return false;" /> <!--@end--> <!--@if($is_logged)--> <input type="checkbox" name="notify_message" value="Y" id="notify_message" class="inputCheck" /> <label for="notify_message">{$lang->notify}</label> <!--@end--> <input type="checkbox" name="is_secret" value="Y" id="is_secret" class="inputCheck" /> <label for="is_secret">{$lang->secret}</label> </div> <div class="boardNavigation"> <span class="buttonOfficial"><span class="check"></span><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span> </div> </div> </form> <!--@end--> <!--@end-->
끌올. 제발 도와주세여.. 아니면 스케치북 말고 분문 내에 조회수 추천수 게시글 주소 지울수 있는 게시판 스킨 추천좀..