The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
eval()
Ok I have a big question that is going to take a little explaining.
I have this code running though an eval function: PHP Code:
The eval function I'm trying to run looks like this. PHP Code:
PHP Code:
|
#2
|
||||
|
||||
You can't use PHP in templates, except for declared variables. Though, you could use the phpinclude template, but if you want the current date, it would be a lot easier to just set $today = date(); in the php file, then in the template use $today.
If you want all templates to act like the phpinclude template, I would look at how the phpinclude template is managed in the PHP files... Though, I would just use the following hack: http://www.vbulletin.org/hacks/index...ck&hackid=1200 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|