Bridgin to old version of XMB Bridgin to old version of XMB
 

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

Bridgin to old version of XMB

Started by justal, June 07, 2006, 10:27:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

justal

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.

Nibbler

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


/*

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.

justal

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.

Nibbler

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.

justal

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


justal

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.

Joachim Müller


justal

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.

Nibbler


justal


justal

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.

Joachim Müller

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

justal

#13
Ok, it has been re-enabled.

Any chance of some help.

Thanks.
Al.

justal

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.

Nibbler

Have you tried with post based groups enabled ?

justal

#16
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.

justal

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.

justal

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.

Nibbler

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.