vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how replacement variables work? (https://vborg.vbsupport.ru/showthread.php?t=89281)

tnguy3n 06-06-2004 04:41 PM

how replacement variables work?
 
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-06-2004 11:53 PM

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 01: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.


All times are GMT. The time now is 01:45 PM.

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.03655 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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