vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with google adsence intergration (Centering in navbar) - Please help! (https://vborg.vbsupport.ru/showthread.php?t=177006)

qerrer1881 04-24-2008 03:48 AM

Help with google adsence intergration (Centering in navbar) - Please help!
 
:confused:Take a look at the site www.abforum.org

With the navbar adsence intergration it appears correct at full screen (on a 19" wide monitor), but when you slim it down the adsence box in the navbar appears to merge to the right. There is some kind of table blocking it from the left but i do not know how to change it so it stays centered on smaller monitors and when you adjust the size.

(I think i need to change the width of the part that says australian business forum in the navbar)

I have played around with every aspect of the code and it isn't that. There is something else that needs changing.

PLEASE HELP!

the code i used (Nuturalizer adsense intergration tutorial):

Find:

<!-- / PAGENAV POPUP -->
</if>
Add below:

<table class="border" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>

Please help guys..
Thanks in advance Dave

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

Please Help, I am desperate..

Catmag 07-04-2008 11:46 PM

There may be an easier way to do it, but here's how I did it.

Create a class in your css file

Code:

.adcenter {
    text-align: center;
}

Then wrap your code in a DIV

Code:

<div class="adcenter">ad code....</div
Name the class whatever you want.

badboyz 07-05-2008 04:00 AM

the best way to add ads in ur site is

go to navabar template go all the way down in the template type this

<br />
<center>
<<<<<your ad code here >>>>
</center>
<br />


All times are GMT. The time now is 12:29 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.01057 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete