Template document.


This document will hopefully help to explain how to make your own templates. Templates
are used for displaying your news.  I have included two scripts for showing your news.
most people will only need to use the first script show_news.php this script will show 
your news all on one page limiting them by what ever setting you have set up in news.inc
as being the max number to display on the page.  The second script show_news_one.php
requires that {news_number} be passed to it this is useful if you would like to display your
news in a new window and only have a list of the data and the title of the news displayed
on the main page.  

Templats should include html and javascript if you like.  Adding javascript to it is 
your choice. there should be no problem doing this.  The folowing is a list of fields
that you can use in your template

{start_date}    - start date supplyed when you created your news
{end_date}      - if you gave an end date to your news
{news}          - the news its self
			note: if you put a url for example 
			http://www.kill-9.dk
			in your news it will automaticly be changed to a link
			if you put an email address for example
			kill-9@kill-9.dk 
			in your news it will automaticly be changed to a mailto link 
	
{news_number}	- for use with show_news_one.php
{topic}         - the topic or title for your news.
{picture}       - if you uploaded a picture
			note: if you set a link to the picture it will automaticly
			be added so that when someone clicks the picture the new
			page will open 
{file}          - if you uploaded a file



All templats must be stored in the /templates directory under php-news.  If you create
a really good template please send it to me and i will gladly included it in the script
for others to use.

Curntly in the templats directory you will find sevral template examples refer to them
when creating your template or feel free to just use an existing one.

test.tmpl is a very simple example of a template. 
table.tmpl is the version that is curntly being used on kill-9.dk
new_window1.tmpl is an example of how to use show_news_one.php 





