The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
use vbphrase with arguments in php code
Hi
how can I use phrases with argument in php code? for example this is a phrase defined in vb: by_x_in_forum_y this phrase has two argument how can I define this two arg. in php |
#2
|
||||
|
||||
You need to use the "construct_phrase()" function. For example, in one of my products, I have the phrase "markfl_tppf_blocktitle" which is defined as:
Top {1} Thread Starters For "{2}" I then use the PHP code: PHP Code:
|
#3
|
|||
|
|||
thank you so much
it worked as I expected |
#4
|
||||
|
||||
Glad to help!
To me that is somewhat simpler than passing the parameters to the template, and then having vB construct the phrase there. |
#5
|
|||
|
|||
I'm not comfortable with template and also I'm beginner as you know.
I have to learn and search more about coding in vb |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|