coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Superpoo on September 06, 2004, 09:55:03 PM

Title: I Cant Integrate 2 Copper Galleries
Post by: Superpoo on September 06, 2004, 09:55:03 PM
I`ve Maded the following 2 integrate 2 coppermine galleries:
First, I`ve Installed the 2 galleries normally, then I edited the config.inc.php and direct the 2 galleries to use the same DB, then all worked, when I log in in 1, it logs in the 2, but here the problems starts; when I create an album in one of the galleries, it create the same album in both, the same with cattegories and photos, plz someone help me or give me an detailed way to integrate the 2 galleries plz

??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: I Cant Integrate 2 Copper Galleries
Post by: kegobeer on September 06, 2004, 11:12:36 PM
Sounds like you've shared more than the database - you've shared the same Coppermine tables.  That's why a change in one reflects in the other.  You can't share the user list but keep everything else separate.  I don't understand why you'd want two installs of Coppermine to share the same userlist or the same database.
Title: Re: I Cant Integrate 2 Copper Galleries
Post by: Superpoo on September 06, 2004, 11:37:11 PM
thats why I have a Messenger web, and 1 gallery is for avatars and 1 for emoticons
Title: Re: I Cant Integrate 2 Copper Galleries
Post by: kegobeer on September 07, 2004, 12:03:45 AM
Why can't you have one Coppermine install, with two albums: one for emoticons and the other for avatars?
Title: Re: I Cant Integrate 2 Copper Galleries
Post by: Joachim Müller on September 07, 2004, 06:42:32 AM
This is expected behaviour: if you tell coppermine to use the same database tables, it will do so. As albums are stored in the database tables as well, both galleries will share everything that's in the albums table. To actually split this apart, you will need different tables on the same database, then edit include/init.inc.php and modify the bits around$CONFIG['TABLE_PICTURES']        = $CONFIG['TABLE_PREFIX']."pictures";
$CONFIG['TABLE_ALBUMS']                = $CONFIG['TABLE_PREFIX']."albums";
$CONFIG['TABLE_COMMENTS']        = $CONFIG['TABLE_PREFIX']."comments";
$CONFIG['TABLE_CATEGORIES']        = $CONFIG['TABLE_PREFIX']."categories";
$CONFIG['TABLE_CONFIG']                = $CONFIG['TABLE_PREFIX']."config";
$CONFIG['TABLE_USERGROUPS']        = $CONFIG['TABLE_PREFIX']."usergroups";
$CONFIG['TABLE_VOTES']                = $CONFIG['TABLE_PREFIX']."votes";
$CONFIG['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";
$CONFIG['TABLE_BANNED']                = $CONFIG['TABLE_PREFIX']."banned";
$CONFIG['TABLE_EXIF']                = $CONFIG['TABLE_PREFIX']."exif";
$CONFIG['TABLE_FILETYPES']          = $CONFIG['TABLE_PREFIX']."filetypes";
$CONFIG['TABLE_ECARDS']          = $CONFIG['TABLE_PREFIX']."ecards";
$CONFIG['TABLE_TEMPDATA']        = $CONFIG['TABLE_PREFIX']."temp_data";
, make the two different installs share the same users and usergroups tables, but the rest must differ.

I agree with kegobeer though: I can't see a reason for two different installs.

Joachim