The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBulletin Google Adsense Deep Integration Tutorial
This tutorial is written to show you how to use your Google Adsense codes efficiently in your vBulletin (3.5+) templates. I have a very heavily modified vBulletin style but i used the original style for this tutorial to be simple and match the colors. You can change everything as you want to find the most fitting results for your vBulletin. Alternate ads-PSAs to Collapsible ads: Quote:
Create a HTML file with this code and save it as collapsible_ad.html: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" type="text/javascript"></script> </head> <body style="background-color: transparent;"> </body> </html> Go to your Google Adsense account and grap your google_ad_client and google_ad_channel codes. (google_ad_channel is optional) Open Notepad and paste these codes as you will change them with youradsensecode and yourchannelcode on the following steps. We will use these there ad layouts in this tutorial: 728 x 90 Leaderboard 468 x 60 Banner 234 x 60 Half Banner ...and one link unit: 468 x 15 Note: navbar template editing step is optional because it may be against the Google Adsense rules for you. If you edit navbar template, almost all of your vBulletin pages will have Adsense ads at the top of the pages. My navbar and header templates include some flash, gif and text content and i update them regularly. It's why i use Adsense ads in navbar. You may apply this step (the ad unit) manually to your FORUMHOME, FORUMDISPLAY, etc templates... Open your navbar template: vBulletin AdminCP > Styles & Templates > Edit Templates > Navigation / Breadcrumb Templates > navbar (for the link unit) Find: Quote:
Quote:
(for the ad unit) Find: Quote:
Quote:
Save. Open your FORUMDISPLAY template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Display Templates > FORUMDISPLAY (First thread) Find: Quote:
Quote:
(Last thread) Find: Quote:
Quote:
Save. https://vborg.vbsupport.ru/showthread.php?t=102466 Open your search_results template: vBulletin AdminCP > Styles & Templates > Edit Templates > Search Templates > search_results (First result) Find: Quote:
Quote:
(Last result) Find: Quote:
Quote:
Save. Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy) (First post and last shown post) Find: Quote:
Quote:
https://vborg.vbsupport.ru/showpost....30&postcount=7 Results: vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR @ www.MsXLabs.org |
#152
|
|||
|
|||
Quote:
Quote:
|
#153
|
||||
|
||||
Nice locations = Thanx for sharing.
Jacquii. |
#154
|
||||
|
||||
very nice step by step article..
also i'd appreciate if u explain some basic terminologies surrounding google adsense, and a basic screenshot pointing out different names and locations all at once.. however, its commendable article. thanks --------------- Added [DATE]1220509859[/DATE] at [TIME]1220509859[/TIME] --------------- Hi, i had added all types of ad units explained in the article yesterday, and they were showing fine. Today when i see i dont see a single ad. Also i tried to add a tower ad at one more place on my forum home page here at www.officechai.com/forum .. but i dont see at all. The ad [AdSense unit: Sponsor Lance120x240, towerHome] is active in google adsense .. I also went through all the trouble shooting steps, but to no avail. where could I've gone wrong here is the adcode: <td class="alt5" align="left"> <span class="smallfont"> <a href="http://www.nasscom.in/" target="_blank">Nasscom</a> <br /> <a href="http://www.intellibuzz.net/" target="_blank">Intellibuzz Communications</a> <br /> <script type="text/javascript"><!-- google_ad_client = "pub-nnnnnnnnnn"; /* Sponsor Lance120x240, towerHome */ google_ad_slot = "nnnnnn"; google_ad_width = 120; google_ad_height = 240; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <a href="http://www.forumregistry.com/registry" id="R4ED683">Forum Directory</a> </span> |
#155
|
||||
|
||||
Quote:
there's not one instance of "$show['signature']"> --------------- Added [DATE]1221412863[/DATE] at [TIME]1221412863[/TIME] --------------- I've got this one figured out.. thanks |
#156
|
|||
|
|||
Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.
As you can see in the screenshot above, the unit is below the navibar but I want it to be moved down into the next box, which is currently empty. Any idea what part of code the box is in? Thanks for any help |
#157
|
|||
|
|||
Is this still OK to use? It's a couple of years old, has anything changed?
|
#158
|
|||
|
|||
I think it's still good enough to start with.
|
#159
|
|||
|
|||
Quote:
Anybody able to help? |
#160
|
|||
|
|||
If you followed this guide it must be the container table of the 728x90 ad unit.
Move the 468x15 link unit's code to there. |
#161
|
|||
|
|||
Thanks NeutralizeR.
I've moved some code, and now the link unit has gone (which is good), but there is now just an empty space (about 728x90 in size) but no advert is displayed. When I go to my URL/collapsible-ad-unit.html it loads the page but doesn't display an advert. Could this be why it also doesn't display an advert on the forum? Thanks for any help again |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|