The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey,
I have added adsense, both in the breadcrumb template and in the ad_global_below_navbar template but when I do it is making the navigation move into the header. Can anyone help with this please? I have left it in the ad_global_below_navbar template so you can see the problem. This is the code I am using: <p align="center"><script type="text/javascript"><!-- google_ad_client = "ca-pub-9222821431952789"; /* ICF - Hdr 728 */ google_ad_slot = "2541901540"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></p> --------------- Added [DATE]1416998770[/DATE] at [TIME]1416998770[/TIME] --------------- P.s. I also did it without <p> tags |
#2
|
||||
|
||||
![]()
Does it do the same thing on a unmodified default style?
|
#3
|
|||
|
|||
![]()
Hey ozzy,
This is the only modification made on the default design, everything else is default. Thanks ![]() |
#4
|
|||
|
|||
![]()
Do you have a link to the forum where this issue is happening?
|
#5
|
|||
|
|||
![]()
<a href="http://www.deuceace.com" target="_blank">http://www.deuceace.com</a>
the homepage you have set on this site is not working you need to update it |
#6
|
|||
|
|||
![]()
Sorry, I thought I included a link!
Http://www.InternationalChatForum.com - Just testing it out at the minute so its all default apart from this one change Thanks --------------- Added [DATE]1417010690[/DATE] at [TIME]1417010690[/TIME] --------------- Its a new install with a database from vb 3.8 - So everything is as standard |
#7
|
|||
|
|||
![]()
the footer code is messed up revert it and the code you have above make sure you add it to the bottom of the template
default below for google ads ad_showthread_firstpost_start Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> <vb:if condition="!$bbuserinfo['userid']"> <div style="float:right; width:300px; height:250px; margin-left:10px"> <script type="text/javascript"><!-- google_ad_client = "{vb:var adsense_pub_id}"; google_ad_host = "{vb:var adsense_host_id}"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "{vb:stylevar alt1_bgcolor_hex}"; google_color_bg = "{vb:stylevar alt2_bgcolor_hex}"; google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}"; google_color_text = "{vb:stylevar body_fgcolor_hex}"; google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}"; google_ui_features = "rc:6"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </vb:if> </vb:if> Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> <div style="width:728px; margin:0 auto; padding-bottom:1em"> <script type="text/javascript"><!-- google_ad_client = "{vb:var adsense_pub_id}"; google_ad_host = "{vb:var adsense_host_id}"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "{vb:stylevar alt2_bgcolor_hex}"; google_color_bg = "{vb:stylevar alt1_bgcolor_hex}"; google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}"; google_color_text = "{vb:stylevar body_fgcolor_hex}"; google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}"; google_ui_features = "rc:6"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </vb:if> Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> <div class="google_adsense_footer" style="width:728px; margin:0 auto; padding-top:1em"> <script type="text/javascript"><!-- google_ad_client = "{vb:var adsense_pub_id}"; google_ad_host = "{vb:var adsense_host_id}"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "{vb:stylevar page_bgcolor_hex}"; google_color_bg = "{vb:stylevar page_bgcolor_hex}"; google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}"; google_color_text = "{vb:stylevar body_fgcolor_hex}"; google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}"; google_ui_features = "rc:6"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </vb:if> |
#8
|
|||
|
|||
![]()
Thanks for the reply, I was just trying if adsense worked on the footer, I have it reverted to the default again but its the same problem.
|
#9
|
|||
|
|||
![]()
above post updated
|
#10
|
|||
|
|||
![]()
Thanks for the reply, just wondering what the "AND CONTENT PAGE" in the code is for please.
I have reverted all templates so its back to complete default now. I would like to have adsense on the header and footer of all pages. Thanks for the help ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|