PDA

View Full Version : how replacement variables work?


tnguy3n
06-06-2004, 05:41 PM
I still don't get how replacement variable in vb3 works. :confused:
For example if i have a dir named img in forum /image directory, and i want to call images in that /images/img dir by my replacement variable, and i tried all
$stylevar[imgdir_img]
imgdir_img
stylevar[imgdir_img]

and neither of them worked. anyone have an idea what's wrong? :confused:

Tony G
06-07-2004, 12:53 AM
Added folders won't work. These variables are pre-defined, and you'd have to define any other added folders through hacking. I'm not 100% on this, but I'm sure the stylevar variables calling images only work with the folders that are in /image that are there from default.

Someone can correct me if I'm wrong, but I'm sure it works like this.

tnguy3n
06-07-2004, 02:25 AM
thanks. yeah, i hafta be pre-defined. i got it worked now. :) i add $stylevar[...] in includes/functions.php and work like a charm.