PDA

View Full Version : Navgroups controlled by vBOptions


peterska2
06-27-2006, 10:16 PM
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.

Paul M
06-28-2006, 03:00 AM
<if condition=" $foo AND $bar == 'link' ">

peterska2
06-28-2006, 02:42 PM
cheers I'll give that a try when i get to the pc again later. :)

peterska2
06-30-2006, 10:54 PM
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$vboptions[foo]$vbulletin->options[foo]and nothing happens, it just shows all the time.

Also $vboptions[bar](my links) don't show either, I just get the code instead of the link.

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.