forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: andre88uk on November 28, 2006, 12:39:55 pm

Title: Bridging with my site
Post by: andre88uk on November 28, 2006, 12:39:55 pm
Hey.

Having written (or wrote not sure which is gramatically correct) a website in php i got asked to install and bridge a Coppermine gallery with it.

My website is in php and uses session variables for authentication.

The variables i use are $_SESSION['Username'] and some other variables which are not relevant here.

I would like users to log into my website and be l;ogged into both.

The website can be found www.fetishparadise.co.uk/

The gallery at www.fetishparadise.co.uk/members/gallery/index.php

The members area is normally secured off and the login is in the root directory as register.php?mode=login

Thanks in advance.
Title: Re: Bridging with my site
Post by: Joachim Müller on November 28, 2006, 04:35:20 pm
Has been asked before: Coppermine can out-of-the box be bridged with a range of applications (like phpBB, SMF, vB, IPB and some others, refer to the docs for details). The needed bridge files come with the Coppermine package. There is a number of user-contributed bridge files available as well on the forum (for e107, Joomla and maybe some others) that you can use to bridge those apps with Coppermine as well.
However: if you want to bridge Coppermine with your custom app (that already has a user/groups management and authentification mechanisms), you'll have to come up with a bridge file of your own. Alas, there's no guide available how to write bridge files, so your best bet is to take a look at the existing bridge files (the ones that come with the package) and see how they work. If you know your way around in PHP, this should not be too hard. Then create a custom bridge file that fits your needs. The Coppermine devs don't create custom bridge files for you.

Joachim

P.S. Coppermine doesn't use session-driven authentification, but cookie-driven authentification.
Title: Re: Bridging with my site
Post by: andre88uk on November 28, 2006, 04:40:35 pm
Ok once the cookie is set does coppermine actually check anywhere ?

so say i set the cookie on my site login would coppermine detect that there is no user actually with tha name in the database ?

The only user would be admin.
Title: Re: Bridging with my site
Post by: Joachim Müller on November 28, 2006, 05:30:17 pm
You will have to create a custom bridge file (as I suggested). Coppermine will then read the cookie, but  this is only a first step: you'll have to tell it what to do with the cookie information. Please do as I suggested and take a look at the existing bridge files - it's impossible to teach you how bridging works just in a short posting.
Title: Re: Bridging with my site
Post by: andre88uk on November 28, 2006, 05:35:12 pm
No i know how the briding works but i was going to try to trick coppermine into thinking that users were logged in when in reality they do not even exist in the database... im not sure i am saying this how i mean it tho.

So they login on my site and i set the gallery cookie there... coppermine then thinks that they are logged in... ?
Title: Re: Bridging with my site
Post by: Joachim Müller on November 28, 2006, 06:07:29 pm
Take a look at the existing bridge files and then come up with your custom bridge file. I am not going to repeat this again. Basically, you're on your own with this. What you're up to goes unsupported.
Title: Re: Bridging with my site
Post by: tu11ym0n on February 24, 2007, 12:17:17 am
andre any luck with this?

I am in exactly in the same boat you are, and despite looking at all of the included bridge files I'm still scratching my head.

our site uses basic authentication through mod_auth_mysql so I have a users table to tap into, but all of the bridge files seem to specify a groups and a sessions table. Are these required?

Like you I was hoping Coppermine would be able to look at my users table OR use the existing session username. None of the existing bridge files seem to do that.

Hopefully a kind soul will have pity on us and enlighten us. Again, I've scoured through all of the bridge files, and it's not at all clear what needs to stay unchanged, what can be edited, what can be left out and what is required. Surely some of the brains who have developed bridge files can share their genius and break it down for us simpletons.
Title: Re: Bridging with my site
Post by: wbtst on September 09, 2010, 02:08:24 pm
i have coppermine gallery installed and i have also my website admin panel which is separate but i need to know tht wht should i do tht if web admin logins and he wish to edit albums, pics e.t.c thn he automatically logged in coppermine admin gallery at the time when he successfully logged in web admin panel so that he should not entered username pass separately for coppermine gallery. wht i mean to say is single login for admin for both coppermine gallery admin mode and web admin panel.

plz let me know (if possible) tht wht cookie var names are? and in which file i could find them?

any suggestions/solutions plz?
thnks in advance
Title: Re: Bridging with my site
Post by: wbtst on September 09, 2010, 02:11:16 pm
plz let me from where i can download the custom bridge files and where i need to upload them if i would be able to build my custom bridge file.

any suggestions?
Title: Re: Bridging with my site
Post by: Joachim Müller on September 21, 2010, 08:12:25 am
Locking