Forum Moderators: coopster

Message Too Old, No Replies

.TPL file

         

bobnew32

6:28 pm on Jul 29, 2003 (gmt 0)

10+ Year Member



What the heck is a .tpl file? I have heard its a way of separating html and php or somthing. Its also used alot in styles for phpbb forums.... Thx

lorax

6:37 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



tpl could be a reference to any number of things.

TPL is commonly used as the abbreviation for template files. It's also the file extension for files used by Turbo Pascal, Cakewalk, Harvard Graphics, DataCAD, Catalyst and TutorPro to name a few.

Jenstar

6:38 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On phpbb, tpl files are your template files. Those files allow you to make edits based upon ALL pages using that template. So you can change one template file and it will make the changes on all your view topic or view forum pages (or whichever template you happen to be changing).

Editing template files are the easiest way to make changes in appearances that will appear on all pages using that template (ie. if you want to add an additional logo, or non-forum navigational links).

You will also have to edit many of the .tpl files if you want to add any mods/hacks to your phpbb boards.

Your .php pages on your message boards will use your .tpl files when it generates each page.

bobnew32

6:41 pm on Jul 29, 2003 (gmt 0)

10+ Year Member



Jenstar thankyou very much for your detailed information. But, how are tpl files used? Are they <?php include?>? I am developing my site and if tpl files are good for separating php and html then I would greatly want to use them, also if they are easier.

How would I use them/ call them? Thankyou

Jenstar

6:47 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, I can't help you there :(

You mentioned phpbb, which I know a lot about ;) But in terms of developing, you'll need an "expert" with more expertise in php than me.

lorax

7:08 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think you'll need to look at the source code to determine how they're included unless someone familiar with PHPBB can fill you in.

Jenstar

7:28 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it is phpbb files you are wanting to change (not sure if you used that as an example or as a specific) head over to phpbb.com and visit their community. Search their forums, and you will find a wealth of information, as well as help files etc. They are also very good about answering any questions you have.