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

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 10-26-2011, 03:59 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's kind of hard to read, you should put it in tags. Also, I guess the 405, 406, 407, etc are line numbers from pasting the code?

I can't see right off what's wrong, but I do see </td></tr></table> at the end of the bold section when I don't see what table they belong to.
Reply With Quote
  #3  
Old 10-26-2011, 04:21 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<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  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>
<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></td></tr></table>
	<div class="wysiwyg_block">
	<div class="blockbody formcontrols">
		<div class="blockrow">
			{vb:raw messagearea}
		</div>
--------------- Added [DATE]1319649745[/DATE] at [TIME]1319649745[/TIME] ---------------

Quote:
Originally Posted by kh99 View Post
That's kind of hard to read, you should put it in [code][/code] tags. Also, I guess the 405, 406, 407, etc are line numbers from pasting the code?

I can't see right off what's wrong, but I do see </td></tr></table> at the end of the bold section when I don't see what table they belong to.
I tried code tags and it won't let me. It says I have to many characters.

--------------- Added [DATE]1319649809[/DATE] at [TIME]1319649809[/TIME] ---------------

Quote:
Originally Posted by kh99 View Post
That's kind of hard to read, you should put it in [code][/code] tags. Also, I guess the 405, 406, 407, etc are line numbers from pasting the code?

I can't see right off what's wrong, but I do see </td></tr></table> at the end of the bold section when I don't see what table they belong to.

I am not sure on the table either. Can I close that table at the top of the bolded code maybe? This is on my test board as well so I can get you access. It won't let me post the whole showthread temp even with code tags.

--------------- Added [DATE]1319650100[/DATE] at [TIME]1319650100[/TIME] ---------------

Code:
<vb:if condition="THIS_SCRIPT == 'showthread'">
<table>
<tr><td>
</vb:if>
The above code was added starting on line 266 were the ad code above (in bold) was added on line 404. That is the first open table code I see with out a close.

--------------- Added [DATE]1319651373[/DATE] at [TIME]1319651373[/TIME] ---------------

How can I copy and post the whole showthread temp and get around the character limit?

--------------- Added [DATE]1319729111[/DATE] at [TIME]1319729111[/TIME] ---------------

To see the whole showthread code follow the link.

https://www.vbulletin.com/forum/show...on-not-working.

On the .com board I can post all the text and I put the a code in blue and bold. Not sure why it won't let me post the whole code here even when using code tags.
Reply With Quote
  #4  
Old 10-27-2011, 05:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We don't want to see your whole SHOWTHREAD template, only the part that you changed.
Reply With Quote
  #5  
Old 10-28-2011, 02:19 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
We don't want to see your whole SHOWTHREAD template, only the part that you changed.
That is in the first post. That part I changed.
Reply With Quote
  #6  
Old 10-28-2011, 03:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You've added all sorts of table tags in where there is no table at all - why do you have those there? You are going to have problems if you randomly throw a <td> tag and some others into the middle of nowhere. Clean up your code and then post what you are using.

Also, how about an image of where you are trying to add this code? Right now, you have it in the middle of a form which is probably not the smartest thing to do. Why not put it above or below the form?
Reply With Quote
  #7  
Old 10-28-2011, 05:49 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You've added all sorts of table tags in where there is no table at all - why do you have those there? You are going to have problems if you randomly throw a <td> tag and some others into the middle of nowhere. Clean up your code and then post what you are using.

Also, how about an image of where you are trying to add this code? Right now, you have it in the middle of a form which is probably not the smartest thing to do. Why not put it above or below the form?
I had a coder do it so that is why I am confused. I saw the table tags and as the poster above pointed out, I did not think they should be there.

Here is a screen shot with the ad code in there as you see above in post 1 which I updated with the three sections of code that the coder guy added. The text is blue so it stands out.

I tried to take out the table tags but that moved the ads from the right side like they are in the screen shot to the bottom between the last post and the quick reply box.
Attached Images
File Type: jpg verticalads.jpg (98.3 KB, 0 views)
Reply With Quote
  #8  
Old 10-30-2011, 07:10 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
Reply


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 05:13 PM.


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.04227 seconds
  • Memory Usage 2,277KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (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)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_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
  • 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