The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
I want to integrate a constant (define()) in my template, how can I do that? Thanks |
|
#2
|
||||
|
||||
|
Template are for html, if you want to use code/php, then you need to do so in a plugin.
|
|
#3
|
|||
|
|||
|
you don't understand, I want my constant value in a template. I do not want to define the constant in the template.
|
|
#4
|
||||
|
||||
|
I guess I don't understand. Maybe give an example of what you are using right now in your template and what the result is (either the error or an image of what you get).
|
|
#5
|
||||
|
||||
|
You'll need to use a plugin to store the constant in a variable, as constants aren't parsed in templates.
ie: Code:
$thisscript = THIS_SCRIPT; |
|
#6
|
|||
|
|||
|
Thanks
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|