![]() |
Navgroups controlled by vBOptions
I'm working on a new idea, and so far so good, but I'm a bit stumped so hping that someone can point me in the right direction.
What I have is the vBOptions Settings for everything all sorted, but a number of these settings are on/off switches (ie yesno fields). What I want to do is to have each switch adding/removing options within the navgroup (ie if $foo = yes then navoption foo shows, but if $foo = no then it doesn't). I don't want to have to use navgroups for every item, as a lot of the items have a switch and then the content. What I am aiming for is $foo = yes & $bar = link then show navoption foo which uses the link from $bar I've already got the adminpermissions bit working, but this has me completely and utterly stumped. Any input muchly appreciated. |
<if condition=" $foo AND $bar == 'link' ">
|
cheers I'll give that a try when i get to the pc again later. :)
|
Ok it didn't work, and it took me a while to figure out that my whole navgroup didn't work because it doesn't like numbers in the file name (not very useful).
I tried Code:
$vboptions[foo] Code:
$vbulletin->options[foo] Also Code:
$vboptions[bar] I guess I'll be digging out the admin permissions thing instead and trying setting them that way, although it won't be the best way of doing it by a long way. |
All times are GMT. The time now is 10:01 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:
|