Copyright 2006-2009, myNET Internet Services
Flatfile based Guestbook Script
Demo
Installing
Unzip the "1book" folder and upload it to your website. Open guestbook.php and change the variable $adminpassword to a a new password. Change the permissions on data.php, userbans.php, and ipbans.php to 777.
To include the script in another page, you can use an iframe as follows:
<iframe src="/path/guestbook/guestbook.php" width="100%" height="300px"></iframe>
To access the admin panel, go to /path/guestbook.php?admin=1.
Multiple Guestbook Setup
The script will work out of the box as a single page guestbook. However, it will also work on multiple pages.
The data files are stored as data_blah.txt where blah is a unique identifier for the page. Create a file like this for each of your desired pages.
To include the guestbook in multiple pages, use the iframe code above, adding a "p" parameter to the URL:
<iframe src="/path/guestbook/guestbook.php?p=projects" width="100%" height="300px"></iframe>Replace "projects" with the name one of the names of the data files you created earlier (leaving out the data_ and file extension).
You should now see a different guestbook on each page.
Changelog
- v1.0.3 (June 28 2008): Added support for multiple guestbooks
- v1.0.2 (June 4 2008): Fixed a security problem... I wasn't thinking when I wrote the thing...
- v1.0.1 (May 25 2008): Fixed a bug related to editing posts
| Script Toolbox | |||
|---|---|---|---|
| Download | Visit HotScripts Page | Discuss 1Book | |




