Advanced search  

News:

cpg1.5.42 maintenance release - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix several minor issues. All fixes are not security critical, so if your gallery is running fine with cpg1.5.36, cpg1.5.38 or cpg1.5.40 you don't need to upgrade. If you are running an older version than cpg1.5.36, you must update to this latest version as soon as possible because of the security impact!
[more]

Pages: [1]   Go Down

Author Topic: Login Logout Redirect Screen  (Read 9140 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: 15171
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: 15171
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.064 seconds with 20 queries.