Share user profile with other applications Share user profile with other applications
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Share user profile with other applications

Started by Bluebair, July 25, 2006, 12:03:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bluebair

Hi,

I'm new here, for some time working on my new website and recently installed Coppermine.
Untill now everything looks great no probs installing and runs perfectly.
But since I'm stille developping my site I was discovering the features of Coppermine.

I searched for a long time and didn't find the answer to my question and I didn't really know under witch topic to post it.

I want to make a registration on my site with userprofile just like in Coppermine, but can I use the same useraccount as in Coppermine so my users need to log in only one time?

If so, how?

Thanks for you reply.


Joachim Müller

Not sure what you're asking for. Are you asking for yet another registration page? That's pointless imo, make your users fill in the custom user fields during registration instead and use those fields. If you're requesting to create a page that contains non-coppermine content but comes with coppermine's look and feel (navigation and that stuff as well as user authentification using the cookie already set by coppermine), then create a new file within your coppermine root folder, name it anything.php and paste this into it:<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your page title here');

// Your actual page content starts here
?>

Hello world


<?php
pagefooter
();
ob_end_flush();
?>



On the other hand, if you want another application to re-use the content from coppermine, you'll have to come up with custom queries against coppermine's tables in the database - there's little advice we could give you, as we can't know what you're up to.
If this is not what you're looking for, post more details what you actually want to accomplish.

Bluebair

What I want is that visitors register on the homepage of my site and make a profile. At the same time they should be logged into Coppermine with the same account so they don't need to register twice.

It should be possible to register and log in outside of coppermine and when they are logged in on the homepage, the moment they open Coppermine they should be logged in already.


Also, is it possible to create more fields in the profile?

Joachim Müller

You'll have to create a custom bridge file for your site's user authentification scheme. Not a trivial task, advanced PHP skills needed. Take a look at the existing bridge files, modify one that fits your needs most.

Bluebair

Thanks GauGau,

But for now I think I will look for a good registration PHP script and run it apart from Coppermine.

My php-skills are not good enough to try this and Coppermine is running fine now, would like to keep it this way.

Maybe later,

Thanks


Any other suggestions are always welcome if any of you has done a similar thing.

Joachim Müller

Well, if you don't have that auth app ready, why don't you use coppermine's auth or the auth of an app that can already be bridged with Coppermine (e.g. SMF)?

Bluebair

Offcourse, I am now googling for a good script, but if you can help me with that it would be great.

I do need a 'full option program' =


  • username, password
  • e-mail verification
  • user-profile with optional fields
  • who is online?
  • latest registration
  • ... all customisable offcourse

In fact something like the phpbb-one!

It would be perfect if it's easy to bridge with Coppermine.

Joachim Müller

All of this does Coppermine have, I don't understand why you keep insiting on using another auth system. If you're not proof against suggestions, then go for SMF if you must have another app. It comes with SSI.php, which is great for third-party pages.

Bluebair

No, sorry, I just didn't come across SMF yet.
Now I found it and will give it a go. Seems very OK
If I have any more problems bridging I know where to find you.

Thanks