Page 1 of 1

multiple guestbooks on one website

Posted: Mon Jan 11, 2010 4:45 pm
by mek113
Script URL: ?
Version of script: 1.7
Hosting company: Hostmonster
URL of phpinfo.php: general question
URL of session_test.php: n/a
What terms did you try when SEARCHING for a solution: multiple guestbook for funeral home

Write your message below:

A funeral home has asked me to develop a guestbook for posting condolences for their deceased. This would require a separate guestbook for each of the deceased persons. Is this possible to set up using this script?

Posted: Mon Jan 11, 2010 5:10 pm
by Henrie
As the script is now, it uses a textdata file that is set in a settings file, The settings file is called from the gbook.php file.
It is not possible to use a different data file by calling a different link to the gbook.php file (although i am sure the guestbook could be modified to work that way).

For now you would have to set up a different folder for each guestbook and call that folder.
Or create separate gbook.php files (for example gbook1.php; gbook2.php) that each have a different setting inside to call a different settings.php file (for example settings1.php; settings2.php).

So not a good out of the box solution for what you want, but doable if you don't mind editing the script a little.

Greetings,
Henrie

Posted: Mon Jan 11, 2010 5:24 pm
by Klemen
If you are going to have a large number of guestbooks you might be better off using a MySQL script and modify it to accept guestbook username as an URL parameter to avoid installing 10 (100, 1000, ....). copies of the same script on the server.

Posted: Mon Jan 11, 2010 5:40 pm
by Henrie
I think you are right Klemen.
Plus i think a condoleance register creates a lot of posts in a small time. Which leads to a bigger chance of corrupting the text database. A MySQL can handle that better.