Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Login Logout Redirect Screen  (Read 21519 times)

0 Members and 1 Guest are viewing this topic.

guygar

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Login Logout Redirect Screen
« on: April 06, 2011, 07:24:13 pm »

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

guygar

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Login Logout Redirect Screen
« Reply #1 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?

thanks.
Logged

guygar

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Login Logout Redirect Screen
« Reply #2 on: April 06, 2011, 07:59:23 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Logout Redirect Screen
« Reply #3 on: April 07, 2011, 10:12:29 am »

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
Code: [Select]
RewriteEngine on
RewriteBase /
RewriteRule ^index.php$ thumbnails.php?album=lastup [NC]


i found this reading docs:
Where exactly have you found that? Please post a link.
Logged

guygar

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Login Logout Redirect Screen
« Reply #4 on: April 07, 2011, 12:32:23 pm »

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Logout Redirect Screen
« Reply #5 on: July 28, 2011, 10:21:52 am »

Adjusted that part in svn revision 8222.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.