Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Show ads for last post on page only when there are more than X replies Details »
Show ads for last post on page only when there are more than X replies
Mod Version: 1.00, by tpearl5 (Coder/Designer) tpearl5 is offline
Developer Last Online: Jun 2018 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (0 vote - 0 average) Installs: 4
Released: 06 Jul 2012 Last Update: Never Downloads: 0
Not Supported Template Edits  

By default the ad in the last post will show if there are 2 posts on a page. This results in two successive, often cluttered looking ads. Alternatives if statements to this did not account for multi-page threads where 2 posts were on a page.

Here is the solution:

In postbit find

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

replace with

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

I found that more than 2 posts on a page is sufficient to show an ad again. Of course if you rather have more posts on a page before showing another ad, simply change the 2 in the conditional to whatever you want.

Download Now

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

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.
Comments
  #2  
Old 14 Jul 2012, 23:46
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Handy to know, thanks!
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
Forum Jump


New To Site? Need Help?

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

Layout Options | Width: Wide Color: