2 galleries 1 account 2 galleries 1 account
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

2 galleries 1 account

Started by disismi, August 01, 2010, 11:21:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

disismi

I want to set up multiple galleries.
They are installed on the same server, they share the same database.

What I want is this:

If I create an account here:
http://www.i-junkie.nl/photoalbum_Bwindi/index.php

I want to be able to use the same login/password here
http://www.i-junkie.nl/photoalbum_Kibale/index.php

The database:
This is my usertable for the first one: cpgbwindi_users
This is my usertable for the sec. one: cpgkibale_users

I tried to change the init.inc of the Kibale photoalbum to this

$CONFIG['TABLE_USERS']         = 'cpgbwindi_users';

Now when I create an account at
http://www.i-junkie.nl/photoalbum_Kibale/index.php
I can see the account in the usertable of Bwindi, so that's something :)

But when I try to login at
http://www.i-junkie.nl/photoalbum_Kibale/index.php
I can't

When I try to login at
http://www.i-junkie.nl/photoalbum_Bwindi/index.php
it works...

What do I do to be able to login on both galleries?

I searched and searched but I can not find an answer.


disismi

okay, got this working by installing a phpbb3 forum and than bridge the galleries to the forum.
I needed a forum anyway so this is perfect.