Page 1 of 1

Guestbook

Posted: Sun Jan 13, 2008 6:50 am
by corpse
Can someone point me in the right place to be able to create a guestbook for a website.

Tried googling, but not the results I want. Thanks

Re: Guestbook

Posted: Sun Jan 13, 2008 7:52 pm
by corpse
I found some code that I uploaded, but when I click on sign guestbook, it seems to work but then it says there are no new entries.

This is what is shows to do. I have done everything except at the bottom where it says to use:

Link to http://www.... to sign guestbook

link to http://www.....to view guestbook


Where exacting do I put these links to view and sign?

To install :
~~~~~~~~~~~~
1. Open index.php with your favorite text editor and change some of the variables so that the script does what you want it to. They should be sufficiently documented in the program file.
2. Make a directory on your server where you want to put the script, eg. guestbook
3. Upload index.php (the guestbook script), image.php (image code generator), ardgb18.dat (guestbook data file), and spamwords.dat (spam words data file) to a directory in ASCII mode. Chmod ardgb18.dat to 666 (Unix/Linux only), to make the data file writeable or you will get writing permission error.
4. Upload all icons file in binnary mode. The directory structure should be like this :

/guestbook
|--index.php
|--image.php
|--ardgb18.dat
|--spamwords.dat
|--/imgs
|--del.gif
|--email.gif
|--homepage.gif


To use :
~~~~~~~~
Link to the following to sign :
http://www.yourdomain.com/guestbook/ind ... o=add_form

and link to this to view the guestbook :
http://www.yourdomain.com/guestbook/index.php

Re: Guestbook

Posted: Sun Jan 13, 2008 7:58 pm
by Foo
It just means that, on the rest of your website, you need to add a hyperlink to that address for people to be able to click on it and get to the guestbook.

if you put the guestbook files at the very root of your domain (not in a subfolder) then it's the first and only thing your visitors will see anyway (index.php will be loaded as the first page when visiting http://www.yourdomain.com).

Re: Guestbook

Posted: Sun Jan 13, 2008 8:04 pm
by corpse
Sorry, do you mean for example, on the home page when you click on the guestbook link, that link should go to http://www.... to sign guestbook.

If so how do I also put another link to
http://www.....to view guestbook


This means there are 2 separate pages....one to see and one to view?

Is this normal or am I missing something?

is there an easier code or is this OK?

Re: Guestbook

Posted: Sun Jan 13, 2008 9:50 pm
by Foo
Creating link to the first address would take a visitor to the page where they get to sign the guestbook.

Creating a link to the second address would allow them to see previous messages left on the guestbook.

Re: Guestbook

Posted: Sun Jan 13, 2008 9:51 pm
by Foo
And yes, they will be presented with different pages. They both come from the index.php file because it generates a different page based on the info it's given (the bit that says "do=add_form" tells it to show the form for adding an entry)

Re: Guestbook

Posted: Sun Jan 13, 2008 11:39 pm
by corpse
Thanks, one more thing.

The first link to the sign in page would go, for example, in the table link in the home page where now it has <a href"blah blah guestbok.html........right?


So where does the second <a href go?


abc it for me please.


and I would like them to open in separate windows. THis is the target"_blank" comand right?

Re: Guestbook

Posted: Mon Jan 14, 2008 3:28 am
by corpse
Figured this part out. When I click submit, I get an error message and then it says post has been added. But, back to the guestbook it says no entries have been made.

DOn't know how to post an attchment here.

Foo: can I pm you with my email and then I can send the attachment of the error message and hopefully you can advise what has gone wrong.