How to add a post requirement to view a ShoutBox
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%}--> Code:
<if condition="$bbuserinfo[posts] < '10' AND THIS_SCRIPT == 'index'">You require 10 Posts to see the shoutbox.<else /><!--{%SHOUTBOX%}--></if> Code:
<if condition="$bbuserinfo[posts] < '10' AND THIS_SCRIPT == 'index' AND $bbuserinfo[userid]">You require 10 Posts to see the shoutbox.<else/><!--{%SHOUTBOX%}--></if> 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. |