Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-26-2011, 03:47 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need some help fixing code

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 [DATE]1319647981[/DATE] at [TIME]1319647981[/TIME] ---------------

Code:
{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&amp;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=160x600;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=160x600;ord

='+random_number+'?" >
<IMG 

SRC="http://ad.doubleclick.net/ad/huskermax.fsv/home;sect=home;fantasy=no;game=no;tile=2;sz=160x600;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>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09317 seconds
  • Memory Usage 2,525KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete