vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   stylevar for theme folder? (https://vborg.vbsupport.ru/showthread.php?t=309627)

PinkMilk 03-17-2014 07:49 PM

stylevar for theme folder?
 
For theme image folder paths you use:
Code:

$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

Quote:

Originally Posted by tbworld (Post 2488939)
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!

Quote:

Originally Posted by TheLastSuperman (Post 2489141)
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
Code:

$stylevar[imgdir]
so I could do something like
Code:

$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

Quote:

Originally Posted by PinkMilk (Post 2489215)
there is no search at the top of stylevars page, I think maybe your talking of vb4?!

Doh! I sure was :erm: :cool:


All times are GMT. The time now is 02:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02220 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete