coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: fabienp on May 30, 2006, 11:37:52 AM

Title: Autologin to Coppemmine
Post by: fabienp on May 30, 2006, 11:37:52 AM
Hello,

I have installed Coppermine on my member zone of my site. The tables of member are connected, so the user who connect to his member zone should already connected to coppermine, but i can simulate autologin with coppermine.

Can you tell me how it works ? I tried with cookies but i don't understand of what is composed this cookie (id of member ?) ?

Please, help me it's urgent.
Title: Re: Autologin to Coppemmine
Post by: Stramm on May 30, 2006, 12:54:44 PM
if (defined('UDB_INTEGRATION')) $cpg_udb->login_page();
if ( $USER_DATA = $cpg_udb->login( $user_name, $password, true) )  {
photoshop_refresh($_SERVER['PHP_SELF'].'?file=photo_shop/photo_shop_checkout');       


that's how I did it. I was in need of a combined signup or login page. After the code that sends the signup confirmation I've placed that piece code.
The function photoshop_refresh just redirects to another url after logging the user on

function photoshop_refresh($redirect) {
global $lang_info;

            pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"0;url={$redirect}\">");
            pagefooter();
            ob_end_flush();
exit;
}


edit: you can test it if you check my sig. Add something to the shopping basket and then checkout (don't be afraid... it's a demo site and you won't order anything, hehe )
Title: Re: Autologin to Coppemmine
Post by: fabienp on May 30, 2006, 01:57:03 PM
??????????????????????????
Title: Re: Autologin to Coppemmine
Post by: Stramm on May 30, 2006, 02:00:09 PM
Ahh.. sorry, after reading again what you've written I thionk you mean you want to bridge your gallery with your  bulletin board. For that read the docs http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating
Title: Re: Autologin to Coppemmine
Post by: fabienp on May 30, 2006, 02:08:11 PM
I understand nothing to this. I have a table of member and groups indepently of coppermine. How can i connected this tables and do the autolig working ?

Can you explain how to do this ?

Thank's
Title: Re: Autologin to Coppemmine
Post by: Stramm on May 30, 2006, 02:28:36 PM
If you use on of the supported bulletin boards it's not a problem at all. But if you use a custom system you'll have to come up with an own solution. In that case you should have a look at one of the existing bridge files and customize the one that comes close to your needs
Title: Re: Autologin to Coppemmine
Post by: fabienp on May 30, 2006, 02:47:49 PM
 ??? ??? ??? ??? ???
Title: Re: Autologin to Coppemmine
Post by: fabienp on May 30, 2006, 02:59:52 PM
Sorry,

i really undersatnd nothing to the bridge. I want to do this :

- The member connect to its member zone of my site.
- When he clicked on link of coppermine, i want that i still directtly connected to coppermine without connect by login page of coppermine

Can you explain me in details how can i do this and if it is possible, please ? A little sample ?

Thank's
Title: Re: Autologin to Coppemmine
Post by: Joachim Müller on May 31, 2006, 12:24:28 AM
The samples are the existing bridge files. If you don't understand, then you're stuck.