forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: miqrogroove on January 13, 2009, 08:39:21 pm

Title: XMB Bridge Obsolete
Post by: miqrogroove on January 13, 2009, 08:39:21 pm
We just had a Coppermine question over at xmbforum.com.  I tracked down the cpg1419/bridge/xmb.inc.php file, and it does not appear to be compatible with any version of XMB released since 2006.  Can this be updated to prevent confusion?
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 21, 2009, 09:12:12 pm
How to interpret total lack of response here?
Title: Re: XMB Bridge Obsolete
Post by: Nibbler on January 21, 2009, 09:21:07 pm
If someone posts an updated file we will include it. If they don't we won't.
Title: Re: XMB Bridge Obsolete
Post by: Joachim Müller on January 22, 2009, 09:16:21 am
Clarification: the coppermine devs usually don't develop nor maintain bridge files for exotic third-party apps. We expect bridge files to come as contributions from the corresponding communities - in this case, from the xmb community. If the community will provide a working bridge, that's fine - we'll include it with future releases. If the xmb community doesn't, we can't help this.
The bridging ability of coppermine is an extra feature that coppermine used to have first (before all of the "competing" gallery applications came up with a similar thing, more or less). Coppermine has been designed initially with bridging in mind at a very early stage.
However, the coppermine devs simply can not keep up with the progress of development for all the bridging apps: we'd need to maintain way to many testbeds and we'd have to keep way to many applications up-to-date. That's something we simply can't do.
Seen in relation to the popularity of phpBB, xmb is an exotic application. We don't have the time to look into the bridge file for xmb, sorry.
Applications that could potentially be bridged with coppermine go by the thousands: in fact, every application that has it's own user management could be used for bridging purposes, provided that someone comes up with a bridge file. There are constantly requests by users to see particular bridge files developed. The answer remains the same: the bridge file needs to come from the community. Strong communities will provide one. Not-so-strong communities can't, which is a pity, but we can't help.
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 23, 2009, 08:32:44 pm
I saw the documentation for installing a Coppermine bridge, but I could not find any documentation for writing one.  Since I only know the XMB system, how can I possibly contribute to this?
Title: Re: XMB Bridge Obsolete
Post by: phill104 on January 23, 2009, 11:25:40 pm
Have you looked at the bridge files (attached to this post)?

If you know xmb well it should not be too hard to chage the file to work with the latest xmb.

As you say, you do not know coppermine. The same goes for the coppermine devs, they do not know XMB. They rely on users who know both to develop a bridge for the more exotic apps like XMB.

Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 26, 2009, 12:44:21 am
Have you looked at the bridge files (attached to this post)?

Yes, but like I said I don't recognize anything in there other than the XMB variable names.  Maybe you could help explain these other things?

Code: [Select]
$this->use_post_based_groups = 1;
$this->multigroups = 1;
$this->group_overrride = 1;

$this->page = array(
'register' => '/register.php',
'editusers' => '/misc.php?action=list',
'edituserprofile' => '/member.php?action=viewpro&member='
);

// Group ids
$this->admingroups = array(8,9);
$this->guestgroup = 3;

$udb_groups = array(3=>'Guests');

$udb_groups[$row['id']+100] = utf_ucfirst(utf_strtolower($row[$this->field['grouptbl_group_name']]));

return array($this->get_user_id($_COOKIE['xmbuser']), $_COOKIE['xmbpw']);
Title: Re: XMB Bridge Obsolete
Post by: justal on January 27, 2009, 02:59:20 pm
I'm trying to bridge Coppermine with XMB too....

I have managed it successfully in the past with older versions of XMB, but if I enable bridging with the latest version I get a message in Coppermine saying 'Not allowed to run this file directly.'

Does anyone have any ideas how to fix this?

Thanks,
Alan.
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 28, 2009, 12:17:35 am
Since there doesn't seem to be any real support here, I will install Coppermine on our testing site and see if I can pick this apart by myself.
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 28, 2009, 08:22:15 am
Done.

http://svn.xmbforum.com/wsvn/XMB/hacks/trunk/coppermine-bridge/

Enjoy.
Title: Re: XMB Bridge Obsolete
Post by: phill104 on January 28, 2009, 08:37:37 am
Well done that man.

Zipped and attached to this post.
Title: Re: XMB Bridge Obsolete
Post by: Joachim Müller on January 28, 2009, 10:45:57 am
I saw the documentation for installing a Coppermine bridge, but I could not find any documentation for writing one. 
Sorry, there is no such documentation that explains how to write a bridge.

Done.
Great, thanks. I have added your contribution to the SVN, so it will be in cpg1.4.20
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 28, 2009, 08:33:41 pm
Do me a favor and add this in there

http://svn.xmbforum.com/wsvn/XMB/hacks/trunk/coppermine-bridge/xmb.inc.php?op=diff&rev=1693

I had to undo a change in the "cookie fix" part of the header.
Title: Re: XMB Bridge Obsolete
Post by: Joachim Müller on January 29, 2009, 07:22:23 am
Done in rev 5706, see http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.4.x/bridge/xmb.inc.php?view=log (http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.4.x/bridge/xmb.inc.php?view=log)
Title: Re: XMB Bridge Obsolete
Post by: miqrogroove on January 30, 2009, 12:24:33 am
Thanks.  Consider it "Solved"  8)