The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I need to have something like this:
Phrasetext VariabletextWhere "phrasetext" is the output from a phrase, and "variabletext" is the value of a variable. I have this to start with: Code:
$title = $vbphrase['phrasename'] This will be used in a hack I'm about to release, and I will be sure to credit assistance to whomever's example I use. ![]() Here's another question for the same project: Can a variable be part of a phrase name? For example, through the URL you pass $var to the script. Can $var be part of the phrase name, as in: Code:
$title = $vbphrase['phrasename_$var']; |
#2
|
|||
|
|||
![]() Code:
$title = "\$vbphrase['phrasename".$var."']"; |
#3
|
||||
|
||||
![]()
Sorry, didn't work.
The output was: $vbphrase['phrasename']So, part of the code was output literally, and the variable was not in the output at all. |
#4
|
|||
|
|||
![]()
use construct_phrase($vbphrase['phrase'], $var)
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|