PDA

View Full Version : Plugin Conditional for Users Who Have Active Infraction?


RedTurtle
11-04-2012, 08:54 PM
Is there a way to get a conditional for vB4's plugin system where you can have it apply only to users who have an active infraction?

Tried searching but wasn't able to find anything.

squidsk
11-04-2012, 09:11 PM
Is there a way to get a conditional for vB4's plugin system where you can have it apply only to users who have an active infraction?

Tried searching but wasn't able to find anything.
Something like


<vb:if condition="$bbuserinfo[ipoints] > 0">
//stuff
</vb:if>

RedTurtle
11-04-2012, 09:22 PM
Thank you squidsk, and if I wanted that in a plugin instead of a template would I do:

if ($vbulletin->userinfo[ipoints] > 0) {

stuff here

}

?

--------------- Added 1352074037 at 1352074037 ---------------

Nice, it worked. Thank you :)