![]() |
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? |
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)"> |
Superb! I take your point about condition # 1 being redundant. That code is so simple and elegant; many thanks!
|
All times are GMT. The time now is 07:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|