The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
i normally just use images/whatever/image.gif but i'm aware that theirs a better way so i'm wondering what's the best way and why use stuff like $stylevars etc. (sorry just trying to learn)
|
#2
|
||||
|
||||
![]()
$stylevar[imagesfolder] that takes you right to your images folder and i guess u can go from there
![]() ![]() |
#3
|
||||
|
||||
![]()
That only worked in vB3 pre beta 7
![]() its now $stylevar[imgdir_*]/ either hard code it http://www.bla.com/forum/images/buttons/crap.gif or use relative location ![]() |
#4
|
||||
|
||||
![]()
some of the templates i see still use it>_>
|
#5
|
||||
|
||||
![]()
then your using old templates
![]() |
#6
|
||||
|
||||
![]()
nice one, thanks everyone, i thought i better standardize my style set coding before i got too far into it
![]() |
#7
|
||||
|
||||
![]() Quote:
can u just use $stylevar[imgdir]? ok tried $stylevar[imgdir] and $stylevar[imgdir_*] and $stylevar[imgdir_gradients], they dont work>_> |
#8
|
||||
|
||||
![]()
she's right, i just tried to link to an image which is located at
Code:
images/forumhome/$forum[forumid].gif Code:
$stylevar[imgdir_forumhome]/$forum[forumid].gif ![]() |
#9
|
|||
|
|||
![]()
Example:
If your style settings were set to http://www.asite.com/forums/stylename then $stylevar[imgdir_misc]/boo.gif will call http://www.asite.com/forums/stylename/misc/boo.gif when he said $stylevar[imgdir_*] he ment replace * with the dir name where the image is stored. Hope this helps |
#10
|
||||
|
||||
![]()
but i have my images stored in /images/forumhome so where as images stored in images/misc i can just use $stylevar[imgdir_misc]/image.gif i have made a new directory i want to store my images in and i want to call them dynamically.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|