View Full Version : Looking for help with if conditional...need to hide item from one usergroup (Solved)
SBlueman
02-20-2011, 12:50 AM
I am trying to find a if conditional that will work for one usergroup who will choose to hide a table on the site. I have tried various codes and none seem to work. So any suggestions on what if conditional to use in the header template to wrap around a table that users will have the option to see or not see?
TheLastSuperman
02-20-2011, 01:54 AM
Have you tried this?
<if condition="is_member_of($bbuserinfo, 1,2,3)">Show the table code here</if>
Change the 1,2,3 to the usergroups you want to see it or remove and leave only 2 or 3 for just usergroup 2 or 3 to view.
SBlueman
02-20-2011, 02:07 AM
well that won't give me the result I want. I am looking for a conditional to NOT show something to a certain usergroup.
Lynne
02-20-2011, 02:55 AM
Then put a ! in front of it....
<if condition="!is_member_of($bbuserinfo, 1,2,3)">Show the table code here to users not in usergroup 1, 2,3</if>
SBlueman
02-20-2011, 02:44 PM
Thank you so much Lynne, that worked like a charm!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.