Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: I Cant Integrate 2 Copper Galleries  (Read 2613 times)

0 Members and 1 Guest are viewing this topic.

Superpoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
I Cant Integrate 2 Copper Galleries
« 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

 ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: I Cant Integrate 2 Copper Galleries
« Reply #1 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: I Cant Integrate 2 Copper Galleries
« Reply #2 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: I Cant Integrate 2 Copper Galleries
« Reply #3 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?
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I Cant Integrate 2 Copper Galleries
« Reply #4 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
Code: [Select]
$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
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.