Add A Advertisement After Postbit

September 20, 2007No Comments »

If you would like to place a banner ad, adsense, or other advertisement after the first post in your vBulletin forum, this can easily be acheived by making a template edit to your postbit and postbit_legacy templates.

Go to your ADMINCP – > Styles and Templates – > Style Manager – > Edit Template (In the drop down box) and Select postbit / postbit_legacy.

At the end of your postbit and / or postbit_legacy template, add the follow code: <if condition="!$GLOBALS['FIRSTPOSTID']"></if> <table border="0" align="center" width="100%" cellPadding="$stylevar[cellpadding]" cellSpacing="0" id="post$post[postid]" class="tborder"><> </><tbody> <tr><> </> <td colSpan="2" style="font-weight: normal" class="thead">Sponsored Links</td> <> </></tr> <> </> <tr><> </> <td style="border-top: 0px" class="alt2"><center> ------PLACE AD CODE HERE------ </center></td> <> </></tr> <> </></tbody></table>

Remember to replace “——PLACE AD CODE HERE—— ” with your ad code / banner image, or whatever you would like displayed here.

Screenshot

Add A Advertisement After Postbit



Please read our comments policy before acting on this post.

Add Adsense Link Units Under Your Navbar

September 18, 2007No Comments »

Here is another template modification that will allow you to place Google Adsense Link Units under your Navbar. The navbar is a highly active area of your forum, and because of this, these ad units work well.

Go to your ADMINCP – > Styles and Templates – > Style Manager – > Edit Template (In the drop down box) and Select the NavBar Template.

In the navBar template, Find this code: <! -- / nav buttons bar -->

Above this code, Add: <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr align="center"> <td class="vbmenu_control"> <script type="text/javascript"><! -- google_ad_client = "Your Adsense publisher ID Here"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728x15_0ads_al_s"; google_color_border = "738FBF"; google_color_bg = "738FBF"; google_color_link = "ffffff"; google_color_text = "000000"; google_color_url = "000000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table>

Remember to change Your Adsense publisher ID Here to your pub- number.

Screenshot:

Add Adsense Link Units Under your Navbar



Please read our comments policy before acting on this post.

Add Google Adsense Link Units Above New Thread And Post Reply Buttons

September 18, 2007No Comments »

This simple template modification will add a 728×15 Google Adsense link Unit above the New Thread and post Reply buttons, which are high activity areas on your vBulletin forum. Note, if you are using link units that will appear on the same page as these, both link units may not show. See the Google Adsense TOS on how many Link Unit Ads may be allowed on one page.

Go to your ADMINCP – > Styles and Templates – > Style Manager – > Edit Template (In the drop down box) and Select the ForumDisplay Template.

In your ForumDisplay Template Find: <!-- controls above thread list -->

Above this code, Add: <script type="text/javascript"><! -- google_ad_client = "Your Adsense publisher ID Here"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728×15_0ads_al_s"; google_color_border = "ffffff"; google_color_bg = "ffffff"; google_color_link = "000000"; google_color_url = "000000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

Now, save that template. Next you need to edit your ShowThread template.

In your ShowThread Template Find: <!-- controls above thread list -->

And below add: <script type="text/javascript"><! -- google_ad_client = "Your Adsense publisher ID Here"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728×15_0ads_al_s"; google_color_border = "ffffff"; google_color_bg = "ffffff"; google_color_link = "000000"; google_color_url = "000000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

Save that template and you’re done!

Screenshot:
Adsense Above New Post Button



Please read our comments policy before acting on this post.