Quote:
Originally Posted by Flexo
Does anybody know which one I?m talking about?
|
Yup, just installed a version of it on my site. Its really quite simple:
Code:
<if condition="$bbuserinfo['usergroupid'] == '1'">
<!-- stuff for guests goes here -->
</if>
<if condition="$bbuserinfo['usergroupid'] == '3'">
<!-- stuff for unconfirmed folks goes here -->
</if>
<if condition="$bbuserinfo['usergroupid'] == '7'||$bbuserinfo['usergroupid'] == '5'||$bbuserinfo['usergroupid'] == '6'">
<!-- stuff for staff goes here -->
</if>
You can build a conditional check for any user group you've set up--look in the admin control panel to find the groupid--in any template you want. If you want to show stuff to everyone *except* a group, use this form:
Code:
<if condition="$bbuserinfo['usergroupid'] != '1'">
<!-- stuff NOT for guests goes here -->
</if>
You can use this test for lots of things:
- Customized header messages (I call them newsflashes and put them elsewhere)
- I hid the forum stats from everyone except staff
- I'm thinking of hiding avatars (actually all profile info) from guests
- show ads only to certain groups
Hope this helps.
--don