묻고답하기
추천버튼 위에 애드센스 광고 달기
2015.08.16 21:28
일반 모바일 게시판을 쓰고있는데요
<load target="js/whre.js" type="body" />
{@ Context::addJsFile("./common/js/jquery.js", true, '', -100005) }
{@ Context::addJsFile("./common/js/js_app.js", true, '', -100004) }
{@ Context::addJsFile("./common/js/common.js", true, '', -100003) }
{@ Context::addJsFile("./common/js/xml_handler.js", true, '', -100002) }
{@ Context::addJsFile("./common/js/xml_js_filter.js", true, '', -100001) }
<!--%import("js/mboard.js")-->
<!--%import("css/mboard.css")-->
<div class="hx h2">
<h2><a href="{getUrl('document_srl','','category','','page','')}">{$module_info->browser_title}</a>
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->› <a href="{getUrl('document_srl','','category',$oDocument->get('category_srl'))}">{$category_list[$oDocument->get('category_srl')]->title}</a><!--@end--> › {$oDocument->getTitle()}</h2>
<span class="ex">{$oDocument->getNickName()} | {$oDocument->getRegdate()} | <a href="#skip_co">본문 건너뛰기</a></span>
<a href="{getUrl('act','dispBoardWrite','document_srl','')}" class="write">{$lang->cmd_write}</a>
</div>
<div class="co">
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<form action="./" method="get" class="ff" 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}" />
<label for="cpw">{$lang->msg_is_secret}</label>
<input type="password" name="password" id="cpw" />
<input type="submit" value="{$lang->cmd_input}" class="bn dark" />
</form>
<!--@else-->
<!--@if($oDocument->isExtraVarsExists())-->
{@ $_extra_vars = $oDocument->getExtraVars(); }
<dl class="xv">
<!--@foreach($_extra_vars as $key => $val)-->
<dt>{$val->name}</dt>
<dd>{$val->getValueHTML()}</dd>
<!--@end-->
</dl>
<!--@end-->
{$oDocument->getContent(false)}
<!--@end-->
애드센스 광고태그
</div>
<div id="skip_co"></div>
<!--@if($oDocument->hasUploadedFiles())-->
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<div class="hx h3">
<h3>{$lang->uploaded_file} <em>[{count($uploaded_list)}]</em></h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<ul class="file tgo open">
<!--@foreach($uploaded_list as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="size">{FileHandler::filesize($file->file_size)}</span></a></li>
<!--@end-->
</ul>
<!--@endif-->
<!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount())-->
<div class="hx h3">
<h3>{$lang->trackback} <em>[{$oDocument->getTrackbackCount()}]</em></h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<ul class="rp tgo open">
{@ $_trackback_list = $oDocument->getTrackbacks() }
<!--@foreach($_trackback_list as $key => $val)-->
<li>
<p>{$val->excerpt}</p>
<span class="auth">
<em>{htmlspecialchars($val->title)} - {htmlspecialchars($val->blog_name)}</em>
<span class="time">{zdate($val->regdate, "Y.m.d")}</span>
<!--@if($grant->manager)-->
<a href="07_password.html" class="btn de">삭제</a>
<!--@endif-->
</span>
</li>
<!--@end-->
</ul>
<!--@endif-->
<!--@if($oDocument->allowComment() && $oDocument->getCommentCount())-->
<div class="hx h3">
<h3 id="clb">{$lang->comment} <em>[{$oDocument->getCommentCount()}]</em></h3>
<button type="button" class="tg tgr" title="open/close"></button>
</div>
<!--@endif-->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<div class="hx h3">
<h3>{$lang->write_comment}</h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<form action="./" method="post" class="ff tgo open" onsubmit="return procFilter(this, insert_comment);">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<ul>
<li>
<label for="rText">{$lang->comment}</label>
<textarea name="content" cols="20" rows="5" id="rText"></textarea>
</li>
<!--@if(!$is_logged)-->
<li>
<label for="uName">{$lang->writer}</label>
<input name="nick_name" type="text" id="uName" />
</li>
<li>
<label for="uMail">{$lang->email_address}</label>
<input name="email_address" type="text" id="uMail" />
</li>
<li>
<label for="uPw">{$lang->password}</label>
<input name="password" type="password" id="uPw" />
</li>
<li>
<label for="uSite">{$lang->homepage}</label>
<input name="homepage" type="text" id="uSite" value="http://" />
</li>
<!--@endif-->
</ul>
<div class="bna">
<input name="" type="submit" value="{$lang->cmd_comment_registration}" class="bn dark" />
</div>
</form>
<!--@end-->
<div style="height:1px;overflow:hidden;background:#ddd"></div>
<div class="bna">
<span class="fl"><a href="{getUrl('document_srl','')}" class="bn white">{$lang->cmd_list}</a></span>
<span class="fr">
<!--@if($oDocument->isEditable())-->
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="bn white">{$lang->cmd_delete}</a>
<!--@end-->
</span>
</ul>
<script type="text/javascript">
//<![CDATA[
jQuery(function($){
$('.co .mm').next().hide();
$('.mm').click(function(){ $(this).hide().next().show();});
$('.tgo').removeClass('open');
$('.tg').click(function(){
$(this).parent('.h3').next('.tgo').toggleClass('open');
});
var loaded = false;
$('.tgr').click(function(){
if(!loaded) {
loaded = true;
{@ $lastpage = 1; }
{@ $temp = $oDocument->getComments() }
<!--@if($oDocument->comment_page_navigation)-->
{@ $lastpage = $oDocument->comment_page_navigation->last_page }
<!--@endif-->
loadPage({$oDocument->document_srl}, {$lastpage});
}
});
//!!!S 댓글자동펼치기 추가부분, ilbe.co.kr에서 소스보기로 가져옴[빨간색만 추가되고 검정색은 위에 소스와 같음]
$(document).ready(function () {
if(!loaded) {
loaded = true;
{@ $lastpage = 1; }
{@ $temp = $oDocument->getComments() }
<!--@if($oDocument->comment_page_navigation)-->
{@ $lastpage = $oDocument->comment_page_navigation->last_page }
<!--@endif-->
loadPage({$oDocument->document_srl}, {$lastpage});
}
});
//!!!E
});
//]]>
이렇게 게시글 본문 하단에 광고태그를 삽입하여 사용하고있습니다.
그런데 제가 추천,비추천 모듈을 함께 사용하고있어서 항상 광고가 버튼 밑에 나오더라구요
광고버튼을 추천버튼 위에 삽입하는 방법 좀 알고싶은데 아시는 분 조언 좀 부탁드리겠습니다.
모바일 스킨 read.html 에서 수정하는건 아닌거같아서요.. 아무리 다른 곳에 넣어봐도
추천버튼 밑이라 ㅠㅠ