Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Adsense as second post. 2 Sizes - Big for guests, small for members - Legacy Version Details »
Adsense as second post. 2 Sizes - Big for guests, small for members - Legacy Version
Mod Version: 1.15, by StarBuG (Designer) StarBuG is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (6 votes - 4.67 average) Installs: 83
Released: 11 Feb 2007 Last Update: 22 Jul 2007 Downloads: 342
Not Supported Template Edits  

Hi

I made this template mod for my medical Forum and I decided to share this with you

This hack is for forums that use the Postbit_legacy Template

If you use the standard postbit template >> click here <<


What this hack does:
This modification displays adsense as second post in every thread.
Guest see a post like adsense with a product Referral (firefox in this code) and a leaderboard as post content. Registered Members see a standard banner so they don't get annoyed by the big advertising. I also included an information for guests, that they see a different not so disturbing ad if they register. This serves to purposes, one is to get more members to register of course the second purpose is to blend the advertising better into the post layout.

ADD-ON:
In addition you can add a Google Adsense link unit as last post of a thread on any page for members and guests. This advertising will only show if the thread has more then one post so that it does not show 2 advertisings directly below each other in case that the thread has no replies yet. Google Adsense has updated its ToS so that you are now allowed to use up to three link units on one page. So if you already use my "Adsense Link Unit in Navbar" Mod there woun't be a problem.


See screenshots

How to install:


In template postbit (legacy version) search:



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

Add below:



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

ADD-ON:


Add this code below the last line of my above code:



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

You now just need to customize the adsense code marked with:
<!-- Adsense Referal Code start -->
<!-- Adsense large rectangle start -->
<!-- Adsense standard banner start -->


Add-on:
<!-- Adsense Link Unit start -->

replace "YOUR PUB ID HERE" with your pub-ID
and fit the colors of adsense to your color scheme


Demo: Elternfragen.net - Das Forum fŁr Eltern mit (medizinischen) Fragen

Just go into any thread.


I hope you like it and if you do, don't forget to mark es installed


Changelog:
v1.15 - 2007/07/22: NO CHANGES, just removed my Pub-ID from the hack!
v1.15 - 2007/06/11: Add-on - Google Adsense Link unit as last post of every thread for guests and members.
v1.1 - 2007/05/06: Condition altered to show advertising as second post on every page, not just the first.
v1.0 - 2007/03/01: Changed a few German phrases to English, removed an unneccessary condition


If you want more good placements for adsense code, check out my newest mod:


Adsense Link Unit in Navbar


StarBuG

If you did not register for an Adsense account yet but you plan to, feel free to contact me. If you register via my referral I am willing to help you get the most out of your adsense placement by assisting you during the setup process and implementing the best adsense modifications. Just write me a Private message.

Download Now

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

Screenshots

Click image for larger version

Name:	2nd_post_guests.jpg
Views:	1795
Size:	20.0 KB
ID:	60379   Click image for larger version

Name:	2nd_post_members.jpg
Views:	1456
Size:	20.6 KB
ID:	60380   Click image for larger version

Name:	last_post_linkunit.jpg
Views:	862
Size:	19.6 KB
ID:	65507  

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
Show Thread Enhancements Adsense as second post. 2 Sizes - Big for guests, small for members StarBuG vBulletin 3.6 Template Modifications 86 20 Aug 2011 01:29
Adsense, different sizes for visitors to members MadKad vBulletin 3.6 Template Modifications 25 16 Jul 2008 21:20
Mini Mods . BigJimTheLug Modification Graveyard 16 21 Sep 2007 05:40
Adsense, different sizes for visitors to members Ė under last post MadKad vBulletin 3.5 Template Modifications 55 23 Apr 2007 11:26

Comments
  #2  
Old 11 Feb 2007, 18:36
insolentmuse's Avatar
insolentmuse insolentmuse is offline
 
Join Date: Feb 2007
Thank you so much
Reply With Quote
  #3  
Old 12 Feb 2007, 07:45
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
You'r welcome
Reply With Quote
  #4  
Old 12 Feb 2007, 08:50
insolentmuse's Avatar
insolentmuse insolentmuse is offline
 
Join Date: Feb 2007
Works like a charm, btw.
Reply With Quote
  #5  
