forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: redlock on October 27, 2006, 10:57:33 am

Title: Link at email notification
Post by: redlock on October 27, 2006, 10:57:33 am
in the email notification is following link to read at present the message:
http://www.s-bahn-berlin.de/erleben/foto-community/pms.php

user those announced do not get then however an error message

I find the following link better:
http://www.s-bahn-berlin.de/erleben/foto-community/login.php?referer=pms.php

how can I change that?
Title: Re: Link at email notification
Post by: Stramm on October 27, 2006, 11:27:42 am
easiest way would be to change thr error message... something like you need to login to use that feature or something similar.

What you want to do would lead to an error message if a user's already's logged in (Error. You are already logged in !)
Title: Re: Link at email notification
Post by: Stramm on November 04, 2006, 06:50:07 pm
can I mark this as solved or do you need help changing the error message?
Title: Re: Link at email notification
Post by: redlock on November 04, 2006, 06:57:45 pm
sorry,
i need to help
Title: Re: Link at email notification
Post by: Stramm on November 04, 2006, 07:08:08 pm
find in pms.php

Code: [Select]
if (!USER_ID) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);and replace with
Code: [Select]
if (!USER_ID) cpg_die(ERROR, "Du musst Dich <a href='login.php?referer={$_SERVER['PHP_SELF']}'>einloggen</a>, um Deine PNs zu lesen ", __FILE__, __LINE__);
Title: Re: Link at email notification
Post by: redlock on November 04, 2006, 07:42:09 pm
after the replace:

Parse error: parse error, unexpected ';' in /home/192839/html/erleben/foto-community/pms.php on line 13

any idea?
Title: Re: Link at email notification
Post by: Stramm on November 04, 2006, 08:46:26 pm
try again, works as expected for me. The line you're supposed to replace is no. 9
Title: Re: Link at email notification
Post by: redlock on November 06, 2006, 12:04:44 pm
it works

thanks