PDA

View Full Version : stylevar for theme folder?


PinkMilk
03-17-2014, 07:49 PM
For theme image folder paths you use:
$stylevar[imgdir_button]
which equates to : theme/buttons

but is the a stylevar for just the theme folder?

theme/

PinkMilk
03-22-2014, 07:52 AM
I guess that's a no then.

tbworld
03-22-2014, 03:12 PM
In vbulletin4 you can kind of use vbulletin 'replacement variables' to accomplish this. You might give it a try in vb3. Maybe a vbulletin3 expert can chime in here. :)

TheLastSuperman
03-23-2014, 08:19 PM
There are stylevars for nearly all the folders, you pre-define the folder you're hosting the images from within the stylevar area itself example:

AdminCP > Styles & Templates > Style Manager > *Edit Stylevars of said style > Use the search filed at top of the stylevars and search for "imgdir" (without the quotes) and now you can define what the /misc/ directory is and other directories within that particular style you'll see the directories you can specify locations too when you do a search for imgdir.

PinkMilk
03-24-2014, 05:56 AM
In vbulletin4 you can kind of use vbulletin 'replacement variables' to accomplish this. You might give it a try in vb3. Maybe a vbulletin3 expert can chime in here. :)

That's an obvious solution I didn't think of and don't know why I didn't, thank you!

There are stylevars for nearly all the folders, you pre-define the folder you're hosting the images from within the stylevar area itself example:

AdminCP > Styles & Templates > Style Manager > *Edit Stylevars of said style > Use the search filed at top of the stylevars and search for "imgdir" (without the quotes) and now you can define what the /misc/ directory is and other directories within that particular style you'll see the directories you can specify locations too when you do a search for imgdir.

I know about the stylevars paths in Style Manager thats basic vb101, and there is no search at the top of stylevars page, I think maybe your talking of vb4?!

The reason I ask is that I have additional non vb folders in my styles dir and so I was hoping there was one like
$stylevar[imgdir]

so I could do something like
$stylevar[imgdir]/customdir/

but tbworld's idea of using a replacement variable is sufficient for now I think.

TheLastSuperman
03-24-2014, 07:44 AM
there is no search at the top of stylevars page, I think maybe your talking of vb4?!

Doh! I sure was :erm: :cool: