Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-08-2009, 10:21 PM
droid101 droid101 is offline
 
Join Date: Jan 2008
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Banner Problem - Please Help

Hey there,

I'm running ads from Adbrite mixed with Google on my site. When in Chrome or Firefox, they look normal - banner ad and the little "Your Ad Here" bar on the side.

However, in IE, that bar is under the banner, making it twice as big.

Go to my home page with IE to see: http://constantcognizance.com

It happens with the banner at the top and bottom of the page.

This is the code for the top banner:

PHP Code:
<!-- BeginAdBriteGenerated2009-04-05 3:15:45  -->
<
script type="text/javascript">
var 
AdBrite_Title_Color '0000FF';
var 
AdBrite_Text_Color '000000';
var 
AdBrite_Background_Color 'FFFFFF';
var 
AdBrite_Border_Color 'CCCCCC';
var 
AdBrite_URL_Color '008000';
try{var 
AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</
script>
<
span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1113947&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<
a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1113947&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- 
EndAdBrite --> 
I don't know what I need to adjust so that it doesn't do that. Would it be in this code, or in the CSS somewhere? I'm at a loss.

Thanks.

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

Here is the response I got from Adbrite:

Quote:
While you already have a Firefox specific css, you may want to increase the width on the IE specific CSS which should resolve the problem. AdBrite does not provide advanced coding support at this time.
I'm not sure what to adjust to fix this issue. Any thoughts?
Reply With Quote
  #2  
Old 04-09-2009, 05:04 PM
Mr-Moo Mr-Moo is offline
 
Join Date: Sep 2007
Location: Chicago, IL.
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It appears that you have a conflict with your CSS. If you paste your advertisement code (alone) into notepad and save the file as HTML then launch in IE it displays properly.

This tells me that the coding above it does not get along well.

Please let me know if this helps you.

// Edit //

Woo! My 100th post!
Reply With Quote
  #3  
Old 04-09-2009, 06:31 PM
droid101 droid101 is offline
 
Join Date: Jan 2008
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr-Moo View Post
It appears that you have a conflict with your CSS. If you paste your advertisement code (alone) into notepad and save the file as HTML then launch in IE it displays properly.

This tells me that the coding above it does not get along well.

Please let me know if this helps you.
Thanks for the feedback.

I tried pasting the whole footer template as you said above, and it displays properly.

Could it be something in the header or headinclude template that is trickling down and affecting everything? It's tough to know what I'm looking for.
Reply With Quote
  #4  
Old 04-09-2009, 07:04 PM
Mr-Moo Mr-Moo is offline
 
Join Date: Sep 2007
Location: Chicago, IL.
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is the tough part. Your best bet is to eliminate all the code (save a backup) and start from square one. Start placing blocks of code back until the error displays again. This will allow you to narrow it down to a specific snippet of code and we will better be able to support you.

Currently I don't have the time (or the knowledge) to sift through all your code and give you better guidance.

Good luck, hope to see a response
Reply With Quote
  #5  
Old 04-09-2009, 08:00 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have many tags missing or they are at the wrong place.

There are 236 Errors, 43 warning(s)

http://validator.w3.org/check?uri=ht...Inline&group=0

Fix them one by one and that should solve your problem.

.
Reply With Quote
  #6  
Old 04-09-2009, 09:55 PM
droid101 droid101 is offline
 
Join Date: Jan 2008
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr-Moo View Post
That is the tough part. Your best bet is to eliminate all the code (save a backup) and start from square one. Start placing blocks of code back until the error displays again. This will allow you to narrow it down to a specific snippet of code and we will better be able to support you.

Currently I don't have the time (or the knowledge) to sift through all your code and give you better guidance.

Good luck, hope to see a response
Thanks, having a plan of attack is better than nothing. I really had no idea where to start.

Quote:
Originally Posted by Seven Skins View Post
You have many tags missing or they are at the wrong place.

There are 236 Errors, 43 warning(s)

http://validator.w3.org/check?uri=ht...Inline&group=0

Fix them one by one and that should solve your problem.

.
I'll go through there and see if anything helps.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04432 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete