![]()
WWWBoard is an interactive message board which can add new dimension to an otherwise two-dimensional web site. WWWBoard visitors can post new messages and allows others to respond directly beneath the original post. The site webmaster will have password protected access to an administrative interface to maintain board content.
WWWBoard Generator
In light of this script's popularity, we have installed a
program generator to eliminate manual installation efforts. To install the
WWWBoard script within your web site, simply access your account Control
Panel and select the WWWBoard Installer option.
*** Important ***
The WWWBoard Installer will overwrite previously installed WWWBoard
scripts.
Special Notes
First time users should use the WWWBoard Installer within the respective account Control Panel to install the WWWBoard program. The instruction contained below is being provided for those whom wish to modify the scripts installed by the WWWBoard Installer or to install multiple versions of this application.
Installation Procedure
#!/usr/local/bin/perl (edit nos. 1 & 2 above)
# Define Variables (wwwboard.pl) $basedir - The system location of your WWWBoard directory $baseurl - The URL to the WWWBoard directory $cgi_url - The URL to the WWWBoard script
The first variable calls for a system path which is not the same as a URL. If your domain name was yourdomain.com the system path would be /u/web/yourdo where "yourdo" is the account userid.
As such, the Define Variables section of the wwwboard script would follow this format:
# Define Variables (wwwboard.pl) $basedir - "/u/web/<userid>/wwwboard"; $baseurl - "http://www.yourdomain.com/wwwboard"; $cgi_url - "http://www.yourdomain.com/cgi-local/wwwboard.pl";
Be sure to substitute your domain name and userid in the example above. Although Matt's code is accurate, we recommend using the Perl Script checker within your account Control Panel when installing any Perl script.
# Define Variables (wwwadmin.pl) $basedir - "/u/web/<userid>/wwwboard"; $baseurl - "http://www.yourdomain.com/wwwboard"; $cgi_url - "http://www.yourdomain.com/cgi-local/wwwadmin.pl";
<FORM METHOD="POST" ACTION="/cgi-local/wwwboard.pl">
e.g. /wwwboard/messages
Next, click the directory name to display files within the wwwboard directory. Set public write access for both the wwwboard.html and data.txt files as well as the messages directory. This will allow the Perl script to append data to both wwwboard.html file and data file.
You can test the script by referencing the wwwboard.html file via the web.
Special Notes