The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I made a variable in a plugin. How do I use it in a template now?
This is my plugin:
PHP Code:
But it doesn't let me do this? <vb:if condition="{vb:raw hourofday} == 1"> I want to do that... |
#2
|
||||
|
||||
It should be this:
Code:
<vb:if condition="$hourofday == 1"> |
#3
|
|||
|
|||
I have the above plugin using a hook location of Parse Templates.
And this is my added code at the bottom of headinclude: Code:
<vb:if condition="$hourofday == 9"> <style type="text/css"> html { background-color: #000066; } </style> </vb:if> --------------- Added [DATE]1276869271[/DATE] at [TIME]1276869271[/TIME] --------------- Nevermind I got it to work. I changed: PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|