Mega Font Download$9.99
Related Searches:News Pro 3.8 News Pro 3.8.zip News Free News Pro News Pro Download News 3.8 3.8 Pro
Name: News Pro 3.8 Size: 53.5 KB Type: Compressed (zipped) Folder Date modified: 7/8/2002 11:21 PM Date created: 8/19/2008 6:08 AM Date accessed: 8/19/2008 6:08 AM
Readme - NewsPro 3.8http://www.drizware.com/newspro/
*************************************************** DOCUMENTATION***************************************************
NewsPro's documentation is available at:http://www.drizware.com/newspro/docs/newspro_documentation.html
The above page contains better, prettier, and easier-to-follow installationinstructions that this readme. You probably want to look at it instead.
**************************************************** INSTALLATION SYNOPSIS****************************************************
Already *very* experienced with Perl scripts? Then follow these instructions:
Copy all files into a world-writable directory. Make ndisplay.pl, news.txt, nsettings.cgi, and newsdat.txt world-writable (CHMOD 666). Make newspro.cgiand viewnews.cgi executable (CHMOD 755). Launch newspro.cgi from browser.
Once set up, news will be written to news.txt, which can be included into anHTML page via any method which can include a normal text file. Do not use viewnews.cgi unless you have read this readme.
If you have any problems, read the full instructions below, which are about 20times longer and more detailed.
**************************************************** INSTALLATION****************************************************
***NEW, EASIER-TO-FOLLOW INSTRUCTIONS AVAILABLE AThttp://www.drizware.com/newspro/docs/newspro_documentation.html**
Installation is a simple, 4-step procedure, but you should read theseinstructions carefully. Make sure that you CHMOD all files as necessary.
Before requesting support, make sure that you have read through this wholedocument and the FAQ (http://www.drizware.com/newspro/faq2/).
There are some prerequisites to using NewsPro: you must be familiar with FTP,HTML, and hopefully have some previous experience setting up CGI scripts. Aswell, make sure that your web host supports CGI scripts -- many (in particularfree hosts) do not.
NewsPro will NOT work on the Tripod web hosting service.
# Parts of these instructions which most users will not have to read are# labelled with # signs, like this paragraph. If you have problems, read# these sections.
#### STEP 1###
First, change the first line in newspro.cgi and viewnews.cgi. It should be #!followed by the path to Perl 5 on your server. If you don't know the path to Perl 5 on your server, see your web host's support pages.
# Some servers also have Perl 4, an older version, installed. If you have# problems, make sure you're pointing at Perl 5.001 or higher, as NewsPro # will not work at all with Perl 4.## Users of the HyperMart web service should use #!/usr/local/bin/perl
For most users, this is all the text file editing that you have to do.
#### STEP 2###
Next, FTP all the files to your server IN ASCII MODE (*not* binary mode, orauto-detect). Your FTP program should have this as an option; if not, downloadWS_FTP LE (free) from http://www.drizware.com/. They should all go in the samedirectory.
IMPORTANT: If there's already a file called .htaccess in the directory you areuploading to, don't overwrite it.
# Most servers require that CGI scripts have a .cgi extension. All the# NewsPro CGI scripts have a .cgi extension. Many of NewsPro's files have# a .pl extension; these SHOULD NOT be renamed, as they are NOT CGI# scripts. If your server requires that CGI/Perl scripts have a .pl# extension, you can rename newspro.cgi and viewnews.cgi to newspro.pl and# viewnews.pl. DO NOT RENAME NSETTINGS.CGI! It isn't an executable CGI# file, despite the extension, and cannot be renamed.
Next, you must CHMOD files and directories. You should be able to CHMOD fromyour FTP client; if not, get a new one, like WS_FTP (link is above).
You do NOT have to CHMOD if your server runs the Windows NT operating system. Ifyou're not sure of which operating system your server runs, chances are it'sUNIX, which means you do have to CHMOD files.
# If you're using WS_FTP, use the following guide to translate CHMOD # numbers to the boxes in the CHMOD dialog box:# 666 = Read & Write for all three columns, # 755 = Read, Write & Execute for Owner, Read & Execute for Group & Other, # 777 = Read, Write & Execute for all.# To CHMOD in WS_FTP, right-click on a file and choose the CHMOD option.
First, CHMOD the NewsPro directory 777. (Some servers prefer 755 -- use this if you have problems.)
Then, you must CHMOD certain files:- newspro.cgi CHMOD 755 (or 777 if problems occur) - viewnews.cgi CHMOD 755 (or 777 if problems occur)- ndisplay.pl CHMOD 666 (or 777 if problems occur) - nsettings.cgi CHMOD 666 (or 777 if problems occur) - newsdat.txt CHMOD 666 (or 777 if problems occur) - news.txt CHMOD 666 (or 777 if problems occur)
#### STEP 3###
Now, access newspro.cgi via your web browser, e.g. athttp://www.drizware.com/newspro/newspro.cgi. It should display a login page.
# IF IT DOES NOT DISPLAY A LOGIN PAGE:## - If you uploaded a file called .htaccess in Step 2, delete it. NewsPro# will still work without that file.## - If it simply displays the source of the script, ensure that you have# CHMODded all the files correctly, and that if your server requires you# to place CGI scripts in a cgi-bin directory, you have done so.## - If you get the dreaded 500 Internal Server Error or 403 Forbidden,# then:# - Double-check all your CHMOD settings. Experiment with them...# - Ensure that the first line of newspro.cgi points to the # correct path to Perl on your server.# - Try running another CGI script (you can find one at# http://www.drizware.com/) in the same directory.# - See the Installation section of the NewsPro FAQ# at http://www.drizware.com/newspro/faq2/
At the login screen, type in 'setup' (no quotes) as the username, and leavethe password blank. Click Submit. The web-based setup procedure will begin, andinstructions will be provided as you go along.
You will be asked whether your site is commercial or non-commercial. Answerthis honestly! Not doing so is a violation of the license that you agree to byusing NewsPro, and by violating the license you can be barred from using thisscript at all. In particular, remember that sites with any paid advertisingplaced by the owner (i.e. not required by the hosting service) are consideredcommercial. NewsPro is still free for commercial sites, however they do have todisplay a small link to the script on their news page.
# One note for the web-based procedure: you will be asked for absolute# paths to three different NewsPro directories, the Program Files path,# the News Files path, and the Archive path. The Admin path is the# directory where you just copied all the files. If that admin path is NOT# a cgi-bin directory, it is generally best to make all three paths the# same. If, however, it is a cgi-bin directory, you may have server# problems if you keep your news files in it. Create another directory,# outside your cgi-bin, and CHMOD it 777. Set the News File and Archive# paths to that directory. #### STEP 4###
At this point, the NewsPro script will have been installed. Next, you need toset up your pages to work with NewsPro. NewsPro will write your news to the filenews.txt, in the directory you specified as your HTML directory during setup.You must make sure this file exists and is CHMOD 666 or 777 (you should havedone this during file copying). This file must be "included" in your pages viaSSI (Server Side Includes) or any other method which can include a text fileinto an HTML page.
In order to use SSI, you will probably have to give your HTML page a .shtmlextension.
To include your news in your page, insert the following codeinto your page where you want the news to be:
<!--#include virtual="news.txt" -->
This assumes that news.txt is in the same directory as your page. If news.txtis, for instance, located athttp://www.drizware.com/mypage/cgi-bin/newspro/news.txt, and the file you'reincluding it in is in any other directory on your site, use:
<!--#include virtual="/mypage/cgi-bin/newspro/news.txt" -->
NOTE: When using server-side includes and "#include virtual", do not useabsolute paths. Simply use the URL of the page, minus http://www.drizware.com, asin the example above. If you do need to use absolute paths, use "#include file"instead.
# TROUBLESHOOTING: If you've added news, built news, and followed these# instructions and you still don't see the news on your page...# - If you don't see ANYTHING where the news should be, your# server is not looking for server-side includes in that file. Try# giving the file a .shtml extension. If that doesn't work,# contact your system administrator. If you can't use server side# includes, you can use some of the features of the script via# viewnews.cgi; replace your news page with a link to# viewnews.cgi?news. You can also use any other method of# including a text file into a page. For instance, try renaming# your news HTML file news.php3 and inserting the line# <?php include("/absolute/path/to/news.txt"); ?># where you want the news to be.# # - If you see [an error occurred while processing this directive] # or something similar, the server can't find the file it's trying # to include. Try using # <!--#include file="/absolute/path/to/news.txt" -->.# If that doesn't work, make sure that your news files directory # is not inside your cgi-bin.
That's it! NewsPro is now set up for basic operation. For more advancedinformation, visit the NewsPro web site athttp://www.drizware.com/.
**************************************************** USAGE****************************************************
This program was designed so that basic usage (adding, building, and deletingnews) wouldn't require any explanation. If that's all you need to do, and youdon't need any extensive customizations to the news style, you can probably stopreading here. An explanation of more advanced features follows.
One important note is to be very cautious when creating new users and givingthem Webmaster privileges. A user with Webmaster privileges cannot be deleted,and they can change all the settings. Be careful!
To edit your news style, you can simply edit via the text box in ChangeSettings. Any editing of news style requires basic knowledge of HTML, by theway; this is a prerequisite to making a decent web page in any case. Manytutorials are available on the web if you'd like to learn.
More advanced editing - anything other than raw HTML - can by done by editing ndisplay.pl. The box in Change Settings is a simplified interface to the ndisplay.pl file; once you have edited it manually, you can no longer use Change Settings to change the style. For examples of editing ndisplay.pl, see the Advanced section below.
In NewsPro, all news is kept in a database (newsdat.txt). News is neverautomatically deleted from that file, even if you have auto-hide orauto-archive enabled. If you have auto-hide enabled, that simply means thatold news will not be displayed to viewers of your page. If you later disableauto-hide, that news will reappear.
The feature which needs the most explanation is archiving. It works as follows:- If you choose to archive in one single file, your archive will be created in afile in your archive directory called archive.txt. You must include this in apage as with news.txt.
- If you choose to archive in monthly files, things get a little morecomplicated. Because it would be extremely inconvenient to have to create a newHTML file and include a text file in it each month, NewsPro will create HTMLfiles as well as text files.
It will create, for each month's archive, both a HTML file (arcmonth_year.html)and a text file (arcmonth_year.txt). The text file will be like the news.txtfile: just the news. The HTML file will be based on the file archive.tmpl. Youcan customize archive.tmpl to suit the look and feel of your site. Simply insert<InsertDate> into archive.tmpl where you want the month of the archive toappear, and <InsertNews> to insert the archived news for that month.
As well, it will create a page that links to all the different monthly archives.This file is called, by default, archive.html. It is based on arclink.tmpl:<InsertLinks> in this file will be replaced by the links to the monthly archivefiles.
Also, remember that this archiving will ONLY be done when you choose Build Newsfrom NewsPro.
**************************************************** ADVANCED****************************************************
For much more information, and examples of customization (i.e. how to make thedate appear once above all the news for a day, how to add your own fields),visit the following URL:
http://www.drizware.com/newspro/advanced.html
The best source for information about customizations is the NewsPro forum at:
http://www.drizware.com/newspro/forum/forum.cgi
Search through previous messages, and if you don't find an answer, post yourown.
*************************************************** VIEWNEWS.CGI***************************************************
Viewnews.cgi is a separate script that allows your users to interact with yournews database. It is completely optional, and many users don't even install iton their servers. While it shouldn't be too difficult, it is notself-explanatory like newspro.cgi. It is not very well documented, but here is abrief run-down of what it can do.
GENERAL: The script must be in the same directory as newspro.cgi, npconfig.dat,etc. By default, the script generates very plain-looking and fairly ugly pages.To configure the style of script pages, edit the file viewnews.tmpl. It containsbrief instructions as a comment inside; basically, it is just a HTML file with<InsertTitle> and <InsertContent> in the appropriate places.
** The viewnews.tmpl file applies to every page OTHER than the one generated ** when viewnews.cgi is called directly, without any parameters. Viewnews.cgi is** intended to be called directly only when including it into a page via** server-side includes, and of course when including it into another page there** is no need for a template file.
SEARCHING: The most-used function of viewnews.cgi is to allow users to searchthrough your news. The search function is fairly primitive, but... it works.There are two ways of accessing it. The first is via a simple search form. Theeasiest way to set up this form on your page is to accessviewnews.cgi?dispsearchform from your web browser, and cut-and-paste the HTMLcode it produces. Note that the searchfield list box is completely optional, andin fact most of the time it's better left out. The second way to access thesearch function is by calling the script with ?search followed by the searchterm. For instance, if you want to search for the word "strawberry", you woulduse URL http://your.server/viewnews.cgi?searchstrawberry This is useful mainlyfor links from your page; for instance, you could set up your news so that whena user clicked on the name of the news author, every news item which includedthat author's name would be displayed.
DYNAMICALLY GENERATED NEWS: Viewnews.cgi can be included via SSI (<!--#includevirtual="viewnews.cgi"-->) to display the latest news on your page. This behavesalmost exactly like news.txt, except it generates the news every time fromnewsdat.txt (news therefore shows up as soon as it's submitted, you don't needto build news). In general, using the standard news.txt is faster, more secure,and easier on your server. To enable this feature, set the $VNSSI variable nearthe top of viewnews.cgi.
E-MAIL NOTIFICATION LIST: Users can add or remove themselves from your e-mailnotification list (provided you have installed the e-mail notification addon).For a cut-and-paste example of the form used to do this, visithttp://your.server/viewnews.cgi?emaillistform
VIEWING SPECIFIC NEWS ITEMS: Viewnews.cgi can be called in the following way todisplay only certain news items: http://your.server/viewnews.cgi?newsstart0end6which would display news items 0 through 6. Your first news item is number 0.viewnews.cgi?newsall will display every single news item.viewnews.cgi?newsid9278987,4563, will display the news item with ID9278987,4563,
VIEWING NEWS ITEMS BY DATE/TIME: viewnews.cgi?archive1998-12-20to1999-5-13will display items in that date range (December 20, 1998 to May 13, 1999)viewnews.cgi?archivepast3days will display items from the last 3 days.The same results can also be achieved using a form. For cut-and-paste examplesof these forms, go to viewnews.cgi?disparchiveform
! Visit CONFLICT2K.COM.URL.htaccessarchive.tmplarclink.tmplndisplay.plnews.txtnewsdat.txtnewspro.cginpa_add.plnpconfig.plnplang.plnplib.plnsettings.cgireadme.txtviewnews.cgiviewnews.tmpl
Price: $0.00