PDA

View Full Version : Displaying a link to moderators only in member profile.


gyankow
02-27-2006, 07:57 PM
I'm looking for a the $moderator value and corresponding conditional statement so that I can show a link in no present to regular members.

For example:
<if condition="$vboptions['vbactive'] AND $bbuserinfo['userid'] AND $userinfo[moderator]">
The bold section is what is currently not working.....

I also need the value for Super and Admin in the form of an or statement.


Any help would be awesome.....

Thank you....
G

Sean S
02-27-2006, 08:23 PM
I'm looking for a the $moderator value and corresponding conditional statement so that I can show a link in no present to regular members.

For example:

The bold section is what is currently not working.....

I also need the value for Super and Admin in the form of an or statement.


Any help would be awesome.....

Thank you....
G

Not sure if this will work, but try replacing the $userinfo[moderator] with $bbuserinfo[userid]

and replace userid with your moderator/admin usergroup ids. For example the moderator's usergroup id at my forums is 7, so I would put $bbuserinfo[7],

hope that helps.

gyankow
02-27-2006, 09:10 PM
Not sure if this will work, but try replacing the $userinfo[moderator] with $bbuserinfo[userid]

and replace userid with your moderator/admin usergroup ids. For example the moderator's usergroup id at my forums is 7, so I would put $bbuserinfo[7],

hope that helps.


Nope didn't work, I just tried it. I think it's a bbusergroup or bbgroup.....