how to include external template file?

Discussion forum for MOD Writers regarding MOD Development.
Locked
hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

how to include external template file?

Post by hp_solomon » Sun May 27, 2007 2:39 pm

Anyone knows how to include external template file within templates? for example, i wanted to create an external navigation php template file that will be called on some pages/templates, is that possible in phpbb3? What is the best way to do this? Any thoughts?

Thanks.

User avatar
DualFusion
Registered User
Posts: 476
Joined: Tue Oct 24, 2006 9:53 pm
Location: A forum
Contact:

Re: how to include external template file?

Post by DualFusion » Sun May 27, 2007 3:30 pm

This is easily done in any phpbb3 template file...

<!-- INCLUDE file_name.html -->

replace 'file_name.html' with the file in the same directory :D If you want it in a different directory, i dont know if you can do that. i am not sure if putting '../' will work, so just try to leave it in the same directory, unless you want to try :D

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: how to include external template file?

Post by hp_solomon » Sun May 27, 2007 3:38 pm

How can i make the links dynamic? I want the template file to be in php. Is that possible?

geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: how to include external template file?

Post by geoffreak » Sun May 27, 2007 5:59 pm

hp_solomon wrote:How can i make the links dynamic? I want the template file to be in php. Is that possible?
Not with the template system, no.
If you want to include php files, you need to enabled them in the ACP security section and then use the include method shown above ;)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!

Locked

Return to “[3.0.x] MOD Writers Discussion”