The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I want a link in the navbar to only appear if a user is in a usergroup called Banned Users, allowing them to appeal their ban.
What's the <if condition> statement for this? <if condition=???> Fill in the ??? |
#2
|
|||
|
|||
![]() HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 8)"></if> |
#3
|
||||
|
||||
![]() HTML Code:
<if condition="is_member_of($bbuserinfo, x)"> link </if> |
#4
|
||||
|
||||
![]()
Thanks Lynne and ChopSuey =)
--------------- Added [DATE]1259771256[/DATE] at [TIME]1259771256[/TIME] --------------- If I want other usergroups to see the link, do I put a comma after the last usergroup id? eg 22,6,8 ? |
#5
|
|||
|
|||
![]()
Add a comma and a space. Like
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 8, 6, 2)"></if> |
#6
|
||||
|
||||
![]()
thanks. You don't need to put a space.
|
#7
|
||||
|
||||
![]()
No, you don't *nned* to put a space, however it is good practice to do so. See the manual - Use of Spaces:
Quote:
|
#8
|
||||
|
||||
![]()
Okay, thanks guys.
Another question using the condition statement: how would I go about setting up a conditional or a piece of code that hides the forums that moderators moderate if that user isn't in that usergroup (registered users)? I want the entire list of forums to appear to anyone else, but not the registered users (there's a setup that allows members to go into hogwarts houses.) |
#9
|
||||
|
||||
![]()
What do you mean that "hide the forums that moderators moderate"? You would use Forum Permissions to not show forums to other usergroups.
|
#10
|
||||
|
||||
![]() Quote:
How would I go about setting up a conditional or a piece of code that hides the forums that moderators moderate if that user isn't in that usergroup (registered users) on the Show Groups page? I want the entire list of forums to appear to anyone else, but not the registered users (there's a setup that allows members to go into hogwarts houses) on the Show Groups page. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|