huskermax
10-26-2011, 03:47 PM
In the Showthread template we had a coder ad some vertical ad code. See them at www.huskermax.com/vbbs.
After the ad code was put in the quick reply button stopped working.
Below is showthread as is with quick reply not working. I bolded the ad code that if I take it out everything works with out the ads but put it back in and quick reply does not work but has the ads. Do I need to put the bolded code somewhere else? I can see it is right in the middle of the quick reply code.
See next post.
--------------- Added 1319647981 at 1319647981 ---------------
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<SCRIPT>
var a = Math.floor(Math.random()*9999999999+1)
var random_number = a;
</SCRIPT>
{vb:raw headinclude}
<vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
<meta name="description" content="{vb:raw thread.meta_description}" />
<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}<vb:if condition="$pagenumber > '1'"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>
<link rel="canonical" href="{vb:raw thread_url}" />
<vb:if condition="$show['reputation']">
<script type="text/javascript" src="clientscript/vbulletin-ajax-reputation.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickedit'] OR $show['quickreply']">
<script type="text/javascript" src="clientscript/vbulletin_textedit.js?v={vb:raw vboptions.simpleversion}"></script>
<vb:if condition="$show['postloader_js']">
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
</vb:if>
<vb:if condition="$show['threadrating']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['multiquote_global']">
<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickedit']">
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickreply']">
<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
(some code removed for character limit)
<li><a href="javascript://" id="post_imodsel:flag:4">{vb:rawphrase select_posts_with_attachments}</a></li>
<li><a href="javascript://" id="post_imodsel:flag:8">{vb:rawphrase select_posts_from_guests}</a></li>
</ul>
</li>
</vb:if>
</ul>
</div>
</div>
<vb:if condition="THIS_SCRIPT == 'showthread'">
<table>
<tr><td>
</vb:if>
<div id="postlist" class="postlist restrain">
<vb:if condition="$show['threadedmode'] OR $show['hybridmode']">
{vb:raw threadlist}
</vb:if>
(some code removed for character limit)
<vb:if condition="$show['quickreply']">
<div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>">
<form class="vbform" name="quick_reply" id="quick_reply" method="post" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?do=postreply&t={vb:raw threadid}"
onsubmit="return qr_prepare_submit(this, {vb:raw vboptions.postminchars});">
<div id="qr_error_tbody" class="block errorblock hidden">
<h3 class="blockhead">{vb:rawphrase errors}</h3>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">{vb:rawphrase errors_occured_when_submitted}</h3>
<div class="blockrow error" id="qr_error_td"></div>
</div>
<div class="blockfoot actionbuttons"><div class="group"><a href="javascript://" class="textcontrol" onclick="return qr_hide_errors()">{vb:rawphrase okay}</a></div></div>
</div>
</td><td style="vertical-align:top; width: 170px !important; padding-left:7px; padding-top: 10px;">
<SCRIPT>
document.write('<scr' + 'ipt
src=http://ad.doubleclick.net/adj/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord='
+ random_number + '?></scr' + 'ipt>');
</SCRIPT>
<NOSCRIPT>
<A
HREF="http://ad.doubleclick.net/jump/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord
='+random_number+'?" >
<IMG
SRC="http://ad.doubleclick.net/ad/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord='+
random_number+'?" border="0" height="600" width="160"></A>
</NOSCRIPT><br/><br/>
<script src="http://tag.contextweb.com/TagPublish/getjs.aspx?
action=VIEWAD&cwrun=200&cwadformat=160X600&cwpid=536973&cwwidth=160&cwheight=600&cwpnet=1&cwtagid=105587">
</script><br><br>
</td></tr></table>
After the ad code was put in the quick reply button stopped working.
Below is showthread as is with quick reply not working. I bolded the ad code that if I take it out everything works with out the ads but put it back in and quick reply does not work but has the ads. Do I need to put the bolded code somewhere else? I can see it is right in the middle of the quick reply code.
See next post.
--------------- Added 1319647981 at 1319647981 ---------------
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<SCRIPT>
var a = Math.floor(Math.random()*9999999999+1)
var random_number = a;
</SCRIPT>
{vb:raw headinclude}
<vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
<meta name="description" content="{vb:raw thread.meta_description}" />
<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}<vb:if condition="$pagenumber > '1'"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>
<link rel="canonical" href="{vb:raw thread_url}" />
<vb:if condition="$show['reputation']">
<script type="text/javascript" src="clientscript/vbulletin-ajax-reputation.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickedit'] OR $show['quickreply']">
<script type="text/javascript" src="clientscript/vbulletin_textedit.js?v={vb:raw vboptions.simpleversion}"></script>
<vb:if condition="$show['postloader_js']">
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
</vb:if>
<vb:if condition="$show['threadrating']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['multiquote_global']">
<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickedit']">
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<vb:if condition="$show['quickreply']">
<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
(some code removed for character limit)
<li><a href="javascript://" id="post_imodsel:flag:4">{vb:rawphrase select_posts_with_attachments}</a></li>
<li><a href="javascript://" id="post_imodsel:flag:8">{vb:rawphrase select_posts_from_guests}</a></li>
</ul>
</li>
</vb:if>
</ul>
</div>
</div>
<vb:if condition="THIS_SCRIPT == 'showthread'">
<table>
<tr><td>
</vb:if>
<div id="postlist" class="postlist restrain">
<vb:if condition="$show['threadedmode'] OR $show['hybridmode']">
{vb:raw threadlist}
</vb:if>
(some code removed for character limit)
<vb:if condition="$show['quickreply']">
<div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>">
<form class="vbform" name="quick_reply" id="quick_reply" method="post" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?do=postreply&t={vb:raw threadid}"
onsubmit="return qr_prepare_submit(this, {vb:raw vboptions.postminchars});">
<div id="qr_error_tbody" class="block errorblock hidden">
<h3 class="blockhead">{vb:rawphrase errors}</h3>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">{vb:rawphrase errors_occured_when_submitted}</h3>
<div class="blockrow error" id="qr_error_td"></div>
</div>
<div class="blockfoot actionbuttons"><div class="group"><a href="javascript://" class="textcontrol" onclick="return qr_hide_errors()">{vb:rawphrase okay}</a></div></div>
</div>
</td><td style="vertical-align:top; width: 170px !important; padding-left:7px; padding-top: 10px;">
<SCRIPT>
document.write('<scr' + 'ipt
src=http://ad.doubleclick.net/adj/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord='
+ random_number + '?></scr' + 'ipt>');
</SCRIPT>
<NOSCRIPT>
<A
HREF="http://ad.doubleclick.net/jump/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord
='+random_number+'?" >
<IMG
SRC="http://ad.doubleclick.net/ad/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x60 0;ord='+
random_number+'?" border="0" height="600" width="160"></A>
</NOSCRIPT><br/><br/>
<script src="http://tag.contextweb.com/TagPublish/getjs.aspx?
action=VIEWAD&cwrun=200&cwadformat=160X600&cwpid=536973&cwwidth=160&cwheight=600&cwpnet=1&cwtagid=105587">
</script><br><br>
</td></tr></table>