![]() |
Arithmetic on vB Variables?
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 |
How about:-
PHP Code:
|
I did not think that I could put PHP code inside a template (say the footer)?
|
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.
|
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|