FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Modifying Templates
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Modifying Templates [message #8749] Fri, 21 February 2003 17:20 Go to next message
darkpenguin is currently offline  darkpenguin   United States
Messages: 1
Registered: February 2003
Karma: 0
Junior Member
Is there any documentation available for how to edit the template files? I've looked at the online docs and it mentions how to include one template file within another using a certain tag. If that is the only way to do it, how do I format a file so it will be a template file?

I tried to just include on of my .php files but it complained about not having a MAIN BODY or something of the sort.

Thanks!
Re: Modifying Templates [message #8764 is a reply to message #8749] Fri, 21 February 2003 21:53 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Each templetable file consists of 2 files
.tmpl file, which contains the HTML and the .php.t or .inc.t file which contains the source. If you want to include a PHP file you can either modify existing .php.t or inc.t file and put include "your_file_name.php" or you need to make a template, in which case refer to existing examples.


FUDforum Core Developer
Re: Modifying Templates [message #9563 is a reply to message #8764] Wed, 09 April 2003 23:45 Go to previous messageGo to next message
Sergey is currently offline  Sergey   United States
Messages: 41
Registered: January 2003
Karma: 0
Member
prottoss wrote on Fri, 21 February 2003 16:53

Each templetable file consists of 2 files
.tmpl file, which contains the HTML and the .php.t or .inc.t file which contains the source. If you want to include a PHP file you can either modify existing .php.t or inc.t file and put include "your_file_name.php" or you need to make a template, in which case refer to existing examples.


Can I ask where I can put php include in *.php.t file.

For example I have index.php.t

<?php
....
{PRE_HTML_PHP}
....
{POST_HTML_PHP}
.....
{POST_PAGE_PHP_CODE}
?>
{TEMPLATE: INDEX_PAGE}

and I want to include

<?php include("some_file.php"); ?>

Where I can put this statement inside index.php.t ?

Thank you.



-------------------
"If you really want something in this life you have to work for it.
Now quiet, they're about to announce the lottery numbers."
Author: Homer Simpson.
Re: Modifying Templates [message #9626 is a reply to message #9563] Sun, 13 April 2003 15:08 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The position depends on what it does...
If it outputs data it should be somewhere after INDEX_PAGE, otherwise you can put it anywhere.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to change topic sorting?
Next Topic: Backup message attachments?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 00:07:48 GMT 2024

Total time taken to generate the page: 0.02419 seconds