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 |
#142
|
||||
|
||||
i've implemented this!! but there are 3 errors...
please check this link : http://validator.w3.org/check?uri=ht...Inline&group=0 how do i fix those 3 errors??? |
#143
|
||||
|
||||
I have 1 question,
when we place ads in navbar i.e. : this unit is displayed only when user is logged in.... please can you tell me, what if i want to display this unit for guests too?? where do i place the code and is there any code modifications??? please help.. i'm not a pro coder... |
#144
|
|||
|
|||
Fantastic tutorial. bookmarked it. Will read it soon.
Thanks. |
#145
|
|||
|
|||
One of the best Tutorials ive seen in a while.
Cheers =] |
#146
|
||||
|
||||
wow.. thanks!
|
#147
|
|||
|
|||
Added this code to my forum and it seems good but I have one problem.
My link unit is at the top of the forum but below this there is an empty strip. I'm not sure if this was there before I made the changes to the forum, and was wondering if that is where I am meant to be displaying the Ad Unit? Have attached a screenshot below. Thanks for any help. |
#148
|
|||
|
|||
It's the first ad unit (728 x 90). Check your navbar edits again. You should know that Google has changed the ad codes incase you are using the ones in this tutorial. If you have just put the ads in your pages, wait a couple of days for the adsense bot to crawl your pages.
|
#149
|
|||
|
|||
Thanks NeutralizeR.
I realised that Google had changed their ad codes, but I was a bit confused. Firstly I used the new adsense codes, and then I realised that I had missed out the line of code mentioning the collapsible ad unit html page, so then I went and changed all my adverts over to the style of the ones in the article. Should I just use the newer adsense codes? Also would I simply link to the collapsible ad unit.html file from within adsense, where they ask me about showing alternative adverts instead of PSA ones? Thanks for any help |
#150
|
|||
|
|||
Quote:
|
#151
|
|||
|
|||
Oh okay, thanks again NeutralizeR.
Can I just ask, what does the collapsible ad unit do? What does it show? Thanks again |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|