Display commenter's name in notification email. Display commenter's name in notification email.
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Display commenter's name in notification email.

Started by meek, September 20, 2005, 10:26:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

meek

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.

Nibbler

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

$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

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

meek