i have a custom page that uses a custom template, the template uses a plugin to include a php file, the php file uses the option:
PHP Code:
$vbulletin->options['my_options']
to retrieve a setting, i am trying to use this setting inside a php variable:
PHP Code:
$cfg['conf']['avatars'] = $vbulletin->options['my_options'];
the problem is that the option is not inserted, how can i add options to php variables?
i tried adding
PHP Code:
globals $vbulletin ;
at the top of the php file but it still does not work.
Another problem i have is that i dont know how to add functions to a custom template too retrieving those functions from a plugin.