vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=285271

Show ads for last post on page only when there are more than X replies
by tpearl5
06 Jul 2012 18:20

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.

karlm 14 Jul 2012 23:46

Handy to know, thanks!


All times are GMT. The time now is 06:41.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.