Log in

View Full Version : Adding a Link Only Admin or Mods can see.


FightRice.com
04-11-2005, 03:04 PM
I want to add a link to www.whois.sc on my Users Online page (online.php?) But i only want Admins and/or Mods to be able to see this if that is possible

I would also like to add the same link to the page you get when you hit the "IP" button from a particular post, but i'm not sure what file to edit for that.

Is there any way of doing this? I searched but came up with nothing

Reeve of shinra
04-11-2005, 03:29 PM
You will need to use template conditionals. I dont have a good example offhand but take a look at the vb documentation or around the board for the syntax.

twoseven
04-11-2005, 03:51 PM
<if condition="is_member_of($bbuserinfo,X)">
stuff here... where X is the usergroup you want to allow
</if>

FightRice.com
04-11-2005, 07:25 PM
<if condition="is_member_of($bbuserinfo,X)">
stuff here... where X is the usergroup you want to allow
</if>



Worked perfectly. Thanks

twoseven
04-11-2005, 08:24 PM
np its the only function i memorized