![]() |
What would this template code look like in php?
PHP Code:
|
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. |
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. |
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.
|
All times are GMT. The time now is 06:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|