forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: justal on June 07, 2006, 10:27:46 pm

Title: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Nibbler 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.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Nibbler 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.
Title: Re: Bridgin to old version of XMB
Post by: justal 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
Title: Re: Bridgin to old version of XMB
Post by: Nibbler on June 07, 2006, 11:11:14 pm
Absolutely.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Joachim Müller on June 08, 2006, 07:12:14 pm
When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php?topic=24032.0)
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Nibbler on June 08, 2006, 08:38:31 pm
Can you enable debug mode ?
Title: Re: Bridgin to old version of XMB
Post by: justal on June 08, 2006, 08:42:12 pm
Done.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Joachim Müller on June 09, 2006, 06:23:13 am
It doesn't reveal sensitive data, please leave it on for Nibbler to take a look.
Title: Re: Bridgin to old version of XMB
Post by: justal on June 09, 2006, 07:29:46 am
Ok, it has been re-enabled.

Any chance of some help.

Thanks.
Al.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Nibbler on June 11, 2006, 03:00:13 pm
Have you tried with post based groups enabled ?
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: justal 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.
Title: Re: Bridgin to old version of XMB
Post by: Nibbler 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.
Title: Re: Bridgin to old version of XMB
Post by: justal on June 13, 2006, 09:24:50 am
Hmm, that is strange... Thanks for giving it a go. I don't think any of my modifications have changed anything to do with the login/out procdure or the user permissions... I have changed the names of the default ranks within XMB, would that make a difference? (I wouldn't have thought so).

Does the bridge need php5?? My server is using 4.4.2.

Were there any clues in the debug info on my particular set up, I'm assuming there must me something different to your test set-up. What could be causing it to work OK for admins and moderators but not for other members as that seems to be the crux of my problem? I'm assuming that the fact that it does work for admins mean that the cookie info is OK, but somewhere along the lines the status of members is getting changed to a guest?

Pretty frustratiing as I feel as though I'm quite close to getting it working.

Al.