The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to "export" a variable to template?
hi,
generally i need answer for the question in the title here is my problem: in file showthread.php i set up a variable $threadBelongsToForumA. I dont know how to "export" this varialbe in order i can use "if conditional" syntax in SHOWTHREAD template: <if condition="$threadBelongsToForumA==1">....</if> my php and VB know-how is very limited, pls help. Thx a lot. |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
hi,
in file showthread.php |
#4
|
||||
|
||||
If I am understanding your question correctly, if the file containing the variable is run, it should recognize it automatically.
ex: if you declare $hello = 'hello'; in showthread.php then putting $hello in a template will show $hello if the current file is showthread.php (or it is included). |
#5
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|