LaNewsFactory User's Guide


Maintained by Christophe Brocas
10/10/2003

This is the LaNewsFactory User's Guide. It covers the installation, configuration and usage of the 0.8.5 LNF version.


1. Introduction

2. Installation

3. Configuration

4. News VS Forum

5. Access and posting Policy

6. Topics

7. Moderation

8. News management

9. RDF/RSS export

10. Customization : HTML templates

A. Appendixes

Final notes


1. Introduction

During 2000 summer, I start to search an easy to use and install software for web news management. I found a lot of interesting things with nice and sophisticated features. Unfortunately, almost all of them require MySQL or others RDMS software. Databases provide powerfull functionnalities but when you use a free ISP for example, MySQL is not often included. So, I start to code LaNewsFactory under PHP.

1.1 What is LaNewsFactory ?

LaNewsFactory (LNF) is a PHP web news and forums engine. It requires no database stuff, only a PHP enabled web server. LNF stores news in XML files.

1.2 Features

LaNewsFactory provides following functionnalities :

1.3 License

LaNewsFactory is free software distributed under the GNU General Public License (GPL). See the files "Copying" and "Copyright" supplied with the distribution for additional info. For more info on GPL, see the Free Software Foundation.

2. Installation

2.1 Getting it

LaNewsFactory can be downloaded from LaNewsFactory web site. New version announcement are made on freshmeat site and by lnfannounce mailing-list : to subscribe.

2.2 Requirements

The only thing you need is a PHP-enabled web server. But, I currently test LaNewsFactory under a linux 2.4.19 & Windows XP/ Apache 1.3.26 & 20 / PHP 4.2.3 & 4.0.6 configuration.

2.3 Installing LaNewsFactory

Installing LaNewsFactory is done via an unzip/untar of the distribution file in the directory you want to install it. Current distribution contains 4 directories :

IMPORTANT : your web server has to allow access to the LNF directory. If it is not configure for it, you have to configure your web server before starting using LNF.

That's all.

2.4 Upgrading LaNewsFactory

The most important change of the 0.8.4 version is the change of the PHP scripts file extension. To complete a migration of a 0.8.3 to 0.8.4, follow the following steps :

3. Configuration

3.1 First step

IMPORTANT : Don't forget the last /.

3.2 Permissions

If it is not already done, set the following permissions :

Setting permissions with your FTP program (courtesy of "gallery" program readme file): If you use CuteFTP or some other FTP program, you may need to hunt around a bit to find the CHMOD command. In CuteFTP, right-click the file you would like to CHMOD, select "Change File Attributes", then enter the mode manually (ie. 755) in the "Manual" text box. If you can't figure it out, try asking your ISP or reading the documentation for your FTP client.

3.3 Setting password

Because LNF uses PHP crypt function whose results have OS dependencies, you have to generate original password (value : LNF). Do the following tasks :

For security purposes, please change the original password by using the admin menu.

IMPORTANT : if you are into trouble with password, you can come back to original value (ie LNF) by copying "original-pass.php" on "pass.php" in LNf install directory (Site Admin password). For problems in topics, copy "original-pass.php" on "<topicname>-modpass.php" (topic moderator's password) or "<topicname>-pass.php" (topic admin's password) scripts.

3.4 Running LaNewsFactory

Now, you just have to type the following URL : http://.../lnf-directory/listdir.php. It is going to be the only URL you need to have access to all LNF functionnalities. Now you just have to go in the admin menu to create your first topic. There is no more default topic, you have to create it.




Select the "Login" item on the top of the screen. Choose Admin as login type and enter LNF as password or the value you set if you have already change it when it is asked to you (see Setting password). The only site options you can set are :


The rest of the configuration is available :

4. News system VS Forums system

LaNewsFactory allows you to choose between 2 behaviors :

5. Access and posting Policy

LaNewsFactory allows you to set your own access/posting policy on a site (news behavior) or on a topic basis (forum behavior). You can choose between the following rules :

When login is required, the user can choose to select the login type (reader, poster, moderator or admin) and type the corresponding password.


6. Topics

6.1 Understanding

What a topic is :

Topic options in a FORUMS site :


Topic options in a NEWS site :

6.2 Operations

List of the different possible operations (site admin toolbar displayed, TAKE CARE : see "Options" instead of "Topic/Site Options") :

7. Moderation

7.1 Understanding

Topic moderation status is the topic behavior against posting :

7.2 Operations

In fact, on unmoderated sites, news are directly written in the "news" directory. On moderated sites, news are written in "news/mod" directory.

8. News management

News management is the possibility of deleting/editing an already published news. Since 0.4.5 version, you can either select a group of news to delete them. You can also read a news to delete or modify it. Click on "News management" to do it.


Since 0.8.5 version, you have a "Trivial Edit" feature that provides a way to direct edit the source of the news. To do it, click on the link at the right of the news title.

9. RDF/RSS export

You just have to execute rss.php script from a browser or a PHP script. You receive then a file in RSS 1.0 format containing the first lines of each news. Interesting with RSS format is that RSS is a normalized (RSS 1.0 is at a specification proposal stage in fact) export format. You can trust it to run automated LNF import job from a script on another web site to display site headlines for instance.

10. Customization : HTML Templates

Since 0.6.1 version, LaNewsFactory's HTML aspect is stored under HTML templates files. Thoses files are in the "templates/lnf/template_name" directory. Look at the source of a LNF HTML page under your browser : comments will help you to identify the HTML template file to modify.

The 4 files allow you to set up your page : head.tpl, left.tpl, right.tpl and tail.tpl.To insert PHP coding, you can only do it in menu.php and tail.php scripts : follow the insertion tag.

For colors, I use 3 files (colour1.tpl, colour2.tpl, colour3.tpl) that I use in the PHP scripts. Change color values in it to set your LNF colors.

From a technical point of view, I use PHP FastTemplate library. Thank to Sascha Schumann for his clear and straightforward FastTemplate tutorial.

A. Appendixes

A.1 Infos sources

Main documentation is provided by this document.

Three mailing-lists are opened :

Subcribe.

A.2 Bug report

To make a bug report, use the LNF bug report tool and give :

Final notes

LaNewsFactory intends to be an usefull web news software with less product dependencies as possible. I am always interested by your suggestions and even more by code ;-) Just send me both to me. And, last but not the least, thank to Richard M. Stallman and the FSF crew for creating GPL without nothing could have been happened.

Christophe Brocas.

PS : Sorry for my english but I am french ;-)