vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=107965 |
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:
Upload this file to your web server. (http://www.yourwebsite.com/collapsible_ad.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:
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. http://www.vbulletin.org/forum/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:
http://www.vbulletin.org/forum/showp...30&postcount=7 Results: https://www.vbulletin.org/forum/ 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.
|
Interesting guide on placement of Adsense ads, very useful. Might even use a few of the locations you suggested :) Thanks
|
XD i was trying to click "install" button, very useful, not only for vB pages.
thanks |
Damn, that forum is way too annoying. Sorry, not trying to be an ass....just too busy...too much stuff moving around.
|
Quote:
|
|
Can someone post results with this please?
Thank you! |
Quote:
Same here, it happens when trying to edit the templates. Vbulletin warns you of the error and let you choose to go back or continue anyways. I tried in 2 forums with 3.5.4 With both FORUMDISPLAY and POSTBIT |
Quote:
BTW, I've upgraded my forum to vb 3.6 Beta 3 and it seems this guide doesn't need to be updated. Regards |
Quote:
I'm getting the error by just pasting the initial part of the code. Just by pasting this in the FORUMDISPLAY:
|
*edit*
It seems ok... Can you try editing your templates via another browser? |
Excellent little tutorial, cheers. :)
Also, here's a little tip in case you only want to display it for guests, not members. Simply put the codes (as instructed in the first posts) between these tags: <if condition="!$bbuserinfo[userid]"> *code* </if> |
thank you NeutralizeR
|
this looks amazing can anyone say that their adsense revenue went up x% after doing this?
|
yes, I can say it did.
I didn't use this exactly though. I still use a leaderboard below the navbar in showthread and above quick reply. I am doing this in place of the DAI tutorial section that places adsense directly inside a members post. I didn't feel comfortable with that portion of the tutorial. (just my personal preference, not knocking it in any way) |
sorry to bump topic like this but the guide mentioned for first and last post ads does not work well with vbulletin 3.6
it shows ads in first 3 posts in the thread.... |
Quote:
Quote:
Quote:
|
That was QUICK!!!
The first condition worked....
Thanks Deep |
OKay I am back, try the 2nd condition if you have AJAX Quick reply enabled...
if you try first then it shows blank page once you reply usuing quick reply option... |
WOW! absolutely amazing - i got this to work! a deep feelgood moment taking place :) thankyou.
and thank for this too martin64: Quote:
|
Great tutorial!
I will use some of the info, but no matter how much money NeutralizeR is making off his forum, nothing will convince me to make my members suffer like that. Sorry man, the site is plain shocking. I care about my members far too much to make them go through an epileptic-fit-inducing experience like your site. My browser struggled to scroll down! Anyway, at least you've given us lots of examples to check out, very much appreciated! :D |
Quote:
Yes, i don't know who visits and registers my web site but they are really insistent on that :P Google likes me... |
greatly thanks
|
Nice work, seems great.
|
Really [for 1000] great tutorial. Really [for others 1000] thanks!
|
And your members doesn't even notice your ads anymore?
Then change the ad colors while keeping the default colors for the visitors. Quote:
Quote:
Quote:
Members will see them in four rotating color combinations. Test Account @ My forum: Username: Tester Password: asd123 http://www.msxlabs.org/forum/ |
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.
|
Quote:
There's another thread that tells how to do that. Look on my site at http://www.RealityTVFriends.com/forum and you'll see how it works. |
Quote:
|
Quote:
(First post and last shown post) Find: Quote:
Quote:
http://www.vbulletin.org/forum/showp...30&postcount=7 |
Quote:
|
Quote:
maybe try this: http://www.vbulletin.org/forum/showt...ghlight=banner |
anyway any of this can be converted into 3.6.0?
|
Quote:
|
I tried it, it expands my forums badly. Any way around this.
|
Quote:
Please paste the code here... |
very nice tutorial. Thanks.
|
how can I put adsense before the First post of every thread . 3.5.4
I mean ads before the first post ( and not after) .. thanks |
Quote:
Find: Quote:
Quote:
Your PM request: http://img509.imageshack.us/img509/3324/ggggmg8.jpg :) |
thanks man i will try it
|
Ok, next easy question. Where in showthread template to add adsense directly after last post, attached to it, similar to the first post. I assume you would need a conditional to show this?
|
Quote:
Find: Quote:
Quote:
|
Quote:
How do I combine these condtionals?
|
Quote:
You need this conditional: Quote:
|
2 Attachment(s)
Quote:
|
Quote:
|
I think it should work that way, too.
Quote:
Quote:
|
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.
|
Quote:
All edits should be ok with vBulletin 3.6 series. |
Quote:
|
do we have any for yahoo publisher?
|
Quote:
|
thank you... :)
|
How to implement adsense in the same style as in forumshow template but for forumhome?
|
Quote:
|
ok so i integrated this in my forum www.ps3center.net/forums .. but I tweaked it a little .. I added the logo`s around it etc. Do you guys think this is against Google`s TOS ? What would you guys do? Keep it or take it off .. I dont wanna get banned from Adsense ...
|
How would I make it viewable by certain usergroups only? Thanks
|
This not real clear, to me anyways. I want to put my ads in between the posts in a thread. So instead of the ads being at the top of the site pages as it is now. Take them from there have them show in the threads. When some one opens a thread and they cruz thru the posts, there would be my ads in them, between the posts.
On my site, the posts are in sep boxes with a space between them. Anyway to code the Google ads to fit in between them, another box, that flows with the posts? |
Quote:
I want to integrate adsense 236x60 half banner into the forum list on forumhome page.... EXAMPLE:
|
this is great
|
google banned my website cuz I used this ..wudnt recommend this for google ..but other ad networks are fine i guess ...great hack meanwhile :)
|
All times are GMT. The time now is 15:23. |
Powered by vBulletin® Version 3.8.14
Copyright © 2023, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.