Log in

View Full Version : re-write $stylevar[imgdir_button]


Stickers
09-05-2007, 02:12 PM
Hi,

can i re-write the $stylevar[imgdir_button] with a plugin?

like
if ($vbulletin->userinfo['fieldx'] != 'Blackstyle')
{

Any help is welcome :)

Best regards
Stickers

Zachery
09-05-2007, 03:11 PM
Any specific reason you want to do this? Instead of like a child style?

But you could, In the global_start hook do:
if ($vbulletin->userinfo['fieldx'] != 'Blackstyle')
{
$stylevar[imgdir_button] = "your url";
}

Don't be afraid to try things ;) it might lead to something.

Marco van Herwaarden
09-05-2007, 03:33 PM
You can set the Button Images folder for each style in the StyleVars

AdminCP -> Styles & Templates -> Style Manager -> StyleVars -> Button Images Folder

Stickers
09-05-2007, 08:50 PM
Any specific reason you want to do this? Instead of like a child style?

But you could, In the global_start hook do:
if ($vbulletin->userinfo['fieldx'] != 'Blackstyle')
{
$stylevar[imgdir_button] = "your url";
}

Don't be afraid to try things ;) it might lead to something.

Thanks Zachery, im trying to add more styles in one style cause i hate the template edits ;) but it works (after hours playing) :) sow many things to learn

You can set the Button Images folder for each style in the StyleVars

AdminCP -> Styles & Templates -> Style Manager -> StyleVars -> Button Images Folder

Thanks Marco but i know that one :p