CPG integration with IPB CPG integration with IPB
 

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

CPG integration with IPB

Started by Geeck, December 29, 2005, 02:26:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Geeck

Hi,

I have problems integrating CPG 1.4.2 with Invision Power Board 2.1.3
The problem is that I have those two on other domains:

Forum is http://forum.olesnica.org.pl
Gallery is http://galeria.olesnica.org.pl

How can I integrate that? There is a problem with redirections. I managed solve this partially. Just copied conf_global.php from forum dir to coppermine folder. Now it redirects me to forum login page but after entering correct data and pressing Log me in button redirect fails (it merges those two addresses).

Anyone can help? Besides. Is it possible to write such bridge file that would just connect to IPB database and extract login/pass but CPG login/logout/edit user pages would be used?


Geeck

I don't have any error messages. I wrote clearly where problem lies.

Once again. I don't have forum and gallery on the same domain but on other. Is it possible somehow to bridge?

Nibbler

Yes it's possible. The bridge is not enabled and you haven't provided a test account so there is no way that I can see what happens when you attempt to login.

Geeck

I will provide those in a moment.

BTW. The test account must be created in gallery or forum?

Geeck

Account created (forum):
login: test
pass: pass

Bridge is enabled.

(sorry for two posts)

Nibbler

You need to set your forum's cookie domain to .olesnica.org.pl for the bridge to work. I don't think IPB supports redirection back to Coppermine after login.

Geeck

Cookie domain helped! That is so great. But is there really NO way to redirect back properly to Coppermine? Maybe some small change in code?

Nibbler

It would be a change to the IPB code, which I neither know nor have legal access to.

Geeck

I have an idea. If it works I'll post it here.

One more thing. After I login using bridged Coppermine (so my login and password are taken from forum database) I'm treated as normal registered user in Coppermine, not as an admin (and I am admin of both forum and gallery). Why?


Geeck

Now works great :) Thanks!

Right now I'll try to workaround redirection bug somehow.

Geeck

Oh... there is a big bug. The user ID does not match at all.
My user ID in forum's database is "6" and in gallery is "2". I've changed the gallery ID value manually from "2" to "6" and still gallery is showing me as user with ID "2", not "6".

Can I fix that?

Joachim Müller

when bridging is enabled, the user id in coppermine doesn't matter.

Geeck

Before bridge process I had user ID "2" in Coppermine. Now after that Coppermine still shows my old ID ("2"), but in forum I've got "6". So it is ok (if the Coppermine user id now doesn't matter)? Shouldn't it fetch PROPER user id?

Geeck


Nibbler

Any accounts you had in Coppermine before you made the bridge are 'forgotten' while bridged.

Geeck

So all the bridging thing is for nothing to me. I just wanted to keep all albums and users in gallery but get login and pass from IPB database (and user group). That's a pity :(

Nibbler

Refer to the documentation:

Quote5.2.3 Coppermine users, groups and pics uploaded by users are lost when integrating

Warning: If you already have users and custom groups in your coppermine database when you enable bbs integration, be aware that they will be lost. If your coppermine users have already created private albums and uploaded pics to them, they will be lost as well!

Geeck

Yes, I know.
Well maybe someday such thing will be possible, who knows.