sNews cms top

Welcome to sNews Content Management System

What is sNews?

sNews is a completly free PHP and MySQL driven tool for publishing and maintaining news articles on a website. Integrating sNews into your existing design is simple, but you could also use sNews on it's own, as a simple Content Management System. Consisting of only one file, sNews is extremely lightweight, very easy to install, and easy to use via a simple web interface.

Why should you use it?

sNews is both template independant, and standards compliant, and having only one file means you can redesign your site whenever you want. We are constantly working on sNews development, which means that as new features are added, all you have to do is download and install the newer version. Your site and design will not be affected.

How to use it?

You can place the functions provided in the index.php script into your existing design, or you can use the design already provided in the download package. Solucija itself is an excellent example of an sNews driven site.

sNews Features

  • Search Engine (User) Friendly URLs
  • Password protected live administration
  • Template Independency
  • Categories (add, edit, delete, publish, unpublish)
  • Articles (add, edit, delete, position, publish / unpublish, future posting)
  • Comments (enable / disable, freeze / unfreeze, edit, delete, bad words filter)
  • Easy external files inclusion
  • External language file support
  • Images (attach, upload, view, delete)
  • Archive
  • Search Engine
  • Contact Form
  • RSS Feed

Technical specifications:

  • Extremly lightweight (only 1 file)
  • CSS and XHTML 1.0 Valid
  • PHP 4.3.x and MySQL database required

Using sNews with a CSS template

Step 1:

If you have a html template, rename it to php (eg. rename index.html to index.php).

Step 2:

Now we have to start the session and include snews.php. Paste this on the very top of your index.php:

<? session_start(); include ("snews.php"); ?>

Step 3:

Title function sets your page title and base directory. Call it on top of your head area.

<? title(); ?>

Step 4:

sNews should now work with your template. All you need to do now is include some content functions depending on your needs. Here is the list of functions you can use:


Center function
Displays center articles and other main content on your page. Also, it's used for displaying administrative area, archives, contact and other. Enter the n of articles you want to display on your front page.

<? center(n); ?>


Left and Right functions
Displays left and right articles which are set when creating or editing articles. Note that you don't have to acctually position them that way, they are just called left and right.

<? left(); ?>


<? right(); ?>


Menu items
Displays articles that are positioned as menu items. Also, administrative options, archives and contact are listed here.

<? menu_items(); ?>


Categories
Displays a Home link and all created categories

<? categories(); ?>


Search Form
Displays a search field and a search button.

<? searchform(); ?>


Login / Logout link
Displays a Login link and a Logout link when you're logged it.

<? login_link(); ?>


New Articles
Displays a list and links to newly published articles. n tells it how many articles to display on the list.

<? new_articles(n); ?>


Past Articles
Displays a list and links to past articles. It takes m articles starting from n.

<? new_articles(n, m); ?>

Download sNews, it's free!

sNews 1.4

Version 1.4, single file release
Last Update: 16. Feb, 2006
No Search Engine Friendly URLs

sNews 1.3

Version 1.3, single file release
No Search Engine Friendly URLs

sNews 1.2

Version 1.2, three-files version
Contains a separate administration area

Other sNews versions

sNews 1.4 TXTDB

PHP version which uses files to store database data.
Converted by: Dobey
PHP-TextDB API
Last Update: 6th March, 2006

sNews licence

sNews is licenced under a Creative Commons Licence, see http://creativecommons.org/licenses/by/2.5/ for more info.





back to top