I Cant Integrate 2 Copper Galleries I Cant Integrate 2 Copper Galleries
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

I Cant Integrate 2 Copper Galleries

Started by Superpoo, September 06, 2004, 09:55:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Superpoo

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

??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Superpoo

thats why I have a Messenger web, and 1 gallery is for avatars and 1 for emoticons

kegobeer

Why can't you have one Coppermine install, with two albums: one for emoticons and the other for avatars?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

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