The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple conditions to showing a navbar menu item
I wondered if it's possible to hide a certain menu item in my navbar template if the following conditions are met:
Is there any way of coding that please? |
#2
|
||||
|
||||
1. $show['member']
2. $vbulletin->userinfo['posts'] 3. $vbulletin->userinfo['languageid'] However they will only have a post count if they are a member so condition # 1 is irrelevant... So try putting the navbar code in the following condition: Code:
<if condition="($vbulletin->userinfo['posts'] > 5) AND ($vbulletin->userinfo['languageid'] == 1)"> navbar code </if> |
#3
|
|||
|
|||
Superb! I take your point about condition # 1 being redundant. That code is so simple and elegant; many thanks!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|