묻고답하기
추천버튼 위에 광고달기.
2015.04.09 09:08
게시판 view document 모든 곳에 삽입해봤는데 무조건 추천버튼 밑에 광고코드가 삽입되네요..
추천버튼 위에 광고코드를 삽입 할 수 있는 방법이 없을까요?
댓글 6
-
I-JEX
2015.04.10 01:31
-
고종훈
2015.04.10 01:55
네 맞아요. 스킨은 xe기본스킨인 default 2007 쓰고있씁니다//
-
I-JEX
2015.04.10 11:07
첨부파일 다운받으시고 "내용"을 검색하여 내용 부분에 코드를 넣으신 후 . /modules/board/skins/default 경로에 _read.html 파일을 덮어쓰기 해보세요.
-
고종훈
2015.04.11 01:19
이렇게 뜨네요;;
전 default 2007을 쓰는데 view_Document 소스를 보면
<style>.display-toggle{display:none}</style>
<!-- display the document contents -->
<!--@if(!$module_info->document_title_format)-->
{@ $module_info->document_title_format = 'h4'}
<!--@end--><div class="boardRead">
<div class="originalContent">
<div class="readHeader">
<div class="titleAndUser"><div class="title">
<{$module_info->document_title_format}><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></{$module_info->document_title_format}>
</div><!--@if($module_info->display_author!='N')-->
<div class="userInfo">
<!--@if(!$oDocument->getMemberSrl())-->
<div class="author">
<!--@if($oDocument->isExistsHomepage())-->
<a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;">{$oDocument->getNickName()}</a>
<!--@else-->
{$oDocument->getNickName()}
<!--@end-->
</div>
<!--@else-->
<div class="author"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></div>
<!--@end-->
</div>
<!--@end-->
</div><div class="dateAndCount">
<div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div><div class="date" title="{$lang->regdate}">
<strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')} <!--@if($grant->manager || $module_info->display_ip_address!='N')-->({$oDocument->getIpaddress()})<!--@end-->
</div><div class="readedCount" title="{$lang->readed_count}">{$oDocument->get('readed_count')}</div>
<!--@if($oDocument->get('voted_count')!=0 || $oDocument->get('blamed_count')!=0)-->
<div class="votedCount" title="{$lang->voted_count}">
<a href="#layer_voted_member" class="voted_member_{$oDocument->document_srl} document votedup">{$oDocument->get('voted_count')}</a> / <a href="#layer_voted_member" class="voted_member_{$oDocument->document_srl} document voteddown">{$oDocument->get('blamed_count')}</a>
</div>
<!--@end--><div class="replyAndTrackback">
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
<div class="replyCount"><a href="#comment" title="{$lang->comment}"><strong>{$oDocument->getCommentcount()}</strong></a></div>
<!--@end-->
<!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount() )-->
<div class="trackbackCount"><a href="#trackback" title="{$lang->trackback}"><strong>{$oDocument->getTrackbackCount()}</strong></a></div>
<!--@end-->
</div><!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<div class="category" title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></div>
<!--@end-->
</div>
</div><!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
<table cellspacing="0" summary="" class="extraVarsList">
<col width="150" />
<col />
<!--@foreach($oDocument->getExtraVars() as $key => $val)-->
<tr>
<th>{$val->name}</th>
<td>{$val->getValueHTML()}</td>
</tr>
<!--@end-->
</table>
<!--@end--><div class="readBody">
<div class="contentBody">
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<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="{$oDocument->document_srl}" /><div class="title">{$lang->msg_is_secret}</div>
<div class="content"><input type="password" name="password" id="cpw" class="iText" /><span class="btn"><input type="submit" value="{$lang->cmd_input}" /></span></div></form>
</div><!--@else-->
{$oDocument->getContent()}
<!--@end--><!-- display signature / profile image-->
<!--@if($module_info->display_sign != 'N' && ($oDocument->getProfileImage() || $oDocument->getSignature()))-->
<div class="memberSignature">
<!--@if($oDocument->getProfileImage())-->
<div class="profile"><img src="{$oDocument->getProfileImage()}" alt="profile" /></div>
<!--@end-->
<!--@if($oDocument->getSignature())-->
<div class="signature">{$oDocument->getSignature()}</div>
<!--@end-->
</div>
<!--@end-->
</div>
</div>{@ $tag_list = $oDocument->get('tag_list') }
<!--@if(count($tag_list))-->
<div class="tag">
<ul>
<!--@for($i=0;$i<count($tag_list);$i++)-->
{@ $tag = $tag_list[$i]; }
<li><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a><!--@if($i<count($tag_list)-1)-->, <!--@end--></li>
<!--@end-->
</ul>
</div>
<!--@end--><!--@if($oDocument->hasUploadedFiles())-->
<div class="fileAttached">
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<ul>
<!--@foreach($uploaded_list as $key => $file)-->
<!--@end-->
</ul>
</div>
<!--@end-->
</div>
<!-- list, modify/delete button -->
<div class="btnArea">
<!--@if($module_info->default_style != 'blog' || ($module_info->default_style == 'blog' && Context::get('document_srl')))-->
<span class="btn"><a href="{getUrl('document_srl','')}"><!--@if($module_info->default_style != 'blog')-->{$lang->cmd_list}<!--@else-->{$lang->cmd_view_all}<!--@end--></a></span>
<!--@end-->
<!--@if($oDocument->isEditable())-->
<span class="btn"><a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}">{$lang->cmd_modify}...</a></span>
<span class="btn"><a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}">{$lang->cmd_delete}</a></span>
<!--@end-->
</div></div>
<!-- trackback -->
<!--@if($oDocument->allowTrackback())-->
<!--#include("./trackback.html")-->
<!--@end--><div class="g-plusone" data-annotation="inline" data-width="300"></div>
<!-- comments -->
<a name="comment"></a>
<!--#include("./comment.html")--><div id="Editor_dummy">
<!--
<div id="deleteEditor">
<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="" />
<input type="hidden" name="parent_srl" value="" />
<div class="boardWrite commentEditor">
<div class="editor">{$oDocument->getCommentEditor()}</div><div class="editorOption">
<!--@if(!$is_logged)-->
<!--@end--></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>
</div>
-->
</div><!-- comments form -->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<form action="./" method="post" onsubmit="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="userNameAndPw">
<!--@if(!$is_logged)-->
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="" class="userName iText" id="userName"/><label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw iText" /><label for="emailAddress">{$lang->email_address}</label>
<input type="text" name="email_address" value="" id="emailAddress" class="emailAddress iText"/><label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" value="" id="homePage" class="homePage iText"/>
<!--@else-->
<!--@end-->
<!--@if($module_info->secret=="Y")-->
<input type="checkbox" name="is_secret" value="Y" id="is_secret" />
<label for="is_secret">{$lang->secret}</label>
<!--@end-->
</div><div class="editor">{$oDocument->getCommentEditor()}</div>
</div><div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_comment_registration}" /></span>
</div>
</form>
<!--@end-->여기서 어디를 넣어도 추천버튼 밑에 뜨네요;; 정말 고치고 싶은데 안될까요
-
I-JEX
2015.04.11 07:29
아...; 생각해보니 애드온이 있었네요.....
https://www.xpressengine.com/index.php?mid=download&package_id=22743728
-
고종훈
2015.04.11 10:56
애드온을 사용해도 추천버튼 아래에 코드가 뜨네요 정말 비통합니다 ㅠㅠㅠ
게시글 작성 회원 프로필, 이전/다음글 등의 내용 없이 추천버튼 위에 바로 출력하고 싶으시다는 얘기시죠?