coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Mouth on May 22, 2005, 02:58:59 PM

Title: Integrating CPG with existing user database
Post by: Mouth on May 22, 2005, 02:58:59 PM
Hi,

My website has an existing user database, for which users pay a small processing fee (essentially to make sure they are real) to become a member. I want to integrate CPG with that user database, so that logins refer to this database. I have set the config option "Allow new user registrations" to No, as a first start and am starting to review the code. Can anyone provide any pointers or links if this has been done before? Thx.
Title: Re: Integrating CPG with existing user database
Post by: pulz on May 22, 2005, 03:48:02 PM
Your post is very unclear about the kind of database you are currently using.

I would suggest search the board and read the forum part about bridging

http://forum.coppermine-gallery.net/index.php?board=24.0

By the way coppermine also got a system for confirming real submissions by sending confirmation code emails.

(Perhaps a mod can move this to the bridging section)
Title: Re: Integrating CPG with existing user database
Post by: Mouth on May 22, 2005, 04:19:12 PM
Thanks, been through the bridging and it all seems related to integrating with forums or portals sich as phpBB, SMF, vbulletin, etc.

It's a simple table called "members" with id, email, password, etc.

I would like CPG to use this table, for user id, email address, password, etc. and it's own user table for the additional info. Thx
Title: Re: Integrating CPG with existing user database
Post by: kegobeer on May 22, 2005, 04:26:37 PM
You have to write your own custom bridge file for it, or post a request in the freelancers/paid board.  Make sure to state how much you are willing to pay for that service.
Title: Re: Integrating CPG with existing user database
Post by: Mouth on May 22, 2005, 04:31:59 PM
Quote from: kegobeer on May 22, 2005, 04:26:37 PM
You have to write your own custom bridge file for it, or post a request in the freelancers/paid board.  Make sure to state how much you are willing to pay for that service.
I'll do it myself, if it comes to that. I was merely trying not to re-invent the wheel if someone had already done something similiar or of there was some doco that described/highlighted the sections of code around logons, cookies, logged-on checks etc. I guess by your response teh answer to my query is that no-one has done it before and no doco is available. Thx.
Title: Re: Integrating CPG with existing user database
Post by: kegobeer on May 22, 2005, 04:58:24 PM
Every system is different, so there really isn't a standard way to go about it.  Sounds like you just have a user table and no login system with cookies that have to be taken into account, so it should be fairly straightforward to just pull from your table instead of the Coppermine usertable.

The dev team has made a bunch of bridge files for the more popular BBS apps, but we don't really do much for specific, one off systems.  Feel free to pull code from a bridge that gives you the most help.