Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2   Go Down

Author Topic: CPG integration with IPB  (Read 14567 times)

0 Members and 1 Guest are viewing this topic.

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
CPG integration with IPB
« on: December 29, 2005, 02:26:24 pm »

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?
« Last Edit: December 29, 2005, 03:54:44 pm by Nibbler »
Logged

Nibbler

  • Guest
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #2 on: December 29, 2005, 02:59:12 pm »

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?
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #3 on: December 29, 2005, 03:01:54 pm »

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.
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #4 on: December 29, 2005, 03:03:48 pm »

I will provide those in a moment.

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

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #5 on: December 29, 2005, 03:09:54 pm »

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

Bridge is enabled.

(sorry for two posts)
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #6 on: December 29, 2005, 03:16:47 pm »

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.
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #7 on: December 29, 2005, 03:21:20 pm »

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?
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #8 on: December 29, 2005, 03:32:06 pm »

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

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #9 on: December 29, 2005, 03:36:38 pm »

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?
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #10 on: December 29, 2005, 03:43:01 pm »

Try this.
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #11 on: December 29, 2005, 03:48:22 pm »

Now works great :) Thanks!

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

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #12 on: December 29, 2005, 04:26:04 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG integration with IPB
« Reply #13 on: December 29, 2005, 05:45:40 pm »

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

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #14 on: December 29, 2005, 06:00:22 pm »

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?
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #15 on: December 29, 2005, 08:41:20 pm »

So, no ideas why that happens?
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #16 on: December 29, 2005, 08:45:19 pm »

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

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #17 on: December 29, 2005, 08:48:35 pm »

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 :(
Logged

Nibbler

  • Guest
Re: CPG integration with IPB
« Reply #18 on: December 29, 2005, 09:04:13 pm »

Refer to the documentation:

Quote
5.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!
Logged

Geeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CPG integration with IPB
« Reply #19 on: December 29, 2005, 09:09:41 pm »

Yes, I know.
Well maybe someday such thing will be possible, who knows.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.021 seconds with 19 queries.