This text will try and help you learn how to add the new version of php-news to your site.


list_cat.php is an include file that will list your catagories and create links to show_news.php.  to add this to a page.  (note the page must be .php , .php3 or what ever your webserver recognises as php file.)
simply add this to the page where ever you like


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


test.php will give you an example of this.


show_news.php now requires eather a default news catagory or catagory_id to be passed to it.
if your user clicks on one of the links created in list_cat.php then catagory_id will be passed to it.  other wise you can set a default catagory in news.inc.  This will be used in the event that no catagory_id was passed to show_news.php.

how to pass catagory_id

use an anchor  linke list_cat.php does.
<a href=show_news.php?catagory_id=1>my_catagory</a>

the easyest way to find out what the catagory id is for a catagory is to run list_cat.php by its self and it will list all of your catagorys put the mouse over one of the links look at the bottom of your browser and you will see the catagory id for this catagory.



if this doesnt make any sence please feel free to post to the messagebord for php-news at 

http://www.kill-9.dk/PHP-News.php















