tNews Version 0.95 Beta README
Copyright 2000-2001 Stephen G. Walizer aka Technomancer all rights reserved.
| License |
|
This software is licensed under the GNU GPL. See the included file GPL for license details. |
| Bug Reports |
|
Send bug reports or questions to technomancer@technomancer.cjb.net |
| About |
|
tNews is a set of PHP3/4 scripts designed to provide basic news headline support for websites. The system uses HTML based templates to specify formatting of news pages, providing complete control of page appearance to the webmaster. The system's backend is provided by a MySQL database, and support is included for generation of both news and old news pages. News HTML pages are only regenerated when changes are made to news headlines, so end users suffer no delays caused by database access or parsing of scripting code. The most current version of tNews is available at http://technomancer.cjb.net. |
| Installation |
|
Installation of tNews consists of the following steps:
|
| Data Import/Export |
|
Starting with the 0.95b release tNews now allows you to export your data for import into another tNews installation. To export your data make sure PHP has write permissions for the directory tNews is installed in. Once this is done simply click the Export DB Table Data link in the tNews menu. This will generate a script called tn_import.php which contains your database data and code to insert it into an existing tNews installation. To import your data into a new or existing tNews installation simply copy the tn_import.php file into the tNews install directory and click the Import DB Table Data link in the tNews menu. (If you are importing data into a new installation, be sure you have built your database tables using the Build DB Tables link in the tNews menu before trying to import.) |
| Usage |
|
tNews is very easy to use. Simply load index.html in the tnews directory in a web browser and select the desired function. The main web page contains options to add news, edit existing news, mark news deleted, undeleted deleted news, and purge deleted news. The only option that is not really self explanatory is purging deleted news items. Deleted news items are simply marked as deleted and left in the database, allowing them to be undeleted later. Selecting purge permanently removes all deleted all from the database. Generation of news and old news HTML files is performed automatically, as are moving news items from news to old news once the news page contains more than max_news_items set in tnconfig.inc. For more information on tnconfig.inc and on configuring tNews, see the INSTALLATION section of this document. This release includes a shortcut for creating urls in headlines and news items. The function to do this has two format, one with a target and one without: url(url,name,target); url(url,name); When using these functions they must be entered exactly as above. Do not place spaces between the arguments. To give a concrete example: This is a link to url(http://slashdot.org,Slashdot,_blank);, a linux news site. would be converted to This is a link to Slashdot, a linux news site. when the news page is created. |
| Template Files |
|
Template files provide complete control of news headline generation. A tNews template is simply an HTML file which includes some custom tags. These custom tags are as follows:
|