PDA

View Full Version : Adding a Conditional


ChrisBaktis
06-10-2004, 07:27 PM
I run a sports card trading site and our members previously used the User Notes to leave feedback on each other after trades were made. We had the MEMBERINFO template coded to show 'User Notes: [#] [View/Post]'. I would like to make it so only Mods and Admins can see this info. I would like all other members not to be able to see it.....can anyone help me with what code I need to add so this is hidden from everyone but Mods and Admins?

Chris

Zachery
06-11-2004, 05:31 PM
By default only people with access to the usernotes should be able to see it, however if this is not the case or you are using custom coding

<if condition="(is_member_of($bbuserinfo, 5)) OR (is_member_of($bbuserinfo, 6)) OR (is_member_of($bbuserinfo, 7))"> show info to mods / smods / admins only </if>

ChrisBaktis
06-11-2004, 08:05 PM
Thank you!