coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: MDxRacing on October 06, 2004, 02:55:33 PM

Title: cpg132 and cpg132 share Table_users?
Post by: MDxRacing on October 06, 2004, 02:55:33 PM
First of all your coppermind 1.32 is awsome :)
I have up an running one cpg132 site , and to many categories.
would like to load a nother cpg132 as cpd132b with different database , but share the first cpg132 database Table_users  only.
Is that Possible?

Both cpg132 and cpg132b would be the same database just the prefix_ would be different.

Thanks
MD
Title: Re: cpg132 and cpg132 share Table_users?
Post by: Nibbler on October 06, 2004, 03:16:05 PM
You can try.

include/init.inc.php

$CONFIG['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";

Change that line to whatever you want the users table to be pointing at.
Title: Re: cpg132 and cpg132 share Table_users?
Post by: MDxRacing on October 06, 2004, 05:48:57 PM
Thanks
I tried a few different code lines , nothing worked
could you give me a hint on what to change.

This Is what i tried below

$CONFIG['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."cpg132_users";

$CONFIG['TABLE_USERS']                = $CONFIG['cpg132_TABLE_PREFIX']."users";

$CONFIG['cpg132_TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";

$CONFIG cpg132_ ['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";

Thanks
MD