View Full Version : PHP Functions in Templates
JimF
Tue 1st Aug '00, 2:51am
How would I use functions, such as include() in my vB templates? This is for calling a navbar on my site.
Any help would be great!
-jim
The_Sisko
Wed 20th Sep '00, 5:16pm
Is the problem solved? I need this for my forum, too! Is it a server config prob or why does the php code not be worked out?
JimF
Wed 20th Sep '00, 5:26pm
It doesn't work because the templates don't get parsed as PHP - they get parsed as HTML. So the functions don't work. I've since added the functions that I needed to the global.php file - and I can call them at will inside my templates.
-jim
The_Sisko
Wed 20th Sep '00, 7:07pm
Can you give me a hint how to add php code to the global.php to call it from there over $xxxx? I looked over the global.php but didn't get it what to do?
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.