Advanced search  

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

Pages: [1]   Go Down

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