- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 45 guest(s) and 2 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Multiple Sites issue [ ]
Author
Message
Sileencer
Nuke Soldier
Joined: Nov 03, 2007
Posts: 10
Posted:
Tue Dec 04, 2007 7:06 pm
I'm trying to set up multiple sites. using the same database with different
prefixes but i want the User info to be the same.
So I tried several things, the first thing that came to mind was,
in Site1 config.php
Code:
$dbpass = "pepe";
$dbname = "pepe";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
On Site2 config
Code:
$dbpass = "pepe";
$dbname = "pepe";
$prefix = "sam";
$user_prefix = "nuke";
$dbtype = "MySQL";
Now I this this should have done the trick in my book, but it doesn't, I get all the same info on both sites, news, comments even a poll vote.
Ok, I did a little more digging around and in the manual it says to change only the user table to different name so here are the codes.. for the configs
Site1 config.php
Code:
$dbpass = "pepe";
$dbname = "pepe";
$prefix = "nuke";
$user_prefix = "wakala";
$dbtype = "MySQL";
Site2 config
Code:
$dbpass = "pepe";
$dbname = "pepe";
$prefix = "sam";
$user_prefix = "wakala";
$dbtype = "MySQL";
This didn't work at all in both sites I would get blank pages.. as if some error somewhere.
Any ideas with this ? I appreciate thanks..
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12373
Posted:
Tue Dec 04, 2007 7:15 pm
Sileencer
Nuke Soldier
Joined: Nov 03, 2007
Posts: 10
Posted:
Tue Dec 04, 2007 7:34 pm
Currently using 8.0
But I don't get it though the error occurs when i completely change the user_prefix to different name, If I change it to regular nuke it works
Code:
$prefix = "Sam";
$user_prefix = "nuke";
and if I change it it to this which I just realized
Code:
$prefix = "Sam";
$user_prefix = "Sam";
Original Stuff
I get the message of the Setup administrations
Its sorta off like User-prefix is overriding prefix.. it seems to me..
Also looking down into config i saw this..
Code:
$prefix = empty($user_prefix) ? $prefix : $user_prefix;
Could this be my issue..??
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12373
Posted:
Tue Dec 04, 2007 8:59 pm
Sileencer
Nuke Soldier
Joined: Nov 03, 2007
Posts: 10
Posted:
Tue Dec 04, 2007 9:28 pm
oh so that is what all that means.
Ok cool thank you very much I think it has work..
Thanks thanks again..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum