PDA

View Full Version : Simple Question


Danny W
11-05-2004, 02:47 PM
I'm trying to put a messege into a module only for guests/unregistered members to see, and i need the code so only guests can see it, i'll give more info if needed, thanks in advanced ;)

Brian
11-05-2004, 02:57 PM
<if condition="!$bbuserinfo['userid']">
Message
</if>

Our Sponsors
 

Danny W
11-05-2004, 03:58 PM
Thanks, i knew i was close to it ;)

Danny W
11-06-2004, 08:48 AM
Another simple question, if i wanted the admins to just see a message what would i put? ['user=4']? or something like that?

Our Sponsors
 

Artayick
11-06-2004, 08:52 AM
<if condition="$bbuserinfo['usergroup1']">
Message
</if>

of the top of my head I might be wrong on the name for calling user groups but it is the same code but calling to the user group for adminis minus the "!" as the not equals

or so i believe..

Artayick
11-06-2004, 08:58 AM
also if you want it all in the same place you can go with an elseif condition just a thought..

Danny W
11-06-2004, 09:49 AM
ok, thanks for you help, greatly appreciated :)

Brian
11-06-2004, 09:50 AM
<if condition="$bbuserinfo['usergroupid'] == 6">
Admin Message
</if>