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" 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:
http://img234.imageshack.us/img234/9625/snap17ub.gif http://img234.imageshack.us/img234/2651/snap21my.gif (for the ad unit) Find: Quote:
Quote:
http://img426.imageshack.us/img426/4695/snap36cz.gif http://img153.imageshack.us/img153/7584/snap43oi5wb.gif 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:
http://img383.imageshack.us/img383/6998/snap58lv.gif http://img109.imageshack.us/img109/7800/snap68am.gif 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:
http://img302.imageshack.us/img302/9012/snap98ab.th.gif http://img302.imageshack.us/img302/1894/snap104dt.gif 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: https://vborg.vbsupport.ru/ http://img441.imageshack.us/img441/8657/snap87bw.th.gif vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR @ www.MsXLabs.org |
Wow thanks man, this is a great tutorial! :D
|
wow, thats an awesome tutorial, thanks so much!!
|
Very nice thnx i wish there is install button :)
|
i no google is used by most forums, as there to little, but could you make a guide for targetpoint please?
|
I wasn't 100% that you could make a post part of Googles ad. I thought someone got in trouble for that being it looks like original content.
This is one heck of a tutorial though! |
Quote:
Quote:
Open your FORUMHOME template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME Find: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Simply amazing. Thank you so much. :)
I personally use Yahoo Publisher, but I'm sure I can still implement everything the same. |
Some More...
Open your FORUMHOME template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME Find: Quote:
Quote:
Open your MEMBERINFO template: vBulletin AdminCP > Styles & Templates > Edit Templates > Member Info Templates > MEMBERINFO Find: Quote:
Quote:
If you have vBadvanced installed: Open your adv_portal template: vBulletin AdminCP > Styles & Templates > Edit Templates > vBadvanced CMPS Templates > adv_portal Find: Quote:
Quote:
|
Who wants to make this into a plug-in? :D
|
Quote:
I don't have enough time to do it... maybe somebody around can make it for you. Regards |
pointsless to make a plugin to my knoladge...since a plugin doesn't do template mods...
I guess...it could be some sort of plugin...but template mods would have to be made still. |
I'm so sorry, but my English is too bad, i must speak own language....
NeutralizeR, Bi iki sorum olacak sana, cevap verirsen çok memnun kalırım. ilk başta yaptığın html dosyası ne için? O dosyanın amacı nedir? Bir de google aynı sayfada 2 reklama izin vermiyor bildiğim kadarıyla, yani header'a bir reklam koyunca aynı anda showthread'de de reklam varsa ikisinden biri gozukmuyor. Bunu nasıl aşarız? Yoksa o dosyanın amacı o mu? Şimdiden teşekkür ederim... Ayrıca siteni çok beğeniyorum, şu kısır zamanda en iyi rap parçaları sizden temin edebiliyorum. Bunun içinde teşekkürler.. |
Quote:
Saygılar P.S. the questions were about collapsible ads and the ad units |
thank you NeutralizeR
|
thanks...:)
|
Hi
I seem to be having trouble with the FORUMDISPLAY integration - the code seems to be working as there is a correct layout at the top of the forum, but the google adsense banner does not show. |
Quote:
|
Remember however if you have multiple areas for which you are showing adsense on one page, but google doesn't have enough ads to fill all the spots based on your content, then that area will be blank. Give Google a little time to optimize it's ads for your content, then the ads will most likely show unless your forum content is so obscure that there are not many advertisers in that area.
|
Ah thanks Mark, I realised it was because I already had a landscape banner at the top. Removing it allowed the FORUMDISPLAY banner to work. :)
|
i can make as much of it into a plugin as possible if you guys want :)
|
Very useful info here, thanks for the tutorial!
|
great information - thanks for sharing this NeutralizeR...
I have tried out most of the ideas, and have settled on using the forumdisplay ads and the two for search results forumdisplay is working great, but for some reason search results just comes back with collapsible ads all the time - I cut and pasted the code exactly, so can't figure out what isn't working |
Quote:
Quote:
|
everything works fine except the postbitlegacy part i inserted the code but itz not displaying?
|
Excellent post NeutralizeR
I have a small problem though.... For some reason no matter what I try, only one add will display on any page.. If I add a second one anywhere it will not appear.. Any idea what that might be? EDIT: nevermind I just now saw your explaination above... Sorry I missed it before I will wait to see if they will populate later on Thanks for the great work with this |
Excellent article, thanks alot!
|
If you allow search engines to spider the single versions of your posts (This post, for example... showpost.php), you may want to use adsense ads on this template, too. I think you don't want to miss any possible renevue...
Open your SHOWTHREAD_SHOWPOST template: vBulletin AdminCP > Styles & Templates > Edit Templates > Show Thread Templates > SHOWTHREAD_SHOWPOST Find: Quote:
Quote:
You can also add this code after $postbits if you want a second ad unit. |
Quote:
I really want a plugin! Is it fare away? Marius |
Is there a way to place the ads randomly within the ForumDisplay as opposed to the first and last post?
similar to this: http://www.aywe.com/news-announcements/ |
Google Adsense Products All in One @ navbar with rotating highlight images on the left side of the ads: http://www.msxlabs.org/forum/
Try switching between pages or refresh... I can post about it if you like. |
How can I make my search button only be my google search and remove the vbulletin search? Right now I have the header dropdown for search showing vbulletin search and below that is my google search.
|
Hi
I am unable to do required modification as am getting parse error on account of php. Following msg is coming " Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41 what to do |
Is Anybody Out There
|
Quote:
|
I tried to edit FORUMDISPLAY template and post coes to get google ad on forum display pages but got this error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41 Is my VB got corrupt |
Quote:
Turn off the product-plugin system... Try disabling plugins one by one and re-enable them to figure out which one causes this error... I've rechecked the codes in my messages and they seem to be ok. |
Quote:
|
Quote:
|
Excellent post, thank you very much for sharing. I'll post results later.
|
All times are GMT. The time now is 09:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|