Log in

View Full Version : template condition to check if user is banned?


NeXuM
06-28-2010, 10:31 PM
Is there a template condition to display a text if the user is banned from the forum ?

something like

<if condition="is_banned">
you are banned
</if>

BirdOPrey5
06-29-2010, 04:34 AM
You would use the condition if they were a member of the banned users usergroup...

<if condition="is_member_of($vbulletin->userinfo, 8)">

usually '8' is the banned users usergroup... if you have different or additional groups add them with commas, 8, 9, 10 for example...

borbole
06-29-2010, 09:14 AM
You can also try this conditional.

<if condition="$bbuserinfo['usergroupid'] == 8">
you are banned
</if>