View Full Version : How do I add custom stylevars?
Adult SEO
08-06-2009, 02:32 PM
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.
Princeton
08-07-2009, 02:45 PM
use the plugin system ...
try "global_start" or "parse_templates"
// custom image folders
$stylevar['imgdir_custom'] = 'http://images.domain.com/custom';
Adult SEO
08-07-2009, 02:54 PM
I've found it.
You have to add the fields in hook stylevar_edit_misc
print_table_header('Custom Stylevar Category', 3);
print_stylevar_row('Image Base', 'custom_imgbase');
...
And then add custom_imgbase to the stylevar database manually, for the master style, so that it can be updated and it will work.
This is for v3.8.x.
Adult SEO
08-17-2009, 11:32 AM
The stylevars are located in the template table.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.