Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
A perfectly centered Adsense banner below the navbar that is loaded AFTER other ADs Details »
A perfectly centered Adsense banner below the navbar that is loaded AFTER other ADs
Mod Version: 1.00, by StarBuG (Designer) StarBuG is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

vB Version: 4.0.2 Rating: (3 votes - 5.00 average) Installs: 12
Released: 30 Mar 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

Hello everyone.

I had the following problem:
I want to show a leaderboard banner below the navigation centered.
My leaderboard was clicked only half as often as the banners I showed in the thread as 2nd post.
So I wanted to load my leaderboard banner AFTER the 2nd post banners so that they get the highest paying keywords.

I found a complex but perfect solution for this:

The settings for my forum:
vBulletin 4.0.2
Fixed width for the forum and the forum is centered.
The banner position is exactly 253px from the top.

In Template ad_global_below_navbar add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Click Save

The ads_navbar_container creates an empty "box" that spans from left to right and has a hight of 100px.
This is the background box on which I will display the adsense banner.

In Template ad_footer_end add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Click Save

This is the actual Adsense Leaderboard.
It is wraped inside a container (ads_navbar_container_2) that is positioned from the top to fit inside the box we created before (in this case 253px from the top).

After that we define the AD in ads_navbar and center it within the previous container.
If you use other banner formats change the width to fit the banner width.

In Template additional.css add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change the colors of the background box to colors that fit your theme.
Adjust the top position to fit your layout.
Change the banner width and box height if you use other formats then a leaderboard.

Click Save

E voila, a perfectly centered banner that is loaded last (displays the lowest paying keywords).

If you want to load it in between 2 other ads, simply search for an ad template that is loaded after the first and before the second and put the ad code there instead of the footer ad template.

In my case I only did this "trick" for banners that are shown to guests which are viewing a thread.
That is done via conditionals.

Instead of the above add the following to your ad_global_below_navbar template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In Template ad_footer_end add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Click Save

In Template additional.css add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Best regards

StarBuG



Google isn't paying you enough money! Discover WHY!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screen_adsense.jpg
Views:	1501
Size:	85.1 KB
ID:	115053  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) The M.I.P. vBulletin 3.5 Add-ons 600 25 Apr 2012 09:45

Comments
  #2  
Old 30 Mar 2010, 15:52
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Demo?
__________________
My Forum
Reply With Quote
  #3  
Old 30 Mar 2010, 17:09
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Currently only on my vB construction Forum so no public access.

But besides that you simply see a leaderboard banner below the
navigation that is always centered there is nothing more there to see
Reply With Quote
  #4  
Old 31 Mar 2010, 05:54
tafreeh's Avatar
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Real name: DON
What about a screenshot then
__________________
Vb Forum
Reply With Quote
  #5  
Old 31 Mar 2010, 08:46
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
A screenshot from an Adsense Banner?

Ok, added to the first post.
Reply With Quote
  #6  
Old 31 Mar 2010, 15:38
sKippah sKippah is offline
 
Join Date: Oct 2008
Could u add a refresh timer. That it refresh itself?
Reply With Quote
  #7  
Old 31 Mar 2010, 21:59
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
That is against Google Adsense TOS
Reply With Quote
  #8  
Old 01 Apr 2010, 11:06
reteep reteep is offline
 
Join Date: Mar 2004
I just checked your forum, did you use a plugin for the AdSense Banners between the posts? Furthermore I believe adding those images besides the AdSense Banners is against the TOS, too. Please correct me if I'm wrong.

Cheers,
Andreas
Reply With Quote
  #9  
Old 01 Apr 2010, 11:29
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
The modification I posted here is for the leaderboard below the navigation.
It loads after the 2 rectangle banners in the 2nd post.
Yes I use it on Patientenfragen.net too.

I currently have an inquiry for the image placements.
Did not get an answer from google yet though.
So I can't really tell

StarBuG

Last edited by StarBuG; 14 Apr 2010 at 08:34.
Reply With Quote
  #10  
Old 02 Apr 2010, 13:47
woffie's Avatar
woffie woffie is offline
 
Join Date: Jan 2009
Real name: Jim
Why use this when it is built into the software?
Reply With Quote
  #11  
Old 02 Apr 2010, 17:27
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Because it is not build into the software
Reply With Quote
  #12  
Old 13 Apr 2010, 23:49
dankreiner dankreiner is offline
 
Join Date: Jun 2009
this trick works! your other mod did not on 4.0.3
Reply With Quote
  #13  
Old 14 Apr 2010, 08:32
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
which other mod?

If it was released for vB4 it works on vB4 because I write all my Mods for my Forum and they are all implemented.
But if you use different settings then I describe at the beginning of the mod then you maybe need to alter the code.
Reply With Quote
  #14  
Old 02 May 2010, 20:27
dankreiner dankreiner is offline
 
Join Date: Jun 2009
i am having a problem... this mod does not work correctly on my arcade or my classifieds page (both mods).

The ads all show at the bottom of the page... Is there any way you could please fix this for me??? It is such a big deal and nobody else knows what i am talking about.
Reply With Quote
  #15  
Old 05 May 2010, 17:10
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
I don't use these mods so sorry, can't fix it.

But modifing it shouldn't be that hard.
You maybe need to create different containers like in the ad_global_below_navbar and maybe copy, modify and rename the css settings

By the way, do you really need to switch the display order of your ads on these pages?
If not simply implement the banner as you did before.

This mod is NOT a mod to display a leaderboard below the navbar.
The main purpose is to switch the loading order of different ads!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:14.

Layout Options | Width: Wide Color: