Jupload + PhpBB-Coppermine Bridge Jupload + PhpBB-Coppermine Bridge
 

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]

Main Menu

Jupload + PhpBB-Coppermine Bridge

Started by Piru, November 26, 2009, 08:14:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Piru

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.

etienne_sf

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

Piru

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!

etienne_sf

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

Piru

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.

etienne_sf

Yep.

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

palle-2000

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
-- There's no knowledge that is not power --

etienne_sf

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

palle-2000

Hi Etienne,

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

Find
// define the var array
After that, add:
$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)
-- There's no knowledge that is not power --

palle-2000

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

etienne_sf

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

palle-2000

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 :)
-- There's no knowledge that is not power --

Piru


etienne_sf

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

palle-2000

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...  ::)
-- There's no knowledge that is not power --

etienne_sf

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

palle-2000

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  ;)

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

etienne_sf

Great !

  So  ... this thread is solved !

Ok for you, Piru ?

Piru

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!

Piru

Did a quick first test, seems to be working perfectly! Big thanks Etienne!  :D