Same Login for multiple galleries Same Login for multiple 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

Same Login for multiple galleries

Started by Memor-X, November 16, 2010, 04:04:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Memor-X

with my site, we're going to have 3 galleries, slightly different in how they are set up (one allows movies, one that doesn't allow comments, one which syncs up to a section or the site (requiring modification of certain files))

we want users to be able to log into all 3 with one account, so if they register on one, they register on all 3, and they only have to log into 1 to log into all 3, i tried bridging to our PHPBB3 forum but my friend who will take over control of the galleries once the inital setup is done doesn't get admin rights, she's a Global Moderator (which on our forum, is the exact same as the admin) and even when i put her into the Administrator group, it still didn't give her the rights to make new albums.

since each gallery will have it's own set of tables i was thinking that our idea might work if all 3 galleries used 1 users table and groups table but i'm not sure how to do that in these

Αndré

Bridging is the correct approach imo. We should try to figure out why she doesn't get admin privileges (which should be the case for members of the administrators group).

Memor-X

well like i said her role of Global Moderator is for display, it's her default group so her name is in a different color to mine, her permissions are identical to mine so anything i can do she can do, after we bridge the galleries to the forum, i get the add album, config, admin tools ect. in the top of my GUI (using the default theme) but for her, she has what i believe to be the standard user menu, without the admin options at the top, ofcause when we unbridged the galleries from the forum her permissions was restored and she had access to all the admin options

just wondering, how does the coppermine gallery know who's an admin anyway, i know it would check if they are a member but how does the gallery tell if the group is the admin group cause i know it can't be by name since 2 groups could have the exact same name but could be still different

Nibbler

Edit bridge/phpbb3.inc.php and add in the group ids you want to be admins.


$this->admingroups = array(5);

Memor-X

i added the Global Moderator group into the array and now she has the permissions, though it was strange that she wasn't getting them even though i had her in the admin group also, i took her out of the admin group now and she still has the permission so everything is ok now, thank you for all your help

dolomites

I have the same problem, 3 galleries on same domain but no forum available for bridging; I tried to modify includes\init.inc.php

$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';
$CONFIG['TABLE_FAVPICS']    = $CONFIG['TABLE_PREFIX'].'favpics';
$CONFIG['TABLE_BRIDGE']     = $CONFIG['TABLE_PREFIX'].'bridge';
$CONFIG['TABLE_VOTE_STATS'] = $CONFIG['TABLE_PREFIX'].'vote_stats';
$CONFIG['TABLE_HIT_STATS']  = $CONFIG['TABLE_PREFIX'].'hit_stats';

changing users links  to the "master" database; teoretically it should work, if I create a new registration from gallery 2 and 3 the user is created rightly on master gallery 1, but during login the user is not recognized, why?
Login.php doesnt refer to init.inc.php to check users?

Please could you help me? It's very important for our website, 3 registrations and 3 logins are extremely uncomfortable for our users  :( and I can't make a single gallery because every gallery has different permission upload (only files, only images, different compression values for jpg)

Thank'you!

Αndré

Please show us your modification. I doubt that it will work between different databases by just modifying that code part. But it should work if you'd use the same database, but different table prefixes for your galleries. Then you could hard-code a table prefix to each include/init.inc.php file.