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

  #31  
Old 31 May 2008, 10:35
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
Just don't put any condition
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #32  
Old 31 May 2008, 11:08
Suicide BULLET Suicide BULLET is offline
 
Join Date: Sep 2007
thanks man .. *installed*
Reply With Quote
  #33  
Old 31 May 2008, 12:48
Suicide BULLET Suicide BULLET is offline
 
Join Date: Sep 2007
sorry .. but after i removed the codition the ads appeared after every post
i want it to be visible to all groups
and after the 1st post only
Reply With Quote
  #34  
Old 04 Jun 2008, 18:33
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Does it work for 3.7 ?
Reply With Quote
  #35  
Old 18 Jun 2008, 00:47
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Working for me on 3.7.1 P1
Reply With Quote
  #36  
Old 18 Jun 2008, 06:27
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
Originally Posted by Suicide BULLET View Post
sorry .. but after i removed the codition the ads appeared after every post
i want it to be visible to all groups
and after the 1st post only
Sorry, try this one:



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

__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #37  
Old 18 Jun 2008, 11:30
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
I originally had it on the 1st page of every thread (between first and second post), but I changed it to every page because it just wasn't enough exposure for the 'long' threads. Most people jumped to the last page and missed the ad. Just a tip
Reply With Quote
  #38  
Old 25 Jul 2008, 19:18
ehsanix ehsanix is offline
 
Join Date: Oct 2003
thanks installed but has problem with quich reply issue for me
it redirects poster to advertises included after last posts
Reply With Quote
  #39  
Old 25 Jul 2008, 19:29
ehsanix ehsanix is offline
 
Join Date: Oct 2003
AFTER A LITTLE SEARCH I FOUND THIS :

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

Reply With Quote
  #40  
Old 26 Jul 2008, 13:03
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
where di you put that code?
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #41  
Old 28 Jul 2008, 19:57
ehsanix ehsanix is offline
 
Join Date: Oct 2003
it's just same as mentioned above
i just used this one :

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

instead of this :


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

to fix quick reply issue
Reply With Quote
  #42  
Old 03 Oct 2008, 16:46
LeMans350z LeMans350z is offline
 
Join Date: Dec 2002
I am trying to add a banner ad before the first unread post. I have done this in the past; however I have spent the last two hours searching for the code I used with no luck.

Does anyone know how to modify the conditional to display the ad before the first unread post?

Thanks in advance for any help.
__________________
LeMans350z
Reply With Quote
  #43  
Old 06 Jan 2010, 00:31
Bansheebob Bansheebob is offline
 
Join Date: Apr 2009
Ive tried this on 3.6.8 and keep getting errors?
Reply With Quote
  #44  
Old 06 Jan 2010, 06:02
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
Bansheebob post the error here
__________________
Portal - Dojaja | Forum | Igre | Horoskop
Reply With Quote
  #45  
Old 06 Jan 2010, 10:47
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
I wish to see this one for 4.0, you know, matching 4.0 postbit (or legacy) design.

This one is so much flexible and does the job perfectly.
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 13:52.

Layout Options | Width: Wide Color: