Back to vBulletin 3.8 Template Modifications

How to add a post requirement to view a ShoutBox
Mod Version: 1.00, by dreads

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 8
Released: 11 Jul 2009 Last Update: Never Downloads: 2
Not Supported Template Edits Re-usable Code  

How to add a post requirement to view a ShoutBox
This mod was actually designed for Inferno Shoutbox Series, yet you could use this for many of the other sb mods.

Original Article: http://www.g4hq.com/forum/index.php?t=19981

How to add a post requirement to a ShoutBox
by: h0ly
Skill: 2 out of 10
Mod: Inferno Shoutbox. (Popular shoutbox software)

Original Code for Shoutbox

Code:
<!--{%SHOUTBOX%}-->
Replace it with this one.

Code:
<if condition="$bbuserinfo[posts] < '10' AND THIS_SCRIPT == 'index'">You require 10 Posts to see the shoutbox.<else /><!--{%SHOUTBOX%}--></if>
If you do not want guests to see the "You require 10 posts.." than instead use this code
Code:
<if condition="$bbuserinfo[posts] < '10' AND THIS_SCRIPT == 'index' AND $bbuserinfo[userid]">You require 10 Posts to see the shoutbox.<else/><!--{%SHOUTBOX%}--></if>
Now how does it work?
Well, You are putting down a condition.
$bbuserinfo[posts] gets the number of posts the user has.
THIS_SCRIPT == 'index' - this means that it must be the index.

Support is offered on http://www.g4hq.com/forum as well as mod requests.
Thanks!

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024