Installing Smart Guest Book for Access Database: 20/01/2001 A.Contents of the zip file In the zip file you downloaded you will find the following files: 1. SmartGuestbook.mdb (Access Database) 2. SmartGuestbook.swf (Flash Interface) 3. SmartGuestbook.asp (ASP file where the Flash interface is placed) 4. SmartGuestbookCode.asp (ASP file accessed by the .swf file) 5. Javascript.txt (Head Content Javascript code if required as described below) 6. CloseWindow.htm (to automatically close the window) Note: If you have your own site and want a quick installation just follow steps 1 and 3. That's lt! B. Installation steps 1. Important: Place all the above files in a folder called SmartGuestBook under your site root. Very Important : Please give the folder write permission. 2. If your site is being hosted by another site i.e. your site is a freely hosted site, you will need to make a few changes to the pages to give the correct path to the SmartGuestBook files : a. You will need to change the path to the access database (SmartGuestbook.mdb) in the SmartGuestbookCode.asp page. This can be done very simply by opening these pages and going to the top of the code. Here you will find the following lines: '------------------If your site is hosted by another site then change your path in the DBQ value below i.e. in place of Server.MapPath("/SmartGuestBook/SmartGuestbook.mdb") type in Server.MapPath("/Your_site_path/SmartGuestBook/SmartGuestbook.mdb")----------------- strDB = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/SmartGuestBook/SmartGuestbook.mdb") & ";DefaultDir=" & Server.MapPath(".") & ";DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5" '------------------End of Database connection string ----------------- Just give your database's (SmartGuestbook.mdb file's) path in the DBQ value i.e. in place of Server.MapPath("/SmartGuestBook/SmartGuestbook.mdb") type in Server.MapPath("/Your_site_path/SmartGuestBook/SmartGuestbook.mdb"). Important : After finishing the installation, if the guestbook doesn't save and display entries in and from the database please make sure that the database folder has been given write permission. b. You will also need to change the path to the flash file (SmartGuestbook.swf) in the SmartGuestBook.asp page. If you are familiar with Macromedia Dreamweaver or any other HTML tool that allows you to place a Flash movie in your page then open the SmartGuestBook.asp page and give the correct path to the SmartGuestbook.swf file instead of the path '/SmartGuestBook/SmartGuestbook.swf'. 3. Now you are ready to call your Guestbook from anywhere in your site. To do this give the following link: Guest Book Note: for a site hosted by another site use the following link with your correct site path :- Guest Book 4. If you wish to keep the guest-book inside one of your site pages(i.e. the guestbook will be visible always on the page instead of popping out on clicking a link) then you should follow the following two steps: a. Retain the code between the tags. To do this just copy and paste all the code in the Javascript.txt file (also present in the SmartGuestbook.asp page) in between the Head tags of your alternate page. b. Now place the SmartGuestBook.swf file in your page body by adding the following code wherever you want the Guest-Book to appear. Change the path to the param tag named 'MOVIE' and embed tag 'src' value for a site hosted by another site. -------------------------- -------------------------- c. Place this page of your site inside the SmartGuestBook folder. CAUTION: Apart from the path to the SmartGuestbook.swf file do not change the above pasted code as the guest-book will not function properly. 5. The CloseWindow.htm page can be used to close any web page in your site. Use it if required by using a simple link as below. Close Good Luck and Best Wishes from the Smart Webby Team! If you have any problems or suggestions please contact us at info@smartwebby.com. SmartWebby.com - 2001 All Rights Reserved. This product has been created by SmartWebby.com for free distribution. We will not be held responsible for any unwanted effects due to the usage of this product or any derivative. No warrantees for usability are given or implied.