How do I intergrate users from another database not a BB? How do I intergrate users from another database not a BB?
 

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

How do I intergrate users from another database not a BB?

Started by bangers, February 09, 2005, 11:42:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bangers

Can anyone help?

I want my version of coppermine to allows users to login who details I have on another database, rather than the database I have setup for coppermine. Is this possible?

I have read much about bridging files and phpBB intergration, which looks like I'm on the right track but I'm no php expert so don't know what I need to change.

I would have thought that what I want to do is easier than intergrating coppermine with another app as all I want it to do is get its users from a different database and therefore all I should need to do is create a connection to another db and have coppermine look for users and passwords from the correct tbl and corresponding fields, someone else might be able to tell me otherwise,

Pleeeease help,
Regards
bangers



Hein Traag

For those who might be able to help out (not a db wizzard myself) please post a link your site and gallery and tell us what sort of a database it is that you have the user data stored in.

bangers

Thanks for the quick reply.

link to site (not live yet but customer on my back): http://www.paulmcginley.net/ism/sites/mcginley/

link to gallery: http://www.paulmcginley.net/ism/sites/mcginley/gallery/index.php

I'm using a MySql database which has been used for over a year on various other sites whos users I want to have access to all the gallery features on this site.

Cheers
Bangers

Nibbler

You would need to make a custom bridge file, which does need php knowledge I'm afraid.

bangers

If someone could show me an example of a custom bridge file which would work, and tell what I would need to change within the document aswell as other documents I would be willing to have ago. I've done it many times before.

I have all the information I need to make a the database connection and know the fields and table in which I have the user info.

I am able to change field names etc in documents but wouldn't be able to write the basic script. I just need to know what documents I need to create and what documents I need to change the following info...

For anyone who is able to help I do know my:
Database Name 
User Name
Password
Host Name

tblNames
fieldNames

I would really appreciate anyone's help,
Regards
Bangers

bangers

I could still really do with some help on this. I don't think it should be too difficult for someone to explain but realise I could be under estimating the difficulty of what I am trying to do.

I have gone away and looked at some of the bridging files you have for bb's and can see these are very similar to other files I have had to change for other apps so that they connect and talk to my database. The only problem is I don't know which one to copy as a basis for my custom bridging file.

I can also see that I would need to add a line in the file: include/init.inc.php which would refer to my new custom file.

What I don't know is: what further files I would need to crete if any.
What other files I would need to make changes to, in order for coppermine to look for user data  in the right place.

Once again if anyoe could help I would be very grateful.
regards
Bangers

Nibbler

That's all you need to do, just take the simplest bridge file as your base, they all do basically the same thing. You may need to use a cookie though to remember the login details if your existing system is purely a database.