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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.