Title: @1 Know Your Events: Script installation Steps of installing the script.
• One main script, events.cgi
• One main data file.
• One public search page and one admin page
• One result output template page.
Please refer to our CGI Scripts section.
events.cgi:
1) Change the first line (path to Perl) of the script.
2) Go to STEP 2 in the script. Read the instruction there and modify accordingly.
3) Upload this script to your cgi bin. Chmod to 755. You may also rename the script or upload it to somewhere outside the cgi bin provided that you configure it according under STEP 2 and that your ISP allows you to run scripts outside cgi bin.
admin.htm (admin form), user.htm (public search form):
1) Cut everything and paste into your existing web page (to suit your own layout).
2) Modify the form action URL in both form. Point it to your events.cgi.
3) Modify the URL of the link "List All Events" in the form user.htm.
template.htm:
1) Create your own template and place +++ (three plus signs) at the location where you want the script results to be printed. See STEP 2 in the script for details.
Required/Optional fields:
1) By default, field input for "Headline" and "Detailed News" are required during data entry. To make it an optional field, please read the instruction under section R4 of the script.
Sorting:
1) By default, news with latest entry date is displayed on top. To reverse this, change section J1 in the script from
@keepers=reverse(sort(@keepers)); to
@keepers=sort(@keepers);
Image display:
1) By default, the image is left-aligned. To change this, mofiy under section K15 the following codes:
print "<img align=left src=\"$ImageuploadURL$Image_Upload\"> \n";}
2) If you uploaded an image and your news text is too short, the next following news may start immediately next to the earlier image. This is because the earlier image is left-aligned. In this case, add a few "Enter" at the end of the detailed news for the earlier event.
Powered by Document Publisher |