PDA

View Full Version : Show What's going on to admin only


monoco
07-31-2010, 10:59 PM
I'd like to show the what's going on box to admin only, not to members or guests. Can this be done?

I've blocked it to "guest", but when I try to block "member" the admin is also blocked from seeing it.

Lynne
08-01-2010, 12:06 AM
How did you "block" it to guest or member? Write your code and perhaps we can see what is wrong.

BSMedia
08-01-2010, 01:29 AM
Did you use the member/guest conditionals for permissions? Maybe try it using usergroup conditionals

monoco
08-01-2010, 03:43 PM
Here is the code I used in forumhome:

<vb:if condition="$show['guest']">

<vb:else />

<vb:if condition="$show['member']">

<vb:else />

Lynne
08-02-2010, 02:22 AM
You can't use that if you only want to show to the admins. You'd have to use something like:
<vb:if condition="is_member_of($bbuserinfo, x)">
stuff
</vb:if>
Change x to the usergroupid for your admins.