If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
A second guestbook in one domain  XML
Forum Index » Support Forum
Author Message
Anonymous



What is the simplest way to have a second guestbook - I have one already working fine. but want a second separate one to be called from a different page to be a different guestbook. IS it possible, e.g change DBname, but waht else must be changed as well.

Thanks - don't know MySql very well
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

All you have to do is give it a separate databse name / database and upload all the guestbook files to another folder than your current one so they don't conflict with each other.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
.: JAY :.
Beginner
[Avatar]

Joined: 18/11/2002 20:15:25
Messages: 38
Location: USA
Offline

I think I answered this in spisas.com forums ...
Anyway, if you have only one database this is what you need to do :

Edit /admin/config.inc.php

$GB_TBL["data"] = "book_data";
$GB_TBL["auth"] = "book_auth";
$GB_TBL["cfg"] = "book_config";
$GB_TBL["com"] = "book_com";
$GB_TBL["ip"] = "book_ip";
$GB_TBL["words"] = "book_words";
$GB_TBL["ban"] = "book_ban";
$GB_TBL["priv"] = "book_private";
$GB_TBL["smile"] = "book_smilies";
$GB_TBL["pics"] = "book_pics";

Just change table prefix to whatever you want it to be.

Example :

$GB_TBL["data"] = "book_data";

change to

$GB_TBL["data"] = "secondbook_data";
[WWW] [MSN]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

You don't need to do that when it asks you for a databse name give it a different one than the first one you used. It DOESN'T matter about the tables name's since they will be contained within two completely different databases.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
.: JAY :.
Beginner
[Avatar]

Joined: 18/11/2002 20:15:25
Messages: 38
Location: USA
Offline

Yes you do if you only have one database.
[WWW] [MSN]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

True but he hasn't said he only got one though has he.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
.: JAY :.
Beginner
[Avatar]

Joined: 18/11/2002 20:15:25
Messages: 38
Location: USA
Offline

I'm sorry, should've explained.
I'm pretty sure that's what he posted in spisas.com forums about having only one database. But I could be wrong though.
[WWW] [MSN]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Oh, he posted over at spisas I haven't been there in a while as you can see I've been here helping out. Since I wrote those 2 manuals / guides no one seems to post here any more.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
.: JAY :.
Beginner
[Avatar]

Joined: 18/11/2002 20:15:25
Messages: 38
Location: USA
Offline

I try to be on both forums as much as I can.
[WWW] [MSN]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum