The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do I add custom stylevars?
I was wondering if anyone knows a link to more information on how to setup your own custom stylevars, for example to define a image base path.
|
#2
|
||||
|
||||
use the plugin system ...
try "global_start" or "parse_templates" // custom image folders $stylevar['imgdir_custom'] = 'http://images.domain.com/custom'; |
#3
|
||||
|
||||
I've found it.
You have to add the fields in hook stylevar_edit_misc PHP Code:
This is for v3.8.x. |
#4
|
||||
|
||||
The stylevars are located in the template table.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|