coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: angeldevil on January 06, 2007, 08:01:40 PM

Title: How to redirect user after login
Post by: angeldevil on January 06, 2007, 08:01:40 PM
Hi, I've a little question:
how to automatically redirect the user in ->thumbnails.php?album=lastupby&uid=X after login?

Many tnx in advance
Title: Re: How to redirect user after login
Post by: Nibbler on January 06, 2007, 08:51:43 PM
Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;
Title: Re: How to redirect user after login
Post by: angeldevil on January 06, 2007, 09:29:27 PM
Quote from: Nibbler on January 06, 2007, 08:51:43 PM
Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;

Hi Nibbler, yes I've not bridged gallery. Tnx for the your suggestion but I've tryed it without success. After login I have been redirected in a "last uploaded by anonymous" empty page, instead of my "last uploaded by [myself]" page.
How to fix?
Title: Re: How to redirect user after login
Post by: Nibbler on January 06, 2007, 09:34:36 PM
Sorry, use

$referer='thumbnails.php?album=lastupby&uid=' . $USER_DATA['user_id'];
Title: Re: How to redirect user after login
Post by: angeldevil on January 06, 2007, 09:45:20 PM
Yes Nibbler, now all work fine!  :)

Thank you