coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: fightrice on July 18, 2005, 07:54:58 PM

Title: How to redirect straight to album pics.
Post by: fightrice on July 18, 2005, 07:54:58 PM
Ok heres what i need done, just don't know how to/ if it can be done.

I run a photography site, and have chosen Coppermine for the software of course, and what i want to happen is when Client A logs in, they go straight to their album without having to go threw all the other screens, or better yet, if i could have them enter their username and password and then just have their images all appear on the page immeadiately. Any help would be appreciated. thanks
Title: Re: How to redirect straight to album pics.
Post by: Nibbler on July 18, 2005, 08:10:24 PM
You can redirect to the users user gallery caetgory if you look in your login.php for

pageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

and before/above it redefine the referer:

$referer = "index.php?cat=" . (FIRST_USER_CAT + $USER_DATA['user_id']);
Title: Re: How to redirect straight to album pics.
Post by: fightrice on July 18, 2005, 08:13:38 PM
Sweet, so if i made a page with clients names, then they clicked their name, i could link it to the login.php script somehow, and then it will take them directly to their album :woot: