EpleBook
EpleBook is a PHP and MySQL powered guestbook. It has been tested on and should work with both PHP4 and PHP5.
Installation
- In the file create_table.sql you'll find the query to create a table in your database. In phpMyAdmin you can paste the query into the query-field, or simply point phpMyAdmin to the .sql-file
- Open config.php and change the values of the following variables:
- $adminPass = the md5-hashed password for the admin area. The default value is 'password'
- $sql.... = different data needed to access the mySQL database
- $topMenu = the HTML for displaying the menu at the top of each page within the script
- $limit = number of comments displayed on each page
- Everything else (functions and such) should be left alone unless you know exactly what you're doing :)
- Upload the files admin.php, index.php and config.php to the same directory. If you must separate them, you'll have to change some paths here and there
- In the zip-file you downloaded there will also be a style.css-file. This contains information
for the browser on how to display different elements in the guestbook. This can of course be changed to fit your needs.
You can copy and paste the contents of style.css into your own css-file if you have one
- Note: Everything in the css-file will only apply for elements inside the <div class="gbook">, except for the p at the bottom of the file. You probably have your own definitions of how the p-element should be presented, so just remove this from style.css if you don't want it to conflict with your existing CSS.
Changes in version 1.5
- Slightly changed the default look
- Fixed the 'really long words'-issue. Words longer than 30 (this can be changed) characters will now be split
- Changed the role of admin.php. Edit/delete functionality has been moved to index.php/main script file, while admin.php will be used to bad word administration, some database functionality, etc.
- Format of the dates on each entry has been changed from the ugly "2005-08-18" to the much nicer "August 18th, 2005". This is also possible to configure to fit your needs
- Added a small "Eplebook v1.5" link to the bottom of each page. Yes, you can remove it, but I sure would appreciate it if you didn't :)
- Admin can now choose between public and private email adresses. Public making them visible to everyone, private making them visible only to admin.
- Fixed the issue where someone just posted a comment, and then refreshed the page, would post the comment again