forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: DaMysterious on December 03, 2004, 11:57:16 pm

Title: [solved] phpbb Bridge Issue
Post by: DaMysterious on December 03, 2004, 11:57:16 pm
I installed v1.4a yesterday and I'm very impressed.

As you know I use the phpbb-bridge for years now, but right now I stuck with the Bridge Wizard as he tels me


Coppermine can't read a cookie named "phpbb2mysql*". Correct the value you entered for Cookie prefix, or go to your BBS administration panel and make sure that the cookie path is readible for coppermine.


I checked phpBB and leaves hide unused form fields (recommended) untuched. My phpBB resides in the root thus I entered a  / as relative path, phpbb2mysql as cookiename is the same as in my phpbb config.

What can be wrong?
Title: Re: phpbb Bridge Issue
Post by: Joachim Müller on December 04, 2004, 02:58:03 pm
I'm not sure what's wrong. Could you post the url of your cpg1.4 test install, so I can take a look, maybe together with a test user account?

Joachim
Title: Re: phpbb Bridge Issue
Post by: DaMysterious on December 04, 2004, 03:30:58 pm
I'm not sure what's wrong. Could you post the url of your cpg1.4 test install, so I can take a look, maybe together with a test user account?

Joachim

Url = http://damysterious.xs4all.nl/gallery/index.php - ***/**** <- this is a adminaccount.

[edit GauGau]
removed admin account data
[/edit]
Title: Re: phpbb Bridge Issue
Post by: Joachim Müller on December 05, 2004, 12:38:12 am
edit bridgemanager.php, find
Quote
$default_bridge_data['phpbb'] = array(
  'full_name' => 'phpBB',
  'short_name' => 'phpbb',
  'support_url' => 'http://www.phpbb.com/',
  'db_database_name_default' => 'phpBB',
  'db_database_name_used' => 'mandatory,not_empty',
  'db_hostname_default' => 'localhost',
  'db_hostname_used' => 'mandatory,not_empty',
  'db_username_default' => '',
  'db_username_used' => 'mandatory,not_empty',
  'db_password_default' => '',
  'db_password_used' => 'password',
  'relative_path_of_forum_from_webroot_default' => '/phpBB2/',
  'relative_path_of_forum_from_webroot_used' => 'mandatory,not_empty,trailing_slash',
  'logout_flag_default' => '1',
  'logout_flag_used' => 'radio,1,0',
  'cookie_prefix_default' => 'phpbb2mysql',
  'cookie_prefix_used' => 'cookie,not_empty',
and replace with
Quote
$default_bridge_data['phpbb'] = array(
  'full_name' => 'phpBB',
  'short_name' => 'phpbb',
  'support_url' => 'http://www.phpbb.com/',
  'db_database_name_default' => 'phpBB',
  'db_database_name_used' => 'mandatory,not_empty',
  'db_hostname_default' => 'localhost',
  'db_hostname_used' => 'mandatory,not_empty',
  'db_username_default' => '',
  'db_username_used' => 'mandatory,not_empty',
  'db_password_default' => '',
  'db_password_used' => 'password',
  'relative_path_of_forum_from_webroot_default' => '/phpBB2/',
  'relative_path_of_forum_from_webroot_used' => 'mandatory,not_empty,trailing_slash',
  'logout_flag_default' => '1',
  'logout_flag_used' => 'radio,1,0',
  'cookie_prefix_default' => 'phpbb2mysql',
  'cookie_prefix_used' => 'cookie',
.Please report if this fixes things for you.

Joachim

P.S. Removed your admin account details - you shouldn't post them, not even the ones of a test install, as it still could be abused to attack your server.
Title: Re: phpbb Bridge Issue
Post by: DaMysterious on December 05, 2004, 02:04:28 pm
Your solution worked perfectly in my environment. Thanks for your help.
Title: Re: [solved] phpbb Bridge Issue
Post by: Joachim Müller on December 05, 2004, 02:54:36 pm
committed change to devel branch.

Joachim
Title: Re: [solved] phpbb Bridge Issue
Post by: Casper on December 28, 2004, 11:42:01 pm
Unfortunately I have exactly this same problem on an install I'm doing, and the fix does not work for me.

http://www.photo-sense.co.uk/gallery1/index.php
the forum can be got at http://www.photo-sense.co.uk/board1/index.php or http://www.photo-sense.co.uk/gallery1/forum.html

cpgtest / cpgtester
Title: Re: [solved] phpbb Bridge Issue
Post by: Joachim Müller on December 29, 2004, 03:39:03 pm
Casper, please PM me the admin account data of above website.

Joachim
Title: Re: [solved] phpbb Bridge Issue
Post by: Casper on December 29, 2004, 09:02:32 pm
 :-[  wel lit was one of those days.

First, it seems I was trying to use the wrong bridge, the phpbb22.  My phpbb 2.0.11 wokrs with the phpbb1 bridge.

BUT, the logout link does not work.  Wherever within the gallery I try it, it thinks I am refering from the login page, and then tells me I'm already logged in, and always with this url result

Quote
/login.php?redirect=cpg_redir.php&logout=true

And when I try and login from the gallery, I get this, as per the pic.
The urls are as above.  If you still want an admin account Joachim, let me know.

Note, if logged in from the board, all else works.
Title: Re: [solved] phpbb Bridge Issue
Post by: Casper on December 30, 2004, 12:29:53 am
Further testing has left me scratching my head, still unable to get this to work from the gallery.  I have tried everythiing I can think of to get this going.

I have also the following points to note, as an inexperienced user of the bridge manager, which may/will cause confusion and questions in the future.

1.  If using the bridge manager, it is not clear that you still need to do the redirect files when bridging with phpbb and Punbb.  These instructions seem to be in the 'if not using the bridge manager' section.

2.  When using the bridge file, to bridge with phpbb, and with the width settings at a lowish size, it is not clear which selection is which when setting your version, see screenshots. My settings are 650px, which I had to change to be sure what I was doing.
Could we put these on 2 seperate lines, to be clear.
Title: Re: [solved] phpbb Bridge Issue
Post by: Joachim Müller on December 30, 2004, 06:11:59 am
I can see the points you bring up, that's why I changed the phpbb22 settings the same way I did for the "regular" phpbb bridge: I changed the cookie check to be optional, you'll be able to continue the bridge manager wizard even if coppermine can't read the bbs cookie immediately. I added a <br /> as well between the radio buttons that allow specification of the phpbb version, so lower width settings won't make the line breaks result in strange display.
What remains to be done is the cpg_redir code to be created by the bridge manager - this is something I haven't come up with, but which is planned. The idea is to write the redirection file if it is writable for coppermine; if it isn't the code that should go into it should be displayed in a <textarea> field with instructions to copy'n paste it and where to save it (under which file name). I'm not sure I'll manage to finish this feature for the release, so currently we'll have to create a note in the bridge manager output that says "create your redirection file as suggested in the docs" with a link to the particular section in the docs.

Joachim