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

  #46  
Old 07 Jan 2010, 17:39
s-p0k's Avatar
s-p0k s-p0k is offline
 
Join Date: Jun 2009
Originally Posted by goranbaxy View Post
If anyone use some custom code and want to share it let me know and I'll include it in first post.
I would like to know my self. Cna't find no code for ad..I would like to put some ad in my Sidebar Column
Reply With Quote
  #47  
Old 10 Sep 2010, 03:04
atcspaul atcspaul is offline
 
Join Date: Feb 2008
is their a way to have the ad show after 1st and 5th post on every page for everyone? i am not to good with a computer. thank you

Last edited by atcspaul; 10 Sep 2010 at 03:16.
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 08:11.

Layout Options | Width: Wide Color: