Google Adsense In Navbar
How To: Go to https://www.google.com/adsense and create your own account there and replace the blue text below in the code with your PUB ID. Description: To have Google Adsense in your navbar! Installation Time: < 1 minute Installation: Step 1: Find this code in your Navbar template: Styles and Templates > Style Manager > Your style > Navigation/Breadcrumb Templates > Navbar. Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> Code:
<!--<Adsense Start>-----------> <td class="alt2"> <div align="center"> <p align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-YOUR PUB ID HERE"; /* 468x60, created 12/26/09 */ google_ad_slot = "2895235903"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> </div> </td> <!--<Adsense End>------------------------------> If you want only registered members to view it, use this code: Code:
<!--<Adsense Start>-----------> <td class="alt2"> <div align="center"> <if condition="$show['member']"> <p align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-YOUR PUB ID HERE"; /* 468x60, created 12/26/09 */ google_ad_slot = "2895235903"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> </if> </div> </td> <!--<Adsense End>------------------------------> In the blue area, enter your own PUB ID!! DONE! NOTE: Someone pointed out a mod similar to this one for the 3.7 series. So, he gets credit for his work also. If you use this mod, please CLICK INSTALL!!! Download
adsense_install.txt (1.6 KB, 45 downloads) Supporters / CoAuthors
Screenshots |
Similar Mods
Forum Home Enhancements UKBL ~ Google Adsense in Navbar | Modification Graveyard |
Add Google adsense search to your navbar dropdown | vBulletin 3.5 Template Modifications |
Google Adsense In Navbar | vBulletin 3.5 Template Modifications |