PDA

View Full Version : How to make a link only appear a certain user group?


SteelFrog
06-12-2002, 10:14 AM
How do I make a link to a page (example.php) only appear to the custom user group "Privileged" I have created?

Thankful for any help.

Xenon
06-12-2002, 10:23 AM
in the php-file where the link is created make this lines:

if($bbuserinfo[usergroupid]==x) $link="<a href='example.php'>here</a>";
else $link="";

in the template just add $link :)

SteelFrog
06-12-2002, 11:02 AM
Wow that was quick! Thanks alot!