########################################################################### # # # This script inspired by News ver 1.1b Written by Julian Figueroa # # 1997 - 1998 # # # ########################################################################### # COPYRIGHT NOTICE # # Copyright 1998 Richard Tirtadji All Rights Reserved. # # # # News_updater may be used and modified free of charge by anyone so long # # as this copyright notice and the comments above remain intact. By # # using this code you agree to indemnify Richard from any # # liability that might arise from it's use. # # # # Selling the code for this program without prior written consent is # # expressly forbidden. In other words, please ask first before you try # # and make money off of the program. # # # # Obtain permission before redistributing this software over the Internet # # or in any other medium. In all cases copyright and header must remain # # intact. # ########################################################################### # # # KKK KKK RRRRRRR # # KKK KKK RRRRRRRR Programmer : Richard Tirtadji # # KKK KKK RRR RRR Date : 01/04/99 # # KKKKK RRR RRR Version : 1.01 # # KKKKK RRRRRRR Title : newsupdater.cgi # # KKK KKK RRR RRR # # KKK KKK RRR RRR # # KKK KKK RRR RRR # # # # Mail:webmaster@kingrichard.hypermart.net # # http://kingrichard.hypermart.net # # King Richard Scripts # ########################################################################### # Version 1.01 # # * Top Story is now replace with Announcement # # * Headline is work like it should # # * Headline type is now set by the WebMaster # # * Headline have now have time stamp # # * Autolink is now using on|off button # # * Major Bugs fix # # * Check for subject and data before submission # # * Enhance the editing and reseting files # # # # Version 1.01 # # * Automatic archives # # * Password Protection # # * Build in form # # * Editing function # # * Color customize # # # # # # # ########################################################################### Pardon my English cause I am a non English speaker! Should u think you could help me improve this text files feel free to sent me the update version, Thanks. Question should be posted at our CGI Forum http://kingrichard.hypermart.net/lounge/cgi/ First edit your newsupdater.cgi make sure the first line directed to your perl directory Also edit the line as explained below #Your cgi directory without the "/" at the end #This is your CGI-BIN directory, leave the $datadir alone $cgidir = "/data1/hypermart.net/kingrichard/cgi-bin/freenews"; $datadir = "$cgidir/data"; #Your server local standard time #Your server standard time which depend on the area your server post the news #E,g. Pasific Standard Time (PST) $standard_time = "PST"; # Your home url # This is your home url, must start with http:// $home_url = "http://kingrichard.hypermart.net"; # Your members Author and E-mail list # Add as much members to your list make sure it wrote like the two example below seperate author and email using "|" @email_data = ('King Richard|webmaster@kingrichard.hypermart.net','John Doe|jdoe@somewhere.com'); # WebMaster name $webmaster_name = "King Richard"; # WebMaster E-mail # Make sure u have the \@ intact or the script will create and error $webmaster_mail = "webmaster\@kingrichard.hypermart.net"; # Current Headline link to the main news page (SSI) do not delete the "\#" # This is where headline page must search the link to the news page $HEADLINE_FILE_LINK = "$home_url/news.html\#"; # Top Headline link to the main top or news page (SSI) do not delete the "\#" # This is where headline page must search the link to the top or news page $HEADLINE_TOP_LINK = "$home_url/news.html\#"; # HTML setup (self explainatory) # background color of your news page (for preview and demo) $back_ground = "black"; # Header fonts f=face c=color s=size $font_f_header = "arial"; $font_c_header = "blue"; $font_s_header = "2"; # Text fonts f=face c=color s=size $font_f_text = "arial"; $font_c_text = "white"; $font_s_text = "-1"; # Time fonts f=face c=color s=size $font_f_time = "arial"; $font_c_time = "red"; $font_s_time = "3"; # referers site to avoid people submitting news other place # your protection from hacker a like @referers = ('http://kingrichard.hypermart.net'); # How many days do you want the news to be listed (default is four days) $NUMBER_OF_ARCHIVES = 3; # Turn the headline On or Off $headline_on = "1"; # On="1" Off="0" ########################################################################### Second, upload all files include in this zip files to /cgi-bin created /cgi-bin/data CHMOD to 777 cgi-bin |-----------------data 777-| | |autolink.txt 666 | |newsupdater.cgi 755 |scripts.txt 666 |jml.pl 666 ########################################################################### Then create the HTML page like this and called it index.shtml (SSI): P.S. Headline must be set "On" otherwise u will encounter error. News Alternative index.shtml (Headline set "Off") News ########################################################################### You could also create archive page called archive.shtml (SSI): Archive ########################################################################### What does AUTOLINK do? so when you activated the autolink then it should search your database. If it found it then it will post a link automatically. For Example: you type "King Richard Scripts" then it will post this King Richard Scripts AUTOLINK.TXT can be added or deleted depend on what you need Link Name::the url:: example: King Richard Scripts::http://kingrichard.hypermart.net:: ########################################################################### Important!! Announcement must be edited or reset them manually. Announcement will not go to the archive. Why? cause it is announcement and I don't see why it should go to the archive :) ########################################################################### There are so many way you could set the news display, so have fun and hope that this new version give your website a better look. Should you use the script please let me know cause I'm planning to put everyone to my client profile. That all folks have funs. Make sure u check this site up cause much script to come in 1999 regards, King Richard