The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there any way to treat a vB variable as a number and perform arithmetic on it?
If the forum id is 5 I would like to be able to write (in a template) something like: $foruminfo[forumid]-2 and have it print out as 3. Chuck |
|
#2
|
|||
|
|||
|
How about:-
PHP Code:
|
|
#3
|
|||
|
|||
|
I did not think that I could put PHP code inside a template (say the footer)?
|
|
#4
|
|||
|
|||
|
You have to write your PHP code in a plugin first then assign the result to a variable and use that variable in a template.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|