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: Jupload + PhpBB-Coppermine Bridge  (Read 14790 times)

0 Members and 1 Guest are viewing this topic.

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Jupload + PhpBB-Coppermine Bridge
« on: November 26, 2009, 08:14:51 pm »

Hi Etienne,

first of all, nice plug-in! I got it to work on a site I'm admin on. This is a standalone Coppermine install (Coppermine Photo Gallery 1.4.10 (stable)), installed right out of the box, no sweat!

But I'm having problems with another install, which is basically hosted on the same system, but is bridged with PhpBB 3. I get the "no permission" error, although I'm using version 4.0.0RC3. I'v searched the board an asked Google for answers, but can't get it to work. Is there a simple solution for this problem?

Coppermine Photo Gallery 1.4.25 (stable)
PHPBB3.0.2 – the versions matter, because at the time we couldn't get the bridge to work unless we used these.
Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #1 on: November 27, 2009, 12:55:15 pm »

Hum, hum,

  Ok, you used the last version. Good point.

Bridge mode is always more complex. But I had not have problems since a long time on this one.
1) Is there any particular point on your site ?  (several domain names, redirection...)
2) Can you post here the JUpload debug output ?

Please read this page for details: http://forum.coppermine-gallery.net/index.php/topic,53168.0.html
(search for 'How to get the debug output ?')

Etienne
Logged

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #2 on: November 27, 2009, 01:36:33 pm »

I don't think there are any "special" thingies going on, only the bridging.

Debug was too long to post, so here is a link to a html file containing the code (best to view it as source code).
http://www.poca.be/debugpoca.html

Thanks in advance mate!
Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #3 on: November 27, 2009, 02:03:21 pm »

Hi,

  I don't know the exact rules, PHPBB3.0.2 uses, to authenticate a user. There is no PHPBB specific cookie, but a generic PHPSESSID one. it may be enough ... or not.
  I'll try with it.

  Then, apparently, you're using Safari. Could you also give a try with a windows box (XP if possible) ?


Etienne
Logged

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #4 on: November 27, 2009, 02:23:26 pm »

I appreciate the effort you're putting into this!

http://www.poca.be/pocawin.txt is what I get from a Vista install; don't have XP anymore. It's basically the same error.
Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #5 on: November 27, 2009, 04:25:09 pm »

Yep.

phpBB 3.0.2 now installed. I'll look into it.
Logged

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #6 on: November 28, 2009, 04:07:14 pm »

Hi etienne_sf,

first I'd like to give you my respect for this great plug-in  :)
Unfortunately I've got exact the same problem that Piru has.

The stand-alone version of Coppermine 1.4.25 runs perfectly out of the box with jupload 4.0.0rc3.
After bridging it with PHPBB-Board (3.05) the percent-bar runs, and it says 1/1 picture uploaded, but finally
I get an error message and no new picture is in the album (see attached file).

If you aren't able to reconstruct this error I could establish a configuration with ftp-access for you on my server.

Thank's for help and greetings from Germany  :D
Logged
-- There's no knowledge that is not power --

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #7 on: November 28, 2009, 06:58:07 pm »

Hi,

  Ok, I note you can give access to your system. If I can avoid it, I prefer.

So, question: I'm about to configure the bridge, on my local computer. But ... the maximum phpBB that is managed there is the 2.2.

Is there ant specific bridge adapter for phpBB3 ?

Etienne
Logged

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #8 on: November 28, 2009, 07:53:13 pm »

Hi Etienne,

thanks :)
To bridge with PHPBB3 you only have to edit the bridgemgr.php:

Find
Code: [Select]
// define the var arrayAfter that, add:
Code: [Select]
$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.yoursite.com/board',
  'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
  'relative_path_to_config_file_default' => '../board/',
  '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' => 'cookie',
);

After that you find the phpbb3 bridging entry in coppermine-setup ;)

(Source: http://forum.coppermine-gallery.net/index.php/topic,53678.0.html)
Logged
-- There's no knowledge that is not power --

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #9 on: November 28, 2009, 07:59:52 pm »

Sorry, forgot the step to put the attached phpbb3.inc.php into the bridge-folder ;)
Logged
-- There's no knowledge that is not power --

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #10 on: November 30, 2009, 05:32:29 pm »

Hi,

  On my configuration, phpBB3 (3.0.2) doesn't seem to want to write cookies (there is a 'sid' parameter on the URL). So, in bridge mode, I can not connect under coppermine ...

So either:
1) you have a hint for this one
2) I can have access to your account. In this case, just ask, I'll send you a PM with my mail (I'm allowed to).

Etienne
Logged

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #11 on: November 30, 2009, 08:25:44 pm »

Hello Etienne,
thanks for looking for it so far :)

I decided for option 2) and created a new account on my server with a completely new installation of phpbb3.05 and coppermine 1.4.25
on a seperate database where you'll all have access to (incl. FTP).

I already bridged phpbb and coppermine to test the scenario again.

Same thing:
When bridge is off, everything's fine; with bridge on no upload possible.

Perhaps you're able to find that bug - I'd be very glad for it :)

Just send me an pn and you'll get access.

Thanks :)
Logged
-- There's no knowledge that is not power --

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #12 on: November 30, 2009, 08:38:05 pm »

This seems harder than I thought!
Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #13 on: December 02, 2009, 01:59:31 pm »

Yep,

  This one is a complex one. The problem is: the javascript code can't read all cookies. Actually, phpBB3 cookies are not read by javascript.

Thanks palle-2000's test site, I can now repeat this on his site, and on mine.


So it's a work in progress...


Etienne
Logged

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #14 on: December 02, 2009, 05:27:53 pm »

Thanks so far Etienne,

looking forward to hear from you with good news ;)

Jupload is the only way for my technical unknown friends to use coppermine
as an interactive portal for uploading pictures...  ::)
Logged
-- There's no knowledge that is not power --

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #15 on: December 04, 2009, 11:29:02 pm »

Hum, hum,

  I didn't succeed in making the default configuration work. The javascript doesn't want to read the phpBB3 cookies. So the applet get stuck.

Please try the package attached to this mail (4.0.0rc4).

Go the JUpload configuration page, and choose 'PHP Forced' in the 'cookieConfiguration' parameter.

It works on my test box, and on palle-2000 test configuration.


Etienne
Logged

palle-2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #16 on: December 05, 2009, 02:08:55 pm »

Hi Etienne,

thank u very very much for that work - thumbs up!  :D
Runs perfectly now! :)

Now my friends are eventual able to upload pictures on their own!

Have a very nice weekend  ;)

Logged
-- There's no knowledge that is not power --

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #17 on: December 05, 2009, 04:02:09 pm »

Great !

  So  ... this thread is solved !

Ok for you, Piru ?
Logged

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #18 on: December 08, 2009, 11:05:04 am »

Hi Etienne,

I'm sorry, I didn't get my notification mail for a new reply on this thread.

I'll try it out first thing this evening! ;-) Sounds promising!
Logged

Piru

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Jupload + PhpBB-Coppermine Bridge
« Reply #19 on: December 08, 2009, 11:38:11 am »

Did a quick first test, seems to be working perfectly! Big thanks Etienne!  :D
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.