Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [solved] phpbb Bridge Issue  (Read 8825 times)

0 Members and 1 Guest are viewing this topic.

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
[solved] phpbb Bridge Issue
« 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?
« Last Edit: December 05, 2004, 02:08:27 pm by Casper »
Logged
DaMysterious.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb Bridge Issue
« Reply #1 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
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: phpbb Bridge Issue
« Reply #2 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]
« Last Edit: December 05, 2004, 12:28:11 am by GauGau »
Logged
DaMysterious.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb Bridge Issue
« Reply #3 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.
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: phpbb Bridge Issue
« Reply #4 on: December 05, 2004, 02:04:28 pm »

Your solution worked perfectly in my environment. Thanks for your help.
Logged
DaMysterious.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [solved] phpbb Bridge Issue
« Reply #5 on: December 05, 2004, 02:54:36 pm »

committed change to devel branch.

Joachim
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: [solved] phpbb Bridge Issue
« Reply #6 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
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [solved] phpbb Bridge Issue
« Reply #7 on: December 29, 2004, 03:39:03 pm »

Casper, please PM me the admin account data of above website.

Joachim
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: [solved] phpbb Bridge Issue
« Reply #8 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: [solved] phpbb Bridge Issue
« Reply #9 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [solved] phpbb Bridge Issue
« Reply #10 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
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.