Title: @1 Event Publisher: Script installation Steps of installing the script.
Installation:
The installation procedures described below are the default setup. You may rename the filenames or folders or even change the folders' location if you are sure what you are doing:
eventpublisher.cgi:
1) Change the first line (path to Perl) of the script.
2) Go to STEP 2 in the "eventpublisher.cgi" script. Read the instruction there and modify the variables accordingly.
3) Create a folder "eventpublisher" (chmod to 777) under your root directory. Upload the script to this "eventpublisher" folder. Chmod the script to 755.
* You may also rename the script or upload it to your cgi bin (in case your hosting ISP does not allow scripts to be run outside the cgi bin - remember to configure the script accordingly under STEP 2).
4) Create a folder "icons" under the "eventpublisher" folder above. Upload all images and the "template.htm" file to this folder. Be reminded that images SHOULD NOT be placed INSIDE the cgi bin.
template.htm (Admin interface template)
eventpublisher_admin.htm (Admin form)
eventpublisher_usersearch.htm (Public search form)
eventpublisher_usersubmit (Public submission form):
- Modify the form action URL in ALL forms. Point it to your eventpublisher.cgi.
- Replace the URL "http://www.yourdomain.com/" in the files "template.htm" and "eventpublisher_admin.htm" to your domain.
- You may re-create your own template. Place +++ (three plus signs) at the location where you want the script results to be printed. See STEP 2 in the script for details.
- Upload "template.htm" to the "icons" folder. Upload all other *.htm forms to the "eventpublisher" folder.
Calling the events via an SSI tag:
This is how you call the events via SSI. Please note that "eventpublisher.cgi" in the SSI tag
must be changed to something like "../../eventpublisher.cgi", "../somefolder/eventpublisher.cgi", "eventpublisher/eventpublisher.cgi" ... or so on if it is not placed in the same folder as the script.
<!--#include virtual="eventpublisher.cgi" -->
Sorting:
1) By default, earlier news is displayed on top. To reverse this, change section J1 in the script from
@keepers=reverse(sort(@keepers)); to
@keepers=sort(@keepers);
Powered by Document Publisher |