PDA

View Full Version : SOLVED! - yes another user member restriction control IN template


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

Ted S
02-15-2009, 05:12 PM
<if condition="!$show['guest']">

or

<if condition="$bbuserinfo['userid'] > 0">

Vaupell
02-15-2009, 05:15 PM
ohhh. well.. :p

Tx Ted ;):up:

Dismounted
02-16-2009, 04:59 AM
<if condition="$show['member']">
Will also work. :p