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: Display commenter's name in notification email.  (Read 5038 times)

0 Members and 1 Guest are viewing this topic.

meek

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Display commenter's name in notification email.
« on: September 20, 2005, 10:26:50 am »

Hi there.

Searched the forum but couldn't find this topic covered anywhere so I'm posting here.
Whenever I receive a notification email that a comment has been added in my gallery, the email only contains the comment and a link. I would like to have the commenter's name displayed also.

Like this: "Name of commenter: This is a comment..." Right now the email begins with "This is a comment..."

Anyone?

Thanks.
« Last Edit: September 20, 2005, 01:18:57 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Display commenter's name in notification email.
« Reply #1 on: September 20, 2005, 10:35:47 am »

db_input.php, find the 2nd occurence of this code

Code: [Select]
$mail_body = $msg_body . "\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'] . $redirect;
and you can add in the user's name

Code: [Select]
$mail_body = USER_NAME . ": " . $msg_body . "\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'] . $redirect;
Logged

meek

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Display commenter's name in notification email.
« Reply #2 on: September 20, 2005, 01:17:45 pm »

Works perfectly, thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.