The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What would this template code look like in php?
PHP Code:
|
#2
|
|||
|
|||
Basically,
<if condition="xxx"> some HTML </if> ==> if (xxx) { echo('some HTML'); } although you have to handle any single quotes and variables that might appear in "some HTML" <phrase 1="x" 2="y" 3="z">phr</phrase> ==> construct_phrase("phr", "x", "y", "z"); That phrase stuff is a vb function of course, so if you're not using any vb you could just build a string instead. |
#3
|
|||
|
|||
PHP Code:
does this look right, cuz it sorta works. it outputs: Private Messages: %1$s, %2$s. instead of: Private Messages: Unread 0, Total 92. |
#4
|
|||
|
|||
I'm sorry, I guess my example wasn't clear, it was supposed to be showing you how I thought a template with a phrase could be changed to php code, but "phr" shouldn't be used literally, it was just meant to stand for any phrase. And ==> means 'gets replaced with', so your resulting php code shouldn't contain the <phrase> tags.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|