Vaupell
02-15-2009, 05:06 PM
Normal if i restrict acces to usergroups i use
<if condition="is_member_of($bbuserinfo, 2, 3)>
stuff
</if>
thats how i control different levels of items in my navigation menu
works like a char, its a template running through vba..
now i want to restrict a botton to only registrered users
so i thought replaceing the usergroups with 'userid' would just make the
condition true.. but nope. didnt work.
<if condition="is_member_of($bbuserinfo['userid'])>
<div align="center"><a href="Elinks.php?do=input" class="botton">Add another row</a></div>
</if>
suggestions
<if condition="is_member_of($bbuserinfo, 2, 3)>
stuff
</if>
thats how i control different levels of items in my navigation menu
works like a char, its a template running through vba..
now i want to restrict a botton to only registrered users
so i thought replaceing the usergroups with 'userid' would just make the
condition true.. but nope. didnt work.
<if condition="is_member_of($bbuserinfo['userid'])>
<div align="center"><a href="Elinks.php?do=input" class="botton">Add another row</a></div>
</if>
suggestions