coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: Richard Munn on December 03, 2005, 05:57:04 AM

Title: Loss of Admin functions - PHPBB CPG Bridging
Post by: Richard Munn on December 03, 2005, 05:57:04 AM
A bit embarrassing, since this sounds very similar to some of the other posts, but I'm stumped.

Existing install of phpbb 2.0.14.  New install of CPG 1.4.2.
Bridging seemed to work fine.  If I logged in using CPG, I was directed to the forum login, and properly redirected back to the gallery.

Problem is that when I arrived back at the gallery, it was not as an admin - no way of getting into the admin functions.

Ended up having to rerun bridgemgr.php again, and it disabled bridging.

However, now when I try to log into the gallery, I enter my (previous admin) username and password.  It appears to accept it - says "Welcome Richard" and shows the continue button, but then says "You don't have permission to access this page" so I can't log into the gallery at all.

Any ideas?  Thanks in advance for any and all help on this matter - I've been using the forums for a while, but am new to CPG

Coppermine install: http://www.myccr.com/gallery/
Forum install: http://www.myccr.com/SectionForums/
Coppermine version: cpg1.4.2
Forum version: PHPBB 2.0.14
Test user account: username: Test_User  password: test123

Cookie settings for the forums:
cookie domain: www.myccr.com
cookie name: phpbb2_myccr
cookie path: /
cookie secure: disabled

BridgeManager settings:
Forum URL:  http://www.myccr.com/SectionForums
Relative path to your BBS's config file:  ../SectionForums/ 
Use post-based groups?:  1 

Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: Nibbler on December 03, 2005, 05:49:20 PM
1) Open your groupmgr.php

2) Edit

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

so it reads

//if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

3) Navigate to groupmgr.php in your browser and the groups will re-sync.

4) Update your files from CVS versions:

udb_base.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/udb_base.inc.php)
phpbb.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/phpbb.inc.php)
bridgemgr.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridgemgr.php)

5) Enable the bridge with the bridge manager.

6) Reverse your change from step 2
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: gram on December 05, 2005, 09:50:16 PM
Thanks Nibbler!

Same problem, but with Mambo Bridge.

Implemented your suggestions (except Mambo bridge from CVS), problem solved.

GRAM
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: dancook on December 14, 2005, 07:37:04 PM
OK...forgive for being a newb...I'm putting together my first website using phpbb 2.0.14 and I just installed cpg 1.4.2 as well.

After I logged off of the admin account to create my own user account, I went back to admin account and had no admin controls (same situation as these guys I guess).

I'm not familiar with the bridge manager and didn't really know I was bridging anything. Is there anything here that explains step-by-step what I need to do to get this corrected? I'm still new with changing code around, but if I have something to refer to I can get by.

Thanks in advance!!

Dan Cook
Greenville, SC
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: ingsiang on December 15, 2005, 01:46:38 PM
Thanks alot Nibbler! I followed your tutorial and succeed in restore my admin control! Millions of thanks~ You are such a great guy!  ;D ;D ;D ;D
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: ingsiang on December 15, 2005, 01:49:48 PM
Wao! I juz recheck my CPG and realize dat the tutorial above doesnt only solve my admin mode prob.. but also the login/logout redirection and memberlist problem! You rocks! nibbler~ thank you!!!!!!!!!!!!!! ;D ;D ;D ;D ;D ;D ;D ;D
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: car88win on April 23, 2006, 07:07:02 PM
Quote from: Nibbler on December 03, 2005, 05:49:20 PM
1) Open your groupmgr.php

2) Edit

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

so it reads

//if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

3) Navigate to groupmgr.php in your browser and the groups will re-sync.

4) Update your files from CVS versions:

udb_base.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/udb_base.inc.php)
phpbb.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/phpbb.inc.php)
bridgemgr.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridgemgr.php)

5) Enable the bridge with the bridge manager.

6) Reverse your change from step 2

If I am to understand correctly, after we are able to get back in as admin etc. we are to copy and paste the text in these files into ours?
udb_base.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/udb_base.inc.php)
phpbb.inc.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridge/phpbb.inc.php)
bridgemgr.php (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/bridgemgr.php)
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: Nibbler on April 23, 2006, 08:56:49 PM
No, 1.4.5 already has the fixes.
Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: car88win on April 25, 2006, 01:13:04 AM
super quick question eplain to a noob, please:

Relative path to your BBS, seen from your Coppermine folder (e.g. "../forum/" if your BBS is at http://www.yourdomain.tld/forum/ and Coppermine at http://www.yourdomain.tld/gallery/)

I think this is where I screwed up and got myself messed up.

Title: Re: Loss of Admin functions - PHPBB CPG Bridging
Post by: Joachim Müller on April 27, 2006, 08:14:06 AM
Locking...