PDA

View Full Version : i don't understand


Delphiprogrammi
04-15-2006, 07:48 PM
hi people,

I have a question.How does vbulletin creates those phrases that output the value of a variable ? for example in templates


$user[username]

how can i make this sow i can use $vbphrase[whatever] according to the manual it has something todo with {1} and so on but i do not understand

i notice some phrases have the value of a vbulletin setting in them eg


$vbulletin->options['my_settings_varname'];


just don't understand how i can include this in a phrase

is it construct_phrase() ?? or the "<phrase>" tag no idea

help...

Paul M
04-15-2006, 08:21 PM
construct_phrase() is used in php code, the <phrase> tag is used in templates - both do the same thing.

Delphiprogrammi
04-15-2006, 08:58 PM
yeah,

found it


<phrase 1="$user[username]">$vbphrase[varname_here]</phrase>


in th phrases textbox you just use


hello {1}


problem solved

thanks Paul ...