Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Google AdSense (or other) after post... Details »
Google AdSense (or other) after post...
Mod Version: 1.00, by goranbaxy (Member) goranbaxy is offline
Developer Last Online: Apr 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (4 votes - 5.00 average) Installs: 58
Released: 29 Jan 2008 Last Update: Never Downloads: 17
Not Supported Template Edits Re-usable Code Translations  

I found this cod on vublletin.org and did some customization, I found this very useful and good place for ads.

Show a banner/ad after first (or somewhere else) post, show it to guests | register users | users with less then X posts...

This is what I have:
- It will show ad/banner after first post on every page (instead of just the first page) but only to guests.


Admin CP -> Styles & Templates -> Style Manager -> -> Postbit Templates ->
Edit postbit or postbit_legacy (depending on which layout you are using)

Find:

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

After ad:


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

Here is how it will look like: demo ads

Here are several other conditions you can use in the above code to show the banner in different places. Simply replace the first "if" statement.

...after the first post on every page (instead of just the first page):

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

...after the first post, but only for guests:

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

...after the first post, but only if the thread has at least 2 replies (so you never see a banner and only 1 post):

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

...after the first post, but only in specific forums (where X,Y,Z is a comma list of forumids):

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

...after every X posts (replace X with a number):

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

...after the last post on every page:

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

...between the last and second to last post on every page (need to move the above code to the very top of the template instead of the bottom, then use the same condition as above):
<if condition="$post['islastshown']">
You can use pieces of these conditions to do different combinations. For example, this condition will show the banner after the first post on every page (instead of just the first page), but only for guests, and only in certain forums (where X,Y,Z is a comma list of forumids):

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

Please click to "Mark as Installed"

Download Now

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

Screenshots

Click image for larger version

Name:	web.jpg
Views:	1384
Size:	50.2 KB
ID:	75187  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • 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 Google Adsense / Adbrite Ads Based on Length of First Post Neutral Singh vBulletin 3.6 Add-ons 38 08 Aug 2007 17:41

Comments
  #2  
Old 29 Jan 2008, 19:35
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
Nice one! Thank you.
__________________
Reply With Quote
  #3  
Old 29 Jan 2008, 19:38
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
If anyone use some custom code and want to share it let me know and I'll include it in first post.
Reply With Quote
  #4  
Old 29 Jan 2008, 20:45
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Real name: Jarvis
how is this different then the other 8 billion ones already out there?
__________________
vBulletin Services and vBulletin Hosting
Reply With Quote
  #5  
Old 29 Jan 2008, 20:50
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
I don't know, this is something I was looking for and didn't found so I add it here, if there is thread same as this one, feel free to delete it (anyone who can)
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #6  
Old 30 Jan 2008, 00:36
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
Does vBAd management have something like this... doesn't it?
__________________
. █│║▌│█│║▌║│█║▌│║║█║
Reply With Quote
  #7  
Old 30 Jan 2008, 05:53
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
VBAd doesn't work for me, so I'm editing my templates for inserting ads
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #8  
Old 30 Jan 2008, 11:36
Forumdayim.Net's Avatar
Forumdayim.Net Forumdayim.Net is offline
 
Join Date: Mar 2006
Can you add a screenshot ?
Reply With Quote
  #9  
Old 30 Jan 2008, 11:50
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
added! (it's only visible to guests).
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #10  
Old 31 Jan 2008, 13:07
usearchme usearchme is offline
 
Join Date: Jul 2006
added very handy tips
__________________
worldofchat.co.uk
http://www.usearchme.com usearchme.com
wocchat.com
Reply With Quote
  #11  
Old 31 Jan 2008, 13:27
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
If you are displaying ads only to guests you can replace this code:


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

with this one:

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

Red part of cod should be replaced with link to a topic where you can explain that if some one register he will see "ads free" forum!
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #12  
Old 01 Feb 2008, 06:36
piloto-43 piloto-43 is offline
 
Join Date: Sep 2007
Real name: jAV
thanks..

installed.
Reply With Quote
  #13  
Old 01 Feb 2008, 15:09
Prince Prince is offline
 
Join Date: Oct 2001
very nice, thanks.
__________________
www.ironmagazineforums.com
Reply With Quote
  #14  
Old 05 Feb 2008, 01:28
Soonerdude Soonerdude is offline
 
Join Date: Mar 2007
How would you make it visible only to certain usergroups?

I'd like to make it not visible to admins, mods, and donors.
Reply With Quote
  #15  
Old 05 Feb 2008, 06:13
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
You can try this:

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

Where X, Y and Z are the IDs of admin, mods and donors.
Try it and let me know did it work.
__________________
Portal - Dojaja | Forum | Igre | Horoskop
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 14:36.

Layout Options | Width: Wide Color: