coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: prettyscrappy on August 22, 2008, 06:45:24 PM

Title: Bridge with phpbb3
Post by: prettyscrappy on August 22, 2008, 06:45:24 PM
I am having a bit of trouble with the bridging with phpbb3. I had phpbb2, and got hacked so I am upgraded to 3. Now I have discovered that 3 has issues with cpg. Does anyone have any ideas? I have cpg configured correctly. The bridge activates with no problem, but when you login to phpbb3, and click over to the cpg it doesn't login. Then you click login in cpg, and it redirects to a page that doesn't exist. I get an error

Not Found
The requested URL /forum/login.php was not found on this server.

I looked in the original download of phpbb3, and the login.php isn't included. How it logs in I don't know.

Forum address: www.prettyscrappy.com/forum
CPG address: www.prettyscrappy.com/gallery

Please someone let me know what to do I have been trying to fix this for 2 days now, and I just want to be done.
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 22, 2008, 07:05:10 PM
Sounds like you're trying to use the phpbb2 bridge with phpbb3. You need to use the phpbb3 bridge for phpbb3.

http://forum.coppermine-gallery.net/index.php/topic,53678.0.html
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 22, 2008, 09:00:40 PM
I worked on that last night and didn't get it. So I thought I would do it again, maybe I missed something. Anyways I did it and nothing. Still the same problem. Is there anything I can give you to look at that might help?
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 22, 2008, 09:04:22 PM
I do have a test account set up if that might help
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 22, 2008, 09:18:25 PM
Sorry I just read the post here is all my info.

Coppermine install: http://prettyscrappy.com/gallery/
Forum install: http://prettyscrappy.com/forum
Coppermine version: cpg1.4.2
Forum version: phpBB3
Test user account: test1234 / test5678

BridgeManager settings:
Forum URL:  http://prettyscrappy.com/forum
Relative path to your BBS's config file:  ../forum/
Use post-based groups?:  0
Cookie name/preifx (if applicable): phpbb
Title: Re: Bridge with phpbb3
Post by: Joachim Müller on August 23, 2008, 09:38:17 AM
Bridging is not enabled, so what exactly should we look into?
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 23, 2008, 02:15:26 PM
That's not your cookie prefix. Your cookie prefix is phpbb3_9rszk.
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 25, 2008, 06:26:33 AM
Hey guys, Sorry it has taken me so long to respond. i am also  wedding photographer, and I had a 14 hour wedding on Saturday. Anyways I changed the cookie prefix, and it seemed to work. The only thing I did notice, and is causing a big problem is when me or my wife who are both admins on everything when we click over to the gallery it doesn't log us in as admins. It looks like we are just users. What could be causing this?
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 25, 2008, 06:29:10 AM
Quote from: prettyscrappy on August 25, 2008, 06:26:33 AM
Hey guys, Sorry it has taken me so long to respond. i am also  wedding photographer, and I had a 14 hour wedding on Saturday. Anyways I changed the cookie prefix, and it seemed to work. The only thing I did notice, and is causing a big problem is when me or my wife who are both admins on everything when we click over to the gallery it doesn't log us in as admins. It looks like we are just users. What could be causing this?

Also because of this issue with admin I can't even turn off the bridge, and i don't know how to turn it off in the mysql.
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 25, 2008, 10:35:32 AM
Admin issues are discussed on the second page of the mod's thread linked to above. How to disable the bridge is explained in the documentation.
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 25, 2008, 08:02:12 PM
ok I have looked at that 2nd page and I am still having the problem. I posted on that thread. I don't know what to do anymore?
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 26, 2008, 10:09:48 AM
You need to find out what your admin group is and make the change described. I don't know what number your admin group is. I suppose it's displayed somewhere in phpbb.
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 26, 2008, 04:07:23 PM
Quote from: Nibbler on August 26, 2008, 10:09:48 AM
You need to find out what your admin group is and make the change described. I don't know what number your admin group is. I suppose it's displayed somewhere in phpbb.

I had a feeling that you were going to say that. I looked and looked last night, and I have no idea where to find it. I even searched this forum for something about admin_group, and found a lot of things but nothing telling me where to find it. Do you or anyone else know where to look?
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 26, 2008, 05:40:29 PM
OK, go into the admin control panel, then 'manage groups'. Go to the table that has the list of groups, look at the row for 'Administrators' and check the URL for the 'settings' link. The group id is at the end of the URL after &g=
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 27, 2008, 04:49:47 PM
First I would like to say thank you for your help. Unfortunately it still isn't working. I ran into problems yesterday and couldn't even get thegallery to come back up, is I started fresh. New gallery, New Db, new intagration, and still not able to get coppermine to see the admins. I
This is the bridgemanager.php the part I have changed
// define the var array
$default_bridge_data['phpbb3'] = array(
  'full_name' => 'phpBB version 3',
  'short_name' => 'phpbb3',
  'support_url' => 'http://www.phpbb.com/',
  'full_forum_url_default' => 'http://www.prettyscrappy.com/forum',
  'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
  'relative_path_to_config_file_default' => '../forum/',
  'relative_path_to_config_file_used' => 'lookfor,config.php',
  'use_post_based_groups_default' => '0',
  'use_post_based_groups_used' => 'radio,1,0',
   'cookie_prefix_default' => '',
   'cookie_prefix_used' => 'phpbb3_9rszk',
);


This the ps08x_bridge in the Db

short_name                  phpbb3
full_forum_url                    http://www.prettyscrappy.com/forum
relative_path_to_config_file  ../forum/
use_post_based_groups  1
cookie_prefix                  phpbb3_9rszk
use_standard_groups      1
admin_group                  329
recovery_logon_failures  0


Something I was reading on the other post was one guy said he upgraded from phpbb2 to 3, and his admin_group # was much smaller than mine. I have upgraded from 2 to 3 also, could this have something to do with it? I am just trying to give you as much info as I can help you. If anyone has any advice or feedback it would be helpful.
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 27, 2008, 07:41:19 PM
Try without post based groups. You are not supposed to make any edits to the code in bridgemgr.php.
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 27, 2008, 07:57:23 PM
Quote from: Nibbler on August 27, 2008, 07:41:19 PM
Try without post based groups. You are not supposed to make any edits to the code in bridgemgr.php.

Ok I took the post based groups off, and undid the edits to bridgemgr.php. I thought I had to fill in my information in there. My bad!! Anyways I do have a few options in the admin menu now, but it's the (User Admin Menu), not the (Admin Menu).
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 27, 2008, 08:02:26 PM
Quote from: prettyscrappy on August 27, 2008, 07:57:23 PM
Ok I took the post based groups off, and undid the edits to bridgemgr.php. I thought I had to fill in my information in there. My bad!! Anyways I do have a few options in the admin menu now, but it's the (User Admin Menu), not the (Admin Menu).


Do you think that my admin group could be a smaller or different number?
Title: Re: Bridge with phpbb3
Post by: Nibbler on August 27, 2008, 09:24:07 PM
It's whatever the groups page in phpbb says it is.
Title: Re: Bridge with phpbb3
Post by: prettyscrappy on August 27, 2008, 11:52:04 PM
Dude check this out. I was having more trouble with this so i thought I would go over to PHPBB and check to see what they had to say about this bridge deal. There is a topic on this and actually had files, and instructions. It is working flawlessly, quick and easy instruction. I overwrote the bridgemgr.php, and the phpbb3.inc.php file with the one that came with there download. I don't know if this mattered or not but i did leave the admin_group# in the mysql. Here is the link if anyone wants help getting Coppermine & PHPBB3 bridged.

http://www.phpbb.com/community/viewtopic.php?f=70&t=666235&st=0&sk=t&sd=a


Nibbler I want to thank you for all your help with this issue. I know you didn't have to but thanks anyways.
Title: Re: Bridge with phpbb3
Post by: Joachim Müller on August 28, 2008, 01:00:22 PM
The bridge you refer to requires modifications of the bridging app (phpbb3 in your case), which is something we're not fond of. Yes, we're aware that such a bridge exist, but as I said: we're not fond of it. Anyway, if this fixes your issues, that's fine. Thanks for your report.