PDA

View Full Version : QUESTION : vbsettings ( options )


TheSupportForum
10-15-2012, 05:52 PM
1) i have an option from vbsettings that i with the include in a php file
a) the php file located in a seperate folder and with to use a vb variable
b) a plugin currently loads the php file
b) do i need to include anything in the php file to get a vb variable to work

i want to do thing like this

$key = "options['option_key']";

am i doing this correctly ?


i also need help with the following
can i do this

this is the orginal code
$myarray = array();

can i do this

$myarray = array($vbulletin->options['myvar'];)

kh99
10-15-2012, 08:18 PM
1) i have an option from vbsettings that i with the include in a php file
a) the php file located in a seperate folder and with to use a vb variable
b) a plugin currently loads the php file
b) do i need to include anything in the php file to get a vb variable to work

i want to do thing like this

$key = "options['option_key']";

am i doing this correctly ?

I'm not quite sure what you're trying to do, but I think maybe what you'd want is
$key = $vbulletin->options['option_key'];


i also need help with the following
can i do this

this is the orginal code
$myarray = array();

can i do this

$myarray = array($vbulletin->options['myvar'];)

I'm not sure what you're trying to do: what kind of option is $vbulletin->options['myvar']? Is it a text field?

TheSupportForum
10-15-2012, 09:48 PM
edited :

post no longer needed as resolved