Welcome, Guest. Please Login or Register.
August 31, 2025, 01:52:02 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Multiple Installs on single site? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Multiple Installs on single site?  (Read 501 times)
theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Multiple Installs on single site?
« on: May 09, 2002, 12:00:19 PM »
Reply with quote

Just a thought!, I am currently looking at setting up a new forum and was wondering if it was possible to have multiple installs sharing the same password files etc.
Let me explain. I am lookin to set up a travel discussion forum and would like to break it down into continents and then down into countries. I think it may be too large and complicated if i have all the continents and countries on one board.
i.e Asia,Africa,Europe etc a different install for each continent and then break each one down by country.

Is this possible ?
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Multiple Installs on single site?
« Reply #1 on: May 09, 2002, 12:02:50 PM »
Reply with quote

I think it is. You just make one database for users but make the boards to different directories for different countries. So you make one database and then setup all boards to use this database.
Logged
theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #2 on: May 09, 2002, 12:10:29 PM »
Reply with quote

Thanx I will give it a go!
Logged
theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #3 on: May 09, 2002, 12:41:00 PM »
Reply with quote

Quote from: Hypocrite on May 09, 2002, 12:02:50 PMI think it is. You just make one database for users but make the boards to different directories for different countries. So you make one database and then setup all boards to use this database.

Doesnt work I have installed two boards to use the same database and whatever you post on one shows up on the other.
Back to the drawing board
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Multiple Installs on single site?
« Reply #4 on: May 09, 2002, 01:05:47 PM »
Reply with quote

If you're looking to share member databases, you'll need to change some code.  What you'd want to do is make it so that the second install reads the member table from the first install.
Logged

theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #5 on: May 09, 2002, 01:10:59 PM »
Reply with quote

Sounds Like what im looking for. I would like all six boards to read and write to the same member file.
Im new to PHP so is the required code change going to be complicated or is it just a case of tracking down and changing urls ?

thankx

 ;D
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Multiple Installs on single site?
« Reply #6 on: May 09, 2002, 01:15:50 PM »
Reply with quote

It will be a little complicated.  once you change one though, you're set for the other 4-5 :)
Logged

theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #7 on: May 09, 2002, 01:17:09 PM »
Reply with quote

How and what do i need to change ?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Multiple Installs on single site?
« Reply #8 on: May 09, 2002, 01:20:14 PM »
Reply with quote

Heh, saw that coming  ;D

If you're familiar with PHP or anything like that, all you need to look at is the queries to the members table.  So you're going to need to use table handles.

Start coding and I'm sure guys will help out if you encounter problems...

To start with, you'll need to add a second connection to the first.  So you connect to the database with messages etc, but you also need to connect to the database hosting the members table.
Logged

theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #9 on: May 09, 2002, 02:00:28 PM »
Reply with quote

totally lost already, i have installed two copies of YABB one in a folder called africa and one asia now all i have to do is make each one read and write to the same members table.
I am new to PHP and Mysql, I have a facility called phpmyadmin should this be what i am using to try and make the databases connect or should i be looking in the YABB files ?
Logged
Christer
Jr. Member
**
Posts: 92


BoardMod's FAQ Writer

ICQ - 111713080evilwizard@hotmail.com
Re:Multiple Installs on single site?
« Reply #10 on: May 09, 2002, 05:12:25 PM »
Reply with quote

I'm guessing look in the YaBB Files....

PhPMyAdmin is used to create/edit/delete mySQL tables
Logged

Yes, yes. I'm from that cold country up in the north alright, where the glaciers attack you because they want to get in and get warm too. And it isn't Canada, Russia or Finland.

And NO, I'm not here to do support. I'm here to spy for the commies ;D
theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #11 on: May 09, 2002, 05:53:43 PM »
Reply with quote

Ive now got two boards working off of the same database all i need to do is have both talking to a single members table, i have been looking through the PHP files should i just change every occurence of {$db_prefix}members to in each board to match the one single members table.
and will this ensure both read and write to the same table ?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Multiple Installs on single site?
« Reply #12 on: May 09, 2002, 06:02:50 PM »
Reply with quote

Change that {$db_prefix} to the one where you want it to write to.  Replace that across all files that look at the members table.  make sure you're not overwriting any weird joins (can't think of any offhand).
Logged

theditchblairproje
Noobie
*
Posts: 12


I'm a llama!

Re:Multiple Installs on single site?
« Reply #13 on: May 09, 2002, 10:40:26 PM »
Reply with quote

Seems to work a treat now!! Im gonna test abit more the only problem i have encountered so far is that when you logout of one forum you are still logged in on the other could it be something to do with the logging perhaps ?
Would it be complicated to make all forums use same log files also ?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Multiple Installs on single site?
« Reply #14 on: May 09, 2002, 10:52:00 PM »
Reply with quote

Well that is the cookies ;)  There are different cookies for each domain ;)
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Multiple Installs on single site? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 16 queries.