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: Bridgin to old version of XMB  (Read 10027 times)

0 Members and 1 Guest are viewing this topic.

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Bridgin to old version of XMB
« on: June 07, 2006, 10:27:46 pm »

I have a completely and utterly hacked and very old (1.6) version of XMB. Is it possible to bridge this with CPG and how would I go about doing it?

Upgrading to a newer version of XMB probably isn't a viable solution as I have built lots of extra php modules around the 1.6 verison of XMB and wouldn't want to ahve to rewrite them all. I'm sure a bridge must be possible as the members and ranks database tables haven't changed much within XMB, I'm not so sure about the cookie settings though??

Cheers.
Al.
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #1 on: June 07, 2006, 10:34:32 pm »

Try the available bridge and see what happens. That version requires a cookie fix

Code: [Select]
/*

Cookie fix (if your board is not installed to site root):

functions.php,

find put_cookie function definition (c. line 1414) and add

$path = '/';

just inside the top of the function

*/

So try that if your accounts are not recognised by Coppermine.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #2 on: June 07, 2006, 10:53:54 pm »

Thanks... I've tried it locally on a test server but can't login to CPG when I have bridging enabled... there isn't a put_cookie function in the functions.php file within my version of XMB so I sort of got stuck there... there are $cookiepath and $cookiedomain variables within the config.php file though which may need to be altered instead?

Al.
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #3 on: June 07, 2006, 10:59:02 pm »

You need to make sure the cookie can be read from where you have Coppermine, so the path should be /. I can't really help you since I don't have a test install or access to yours.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #4 on: June 07, 2006, 11:03:03 pm »

OK, thanks for you help. If I try it on a live server over the next few days is it likely that you'll to be able help me if I give you the details you need?

Al
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #5 on: June 07, 2006, 11:11:14 pm »

Absolutely.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #6 on: June 08, 2006, 03:05:09 pm »

Thanks Nibbler...
I have now uploaded everything to a live server and enabaled bridging... It seems tobe working for Administrators and Moderators in that when they login using the XMB login procedure they are also logged in to CPG, but it doesn't work for normal members.

What do you need to know in order to help me out?

Thanks.
Al.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #8 on: June 08, 2006, 07:47:18 pm »

OK... No error messages, but login isn't being carried over from BBS to CPG for normal members (It does work for Admininstrators and Moderators as far as I can tell, all of whom get logged in to CPG with Administrator privileges).

Coppermine install: http://www.forces-of-nature.co.uk/gallery/
Forum install: http://forces-of-nature.co.uk/forum/
Coppermine version: cpg1.4.7
Forum version: XMB v1.6
Test user account: testuser1 / test

BridgeManager settings:
Forum URL:  http://www.forces-of-nature.co.uk/forum
Relative path to your BBS's config file:  ../forum/
Use post-based groups?:  0 

Thanks in advance.
Al.
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #9 on: June 08, 2006, 08:38:31 pm »

Can you enable debug mode ?
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #10 on: June 08, 2006, 08:42:12 pm »

Done.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #11 on: June 08, 2006, 10:59:54 pm »

I'm going to disable the debug mode again now as I don't like leaving it on just in case it displays something sensitive... I can PM you the contents of it if that will help, or let me know when you have some time to look at it and I'll renable it.

Al.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridgin to old version of XMB
« Reply #12 on: June 09, 2006, 06:23:13 am »

It doesn't reveal sensitive data, please leave it on for Nibbler to take a look.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #13 on: June 09, 2006, 07:29:46 am »

Ok, it has been re-enabled.

Any chance of some help.

Thanks.
Al.
« Last Edit: June 09, 2006, 11:56:00 pm by justal »
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #14 on: June 11, 2006, 02:43:22 pm »

Has anyone got any ideas on this yet?? I've tried a few things but don't really know where to start... The fact that Administrators and Moderators get logged in OK seems to suggest that it is almost working, Why don't normal XMB members get logged in?

Al.
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #15 on: June 11, 2006, 03:00:13 pm »

Have you tried with post based groups enabled ?
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #16 on: June 11, 2006, 03:56:00 pm »

Yep, I gave that a quick go. I'm not really sure how the two systems integrate when post-grops are enabled though. Do I need to set anything else up as well to get them working like that??

With post based groups enabled I had exactly the same situation as with it disabled.
Al.
« Last Edit: June 11, 2006, 10:14:48 pm by justal »
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #17 on: June 11, 2006, 11:03:40 pm »

Still no joy here, but I have been looking through some of the debug info myself... I can see that the username from the XMB forums is being passed to cpg as I can see the username in one of the mysql queries listed in the debug window, but for some reaosn that person isn't being logged in (unless they are a Moderator or Adminstrator within XMB)... So, somewhere along the lines it looks as though cpg is considering any member with a rank less than a moderator to be a Guest.

I have to admit to getting a little lost when I try finding the problem within the xmb.inc.php file though.

No doubt it will be something fairly simple?

Al.
Logged

justal

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Bridgin to old version of XMB
« Reply #18 on: June 12, 2006, 11:00:59 pm »

Hi Nibbler,
Don't wish to bug you, but are you likely to have any suggestions for my problems bridging with an old version of XMB

If not, I'll probably just give up on the idea, although it would be nice to do and the fact that it works for Admins and Moderators of XMB seems to suggest that it is pretty close to working.

Cheers.
Al.
Logged

Nibbler

  • Guest
Re: Bridgin to old version of XMB
« Reply #19 on: June 12, 2006, 11:31:07 pm »

I installed 'XMB 1.6 Magic Lantern v2c' and the bridge worked fine for admin and regular accounts on an out-of-the-box install. All I had to do were some code changes to make the forum work properly on PHP5, set the cookiepath in the config file and enable the bridge. Perhaps you have mods or some more advanced user permissions set up that the bridge doesn't like.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.045 seconds with 19 queries.