Advanced search  

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

Pages: [1]   Go Down

Author Topic: Share user profile with other applications  (Read 5615 times)

0 Members and 1 Guest are viewing this topic.

Bluebair

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Paraglidinghome
Share user profile with other applications
« on: July 25, 2006, 12:03:18 am »

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

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Share user profile with other applications
« Reply #2 on: July 25, 2006, 07:15:23 am »

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:
Code: [Select]
<?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.
Logged

Bluebair

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Paraglidinghome
Re: Share user profile with other applications
« Reply #3 on: July 26, 2006, 08:08:46 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Share user profile with other applications
« Reply #4 on: July 26, 2006, 10:44:28 pm »

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

Bluebair

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Paraglidinghome
Re: Share user profile with other applications
« Reply #5 on: July 26, 2006, 10:54:55 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Share user profile with other applications
« Reply #6 on: July 26, 2006, 10:59:31 pm »

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)?
Logged

Bluebair

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Paraglidinghome
Re: Share user profile with other applications
« Reply #7 on: July 26, 2006, 11:09:27 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Share user profile with other applications
« Reply #8 on: July 26, 2006, 11:16:39 pm »

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

Bluebair

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Paraglidinghome
Re: Share user profile with other applications
« Reply #9 on: July 26, 2006, 11:29:29 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.