wcBasic: html-guestbook
Disclaimer
This should be a working program, it runs on my own BBS and it works fine.
No hangups, no lockups, and it does what its suppose to. On your system, I will guarantee nothing, but to take up very little space on your hard-drive.
What's this?
A Guestbook that you can customize to the look and feel from your website. Just edit the templates.
Files included in the archive
guestbook.htm
|
used to display the guestbook entries
|
guestbook_add.htm
|
used to add a new entry
|
guestbook_delete.htm
|
used to display an entry to delete
|
guestbook_edit.htm
|
used to edit an entry
|
guestbook.css
|
the Stylesheet to easy customize the look
|
dot.gif/dot2.gif
|
Graphic to delete/edit a guestbook entry
|
html-guestbook.wcx
|
the main program
|
readme.txt
|
this file
|
Install
The installation is pretty simple:
- Create a new directory in your template directory an call it "Guestbook"
(c:\wc5\http\template\guestbook)
- Copy all *.htm files to this directory
- Copy guestbook.css to the public http directory
(c:\wc5\http\public)
- Copy html-guestbook.wcx to the wc5 program directory
- Copy the two GIFs to the public image directory
(c:\wc5\http\public\images)
- Create a link from your website to "/public/code/html-guestbook"
- If your Sysop security profile isn’t named “Sysop” you have to edit the templates and change @ IF user.security="Sysop" @ to the exact case of your profile name.
That's all!
Uninstall
Delete the above files and then go to the wc5\data directory and delete the guestbook.* files.
Using it
As you can see, there are "delete" and "edit" images displayed.
To delete or edit an entry in the Guestbook I used the follwing logic:
- You are in the "Sysop" security profile and logged in:
you can delete and edit all entries.
- You're a normal or anonymous surfer:
the IP is stored in the database and just these IP's can edit or delete an entry.
I know that the proof of the IP is not the best way at all to control the access.
History
1.1 |
Please note: you must have AUP 449.5 or newer for this update
Bugs fixed:
- Edit/delete entry didn't work if your Sysop Profile wasn't named "Sysop". This is now fixed an can be lower/uppercase.
Note: Edit the templates and change @ IF
user.security="Sysop" @ to the exact case of your profile name.
- Display of date and time in the guestbook_edit.htm and guestbook_delete.htm was always the actual date/time instead of the entry time. Edit your files and rename @ SUB Date @ to @
SUB gbDate @, @ SUB Time @ to @ SUB gbTime @ and the input fields NAME="Date" to NAME="gbDate" and NAME="Time" to NAME="gbTime"
Update from 1.0:
- Replace html-guestbook.wcx in your wc5 program directory
- Edit guestbook_edit.htm and guestbook_delete.htm as described above or replace the original template files with the ones in the new zip file
|
1.0 |
This is the initial release and my first try with wcBasic and HTML-Templates. This is written in wcBasic and compiled with v5.
|
Sites using html-guestbook
“The On Ramp” Memorial and Prayer Book
Anything Goes! BBS
TCL BBS
Tequila Nights BBS
Lueders Avoca On-Line
Thundercomm Online
|