View Full Version : How to display banner only for allowed-group ?
kotlt99
04-02-2009, 07:36 PM
I have a banner, but i only want some usergroup can see it, ex, usergroup id 1,2,3,4 and other group won't see , like gues, usergoup 5.
How to do it ? I want to put banner in navbar.
I'm run vbb 3.7.x
Lynne
04-02-2009, 08:02 PM
<if condition="is_member_of($bbuserinfo,1,2,3,4)">
banner here
</if>
kotlt99
04-02-2009, 09:27 PM
<if condition="is_member_of($bbuserinfo,1,2,3,4)">
banner here
</if>
Thank you.
Can i include "member more than x post" of this usergroups can see banner ?
Lynne
04-02-2009, 10:37 PM
You'd have to make sure that the postcount for the user is available for use as a variable. You might try adding "AND $bbuserinfo['posts'] > x" into the statement. But, you need to make sure that $bbuserinfo['posts'] is not a formatted number like it sometimes is. Set your postcount to over 1000 and then print that variable out and see if it prints "1,000" or "1000". If it prints out the second, then you are in luck and can do that. If it prints out the first, you will have to do some coding (a plugin). If it prints out neither, then you will have to do a plugin also.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.