View Single Post
  #2  
Old 04-18-2007, 07:54 AM
Pablo's Avatar
Pablo Pablo is offline
Moderator
 
Join Date: May 2005
Posts: 509
Default Re: Guestbook in BV 9

Here's the unofficial documentation:

PHP Guestbook
This object implements a simple PHP guestbook for BlueVoda.

Features:
  • No database is required, a text file is used to store the messages on the webserver
  • Password protected admin area to delete posts
  • HTML code stripped
  • BBCode support
  • Easily change text strings, fonts, colors and other properties of the guestbook.
  • Uses an inline frame to display it’s contents, so you can put it anywhere in your website!
  • Customizable date format.
  • Logs IP address, only visible for administrators (plus who is lookup link!)
Description of the Properties
Title
Specifies the title of guestbook.
Name field Specifies the label of the 'name' field.
Subject field Specifies the label of the 'subject' field.
E-mail field Specifies the label of the 'e-mail' field.
Website field Specifies the label of the 'website' field.
Message field Specifies the label of the 'message' field.
Submit button text Specifies the text of the 'Submit' button.
Reset button text Specifies the text of the 'Reset' button.
If you leave the following values empty, the field will not be displayed in the guestbook: Subject, E-mail, Website, Reset.

Style
Background color
Specifies the background color of the guestbook.
Background image Specifies the background image of the guestbook.
Show border Specifies whether to display a border around the guestbook.
Link color Color of links within the guestbook.
Hover color Color of hover links within the guestbook.
Fontstyles Specifies the font styles of the Title, Messages and Message headers.

Input Form style
Background color
Specifies the background color of the input form.
Border color Specifies the border color of the input fields.
Fontstyles Specifies the font styles of the form controls.

Show Admin Link
Enable this option to display the 'Admin Login' link on the bottom of the guestbook.
Clicking this link will allow you to login as Administrator and remove messages from the guestbook.
If you decide not to display the admin login link, you can login with this URL:
http://www.yourwebsite.com/guestbook.php?admin=login

Admin Password
Specifies the administrator password. The default password is 'password'

Allow URLs
Specifies whether URLs will be displayed as clickable links.

Allow BBcode
Specifies whether BB codes can be used in a message.
BBCode is a way of putting special effects into your text.
If this option is enabled these BBCodes are available:
Bold text
Italic text
Underline text

Date Format (PHP syntax)
Specifies how the message date will be displayed in PHP syntax.
Default: 'm/d/Y H:i:s' -> 12/31/2007 12:01:33

Text filename
Specifies the name of the text file (database) where the messages will be saved to.
Default: ./guestbookdb.php

PHP script name
Specifies the name of the guestbook script. Do not include the path!
Default: guestbook.php

Extra instructions:
1. Upload 'guestbookdb.php' on your server.
2. Change the permissions of 'guestbookdb.php' to 777 otherwise you won't be able to write data.

You can use the FTP Manager add-on (BlueFTP) to upload and change permissions of the 'guestbookdb.php' file.
a) Login to the FTP server of your website using the BlueFTP.
b) Browse to the folder where you've published the guestbook.
c) Upload 'guestbookdb.php'
d) Select the file and use Properties to set the permissions to 777
You only have to do this once.

__________________
Forum Moderator
BlueVoda Specialist