Old 01 Mar 2007, 00:55
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Originally Posted by mini2 View Post
Sort of installed, modified it a little and made it not show for members at all.

Thanks for the idea.
Me too, and changed the language to English, and changed the register link to a user I created to I can track registration through the link. Thanks!
Reply With Quote
  #6  
Old 01 Mar 2007, 05:50
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Oh, I missed a few german phrases, I have fixed that now.

StarBuG
Reply With Quote
  #7  
Old 07 Mar 2007, 17:56
TheFrienzNet's Avatar
TheFrienzNet TheFrienzNet is offline
 
Join Date: Jan 2007
Mm, whenever I install it, the style gets messed up and the ads goes where the second username is. (Screen)
__________________
Make love not war, condoms are cheaper than guns.
Reply With Quote
  #8  
Old 08 Mar 2007, 05:41
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Do you use the legacy version of the postbit template?

Did you add the code below the above mentioned code?
Reply With Quote
  #9  
Old 08 Mar 2007, 22:17
jmw jmw is offline
 
Join Date: Jan 2005
Ok, showing fine. Gotta change the username "Heute". I assume I can do that by editing this user in vbcp right?
__________________
Bertha you know what?? ENOUGH!!!! GIT BACK IN THE DAMN TRAILER AND GIT US BOYS MORE BEER WOMAN!

Last edited by jmw; 08 Mar 2007 at 23:19.
Reply With Quote
  #10  
Old 14 Mar 2007, 17:06
Volvoholic Volvoholic is offline
 
Join Date: Mar 2007
Hi,

Works great. I am new to Vbulletin and I did it without any hitches. Very easy to understand. However, I have three points to make.

1. I use a sub-style and it only worked if I modified the parent style's Postbit template. Is this correct? Did not work (nothing happens) when I only modified the sub style.

2. Does the google adsense code generate ads based on the thread content? Does this mean different threads will have different ads? If not how do I configure the ads to be based on the thread content.

3. Where and what do I look for if I want to change the type of users who see the firefox ads? My forum threads are not viewable to guests (for privacy) and they have to register to view threads (in the general areas only), full members have to email me and I join them in a usergroup for full access. How do I enable only registered members & guests to view the firefox ads?

Thanks. Keep up the great work and I for one really appreciate it. like I said before, works great.

V
Reply With Quote
  #11  
Old 15 Mar 2007, 18:01
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
@jmw: heute means "Today" and you don't need to create a user for this hack. I simply missed to translate the german phrase (it's fixed now )

@Volvoholic:
1) no it should work in the child style if you changed it in that postbit. Did you switch your forum view to that specific style?

2) yes. Google adsense is content based and it will show different ads for different threads.
read google help or visit webmaster communities like www.theadminzone.com or www.digitalpoint.com for more infos and tips about adsense

3) that is generaly a bad idea because google is a guest too. If you block guest views google can't index your forum (you lose new visitors) and can't deliver targeted ads (you lose money).

replace the condition at the beginning of my code with:

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

and the X in $bbuserinfo['usergroupid'] == 'X' with the ID of the usergroup you want to see the ad
Reply With Quote
  #12  
Old 15 Mar 2007, 22:51
Volvoholic Volvoholic is offline
 
Join Date: Mar 2007
StarBug

thanks, i was not getting google targeted ads because my forum view is closed for guests. Thanks for that info.

Cheers
V
Reply With Quote
  #13  
Old 26 Mar 2007, 10:23
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Real name: Atakan KO«
Thanks........
__________________
vBulletin 5 : http://www.atabb.com/
Reply With Quote
  #14  
Old 26 Mar 2007, 11:38
AzaDiyaR AzaDiyaR is offline
 
Join Date: Oct 2006
nice thank you so much
Reply With Quote
  #15  
Old 02 Apr 2007, 23:06
Lars-Christian Lars-Christian is offline
 
Join Date: Feb 2005
Real name: Lars-Christian
I don't know if this is because I have some other modifications installed, but this breaks the multiquote feature on my boards for the posts below the AdSense ad. Can anyone else with it installed check to see if it's just on my board?

Edit: Nevermind. I managed to fix it - It had something to do with my postbit_wrapper template being screwed, but I figured it out

Last edited by Lars-Christian; 02 Apr 2007 at 23:35.
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 22:36.

Layout Options | Width: Wide Color: