News System
Features:
- Single user account.
- Data is stored in text files.
- Formatting text by BBCode.
- Posts can be filed under multiple categories.
- Custom publishing date.
- Automatically generated archives and RSS feed.
- Time zone and locale adjustment.
- Flood protection, word filter, IP blocking.
- Spell-check (PSpell required).
- Allow/disallow comments per post.
- Search-engine friendly URLs.
- Customizable templates.
Download:
Version 1.3.4 (45 KB) 18 Jun 07 (changed encryption function from crypt() to md5())
You do NOT need to upgrade to v1.3.4 if v1.3.3 works fine on your server.
Demos:
In action - Control Panel (demo/demo)
Licence:
Upgrade from version 1.0, 1.1 and 1.2:
- Extract the new version on to your local machine.
- In the 'data/' directory, delete '.htaccess', 'users.txt', 'posts/', 'comments/' and 'categories.txt' (v1.2), 'categories/' (v1.2).
- Upload everything to your server and overwrite existing files.
- Continue from step 2 of the new installation.
New Installation:
- Extract all files to a directory on your server.
- In 'data/' directory:
- CHMOD all subdirectories: 'posts/', 'comments/' and 'categories/' to 777.
- CHMOD all text files: 'config.txt', 'logs.txt', 'users.txt', 'categories.txt' and 'post_locked.txt' to 666.
- If you don't need search friendly URLs or don't know what ".htaccess" is, SKIP step 3.
- Modify the "htaccess.txt" file included, then copy it to the directory where the page displaying news entries is placed, and rename it to ".htaccesss".
- Log into the News Control Panel with the default account "demo/demo".
Usage:
<?php
include('PATH/TO/NEWS/news.php');
// To display the news:
show_news(NUMBER);
// where NUMBER is the maximum number of the latest
// entries.
// OR
$categories = array(CAT1, CAT2, ...);
show_news(NUMBER, $categories);
// where CAT1, CAT2, etc. are the IDs of the categories
// you want to display.
// To display the archive list:
show_archives();
// To display the category list:
show_categories();
?>
- Link to the display template's style sheet in the <head> section:
<link rel="stylesheet" type="text/css" href="PATH/TO/NEWS/display/basic/style.css" />