Advanced search  

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

Pages: [1]   Go Down

Author Topic: Loss of Admin functions - PHPBB CPG Bridging  (Read 9244 times)

0 Members and 1 Guest are viewing this topic.

Richard Munn

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Loss of Admin functions - PHPBB CPG Bridging
« 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 

« Last Edit: December 08, 2005, 11:53:12 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #1 on: December 03, 2005, 05:49:20 pm »

1) Open your groupmgr.php

2) Edit

Code: [Select]
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
so it reads

Code: [Select]
//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
phpbb.inc.php
bridgemgr.php

5) Enable the bridge with the bridge manager.

6) Reverse your change from step 2
Logged

gram

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #2 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
Logged

dancook

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #3 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
Logged

ingsiang

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #4 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
Logged

ingsiang

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #5 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
« Last Edit: December 15, 2005, 02:04:39 pm by ingsiang »
Logged

car88win

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #6 on: April 23, 2006, 07:07:02 pm »

1) Open your groupmgr.php

2) Edit

Code: [Select]
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
so it reads

Code: [Select]
//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
phpbb.inc.php
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
phpbb.inc.php
bridgemgr.php
Logged

Nibbler

  • Guest
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #7 on: April 23, 2006, 08:56:49 pm »

No, 1.4.5 already has the fixes.
Logged

car88win

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #8 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Loss of Admin functions - PHPBB CPG Bridging
« Reply #9 on: April 27, 2006, 08:14:06 am »

Locking...
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.