The Arcive of vBulletin Modifications Site. |
|
Adsense Leaderboard on Non-Index Pages Details »»
|
|||||||||||||||||||||||||
After reading some of the great Google Adsense template modifications on this forum, I decided to contribute one of my own. Special thanks go to StarBuG, whose Adsense template modifications have been tremendous inspiration.
What does it do? This modification places a Google Adsense 728 x 90 leaderboard under the navigation bar (navbar) on all vBulletin-powered pages that call the navbar, except for the Forumhome (index). The integration of the Google Adsense is placed in a simple, elegant, style-compliant box. How to Install In Admin CP > Styles & Templates > Style Manager > Edit Templates, edit the navbar template. Search for: Code:
<!-- / nav buttons bar --> Code:
<if condition="THIS_SCRIPT != 'index'"> <!-- Google Adsense Headers, Non Index --> <br /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width: 0px"> <tr><td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "your pub id here"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_color_border = "222222"; google_color_bg = "222222"; google_color_link = "FFB019"; google_color_text = "D7CEA4"; google_color_url = "D7CEA4"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td></tr> </table> <!-- / Google Adsense Headers, Non Index --> </if> Demo Aelyria.com - just enter any forum/area. Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Installed, thanks for it.
Is there way for Adsense not to shown on forumhome? |
|
#3
|
|||
|
|||
|
Thanks. Great mod. Installed.
|
|
#4
|
||||
|
||||
|
Quote:
Code:
<if condition="THIS_SCRIPT != 'index'"> Thanks, guys.
|
|
#5
|
||||
|
||||
|
I don't think you were supposed to remove the vBulletin copyrights from the footer...
|
|
#6
|
||||
|
||||
|
I have a branding-free license for vBulletin, and all of my products.
|
|
#7
|
|||
|
|||
|
Excellent, thanks.........
|
|
#8
|
|||
|
|||
|
Anybody help me how to make a condition so that this does not appear on non-content pages? ... User CP, search, new thread..etc.
Any help would be appreciated. I tried mimicking the original condition that stops it from showing on index but I must be doing something wrong.
|
|
#9
|
|||
|
|||
|
glutenfree: change the if condition from
PHP Code:
PHP Code:
|
|
#10
|
|||
|
|||
|
Is there anyway of not to have ads on few sections but all rest?
like i have sports, image, jokes etc and don't want ads on image section but on all rest of sections? |
![]() |
|
|