Log in

View Full Version : need a condtional query


lasto
12-28-2004, 06:53 PM
ok in forum homepage i want to limit the who`s online box to certain usergroup so for a tester i want to just limit it to just admin (ok i know i can turn it off in admincp for other groups but this is for the extended who was online today)

anyway so in forum home i need the code so i can add it before and after that says

if bbuserinfo=admin etc
(show code)
</if>

hope u can follow me :)

Paul M
12-28-2004, 07:02 PM
I don't really follow, is this what you want ;

<if condition="$bbuserinfo[usergroupid] == 6">

(code)

</if>

Zachery
12-28-2004, 07:02 PM
ok in forum homepage i want to limit the who`s online box to certain usergroup so for a tester i want to just limit it to just admin (ok i know i can turn it off in admincp for other groups but this is for the extended who was online today)

anyway so in forum home i need the code so i can add it before and after that says

if bbuserinfo=admin etc
(show code)
</if>

hope u can follow me :)
try this

<if condition="$show['admincplink']"> whos online code </if>

if that doesnt work try

<if condition="$bbuserinfo[usergroupid] == 6"> whos online code </if>

lasto
12-28-2004, 07:06 PM
cheers thats it :) - thanks u 2 sorry for being to vague but i knew what i wanted was just harder to put in words :)