forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: guygar on April 06, 2011, 07:24:13 pm
-
site: coppermine.guygar.com (http://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.
-
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.
-
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.
-
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]
i found this reading docs:
Where exactly have you found that? Please post a link.
-
hi andre,
i found the mentioned info here:
http://coppermine.guygar.com/docs/en/faq.htm#jumpToPrivateAlbum (http://coppermine.guygar.com/docs/en/faq.htm#jumpToPrivateAlbum)
-
Adjusted that part in svn revision 8222.