The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you enter php into phrases?
How do you enter some php into phrases. I have welcome headers and would like to post different messages based on different variables.
Edit.. I would like to know how to add php to notices or the above.^^ |
#2
|
||||
|
||||
Adding it to phrases is done in the templates like this (example from the navbar):
HTML Code:
<phrase 1="$bbuserinfo[username]" 2="$vboptions[bburl]/member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase> |
#3
|
|||
|
|||
Thanks for the reply. But I wanted to add an if then statement in php. Not just variables.
|
#4
|
||||
|
||||
You have to use a plugin to do the if/else and the output from that would be a variable you can then use in the phrase.
|
#5
|
|||
|
|||
thank you. I will have someone make it in the paid section. =)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|