Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
I was wondering if there was an easy way of say having 2 different installations and splitting the Post database (so 2 different DBs for the installations) but the both of them use the same username database. Do i need to edit each file of one of the installations? If anyone has done this please let me know.

Thanks

Jason Porembski
Magicia (WGNet CEO)
<a href="http://www.world-gaming.com">http://www.world-gaming.com</a>

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I think Stratics might do something like this but I'm not sure. Right off hand I think you would need to edit each file that queries the w3t_Users table. You would probably need to open up the database connection to the database that contains the common w3t_Users table and then query that database instead of the default one.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Hmm I think you have it reversed. I want to maintain the same User tables but not the posts and catagory ones.

So lets say for argument sake I wanted to have 2 different boards. One called Automotive and another called Cats.

Obviously I don't want the cats catagories to show in automobiles and with automobiles in cats. But I want to make it simple for my users so that they have the same login information for both boards.

So my question is which tables have to do with user data that shouldn't be changed.

Jason Porembski
Magicia (WGNet CEO)
http://www.world-gaming.com

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Unless I'm missing something I think I have it right <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> In order to maintain a single user table you would need to alter all parts that query the w3t_Users table. For instance:

Forum 1 runs with the following database:
Database 1: contains forum A and B and the w3t_Users table.

Forum 2 uses this database:
Database 2: contains forum C and D

You would need to alter forum 2 to query against the w3t_Users table that forum 1 is using.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Do I not have to worry bout these tables?

w3t_AddressBook
w3t_Banned
w3t_Favorites
w3t_Moderators
w3t_Subscribe

So when I install the next forum software all I need to do is create the necessary tables which would be everything other than w3t_Users and then I would edit each file in UBBThreads so that the forums point to the correct tables. =) I think we got it now...

Jason Porembski
Magicia (WGNet CEO)
<a href="http://www.world-gaming.com">http://www.world-gaming.com</a>

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
No, those tables can stay in each database. You'd just need to grep for all instances of w3t_Users. This would give you a list of all files that query the w3t_Users table. Then you would need to make the necessary changes in those files to query the proper database.

This is something that I will try to get in as an option when I start working on site integration.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
I think I figured out what is the miscommunication (Unless I am crazy! =)) This will all be ran from one database but I want separate tables so that the users table remains the same for both forums BUT there would be two post tables which would be posttableA for forumA and posttableB for forumB.

Jason Porembski
Magicia (WGNet CEO)
<a href="http://www.world-gaming.com">http://www.world-gaming.com</a>

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ah, out of one database. That would take a bit more editing. By default all tables start with a w3t_ prefix. You would need to create new tables for everything except the w3t_Users and call them with a prefix of something like w3t2_. Then in the second installation you would need to search for all instances of w3t_ (except for w3t_Users) and change them to w3t2_.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Ok so I would change these too?

w3t_AddressBook
w3t_Banned
w3t_Favorites
w3t_Moderators
w3t_Subscribe

to w3t2 or whatever...

I ask this since they deal with the users.....

If I wanted one ban list I would leave them w3t_Banned just like w3t_Users... Hmmm ok I think I am getting it now =)...

I have to admit Rick the customer service you give is impecable (sp?)

Jason Porembski
Magicia (WGNet CEO)
<a href="http://www.world-gaming.com">http://www.world-gaming.com</a>

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
These 3 would probably need to be changed because they are pretty much forum specific.

w3t_Favorites
w3t_Moderators
w3t_Subscribe

Yep, he w3t_Banned one you can keep as normal if you want them to be banned on both installations. w3t_Addressbook can stay as is because this is basically dealing with users.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Excellent Thanks Rick... Do the php variables have to change as well? or just the database queries?

Jason Porembski
Magicia (WGNet CEO)
http://www.world-gaming.com

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Just the database queries. Everything else can stay the same.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
I totaly understand what needs to be done to get this to work but can anyone give me an example on what to put in the code, my PHP is not the best. Any help would be appreciated as it's something I would like to do also.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 1,069 guests, and 175 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)