Bridging with my site Bridging with my site
 

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

Main Menu

Bridging with my site

Started by andre88uk, November 28, 2006, 12:39:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andre88uk

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.

Joachim Müller

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.

andre88uk

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.

Joachim Müller

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.

andre88uk

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... ?

Joachim Müller

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.

tu11ym0n

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.

wbtst

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

wbtst

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?

Joachim Müller