Log in

View Full Version : How can I call a PHP file from a template ?


mihai11
09-26-2007, 04:53 PM
Hi,

I would like to fill some data in a template with the output of a PHP script. How can I call a PHP script from a template ?

Regards,
Razvan

WhaLberg
09-26-2007, 05:28 PM
Include it in the php file of the area that you will use the data in. And in your template use your variable.

mihai11
09-27-2007, 01:08 AM
Include it in the php file of the area that you will use the data in. And in your template use your variable.


I see ... that means that I need to modify a core file.

Dismounted
09-27-2007, 04:19 AM
<a href="http://www.vbulletin.com/docs/html/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/t..._externalfiles</a>

mihai11
09-27-2007, 12:05 PM
http://www.vbulletin.com/docs/html/templates_externalfiles

Great ! This is what I need. Thank you.