Login Logout Redirect Screen Login Logout Redirect Screen
 

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

Main Menu

Login Logout Redirect Screen

Started by guygar, April 06, 2011, 07:24:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guygar

site: coppermine.guygar.com

i have modified my coppermine so it loads the 'last additions' page instead of the index.php

the issue is when i login or logout the process redirects to index.php

i am thinking i have to change the redirect URL in the login and louout.php files.

Where can i find info regarding this type of modifications?

Thank you.

guygar

i was also wondering if this issue can be handled using .htaccess redirect? i.e. everytime index.php is called it redirects to 'last additions' page?

thanks.

guygar

i found this reading docs:

------------------
How can I send a user directly to his private album once he logs in?
edit
login.php
and search for
pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

and add before it
$referer = 'index.php?cat='.(FIRST_USER_CAT+$USER_DATA['user_id']);

------------------

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

in the file.

please advise.

Αndré

Quote from: guygar on April 06, 2011, 07:39:49 PM
i was also wondering if this issue can be handled using .htaccess redirect? i.e. everytime index.php is called it redirects to 'last additions' page?
Just add a new rewrite rule like
RewriteEngine on
RewriteBase /
RewriteRule ^index.php$ thumbnails.php?album=lastup [NC]



Quote from: guygar on April 06, 2011, 07:59:23 PM
i found this reading docs:
Where exactly have you found that? Please post a link.


Αndré

Adjusted that part in svn revision 8222.