coppermine-gallery.com/forum

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Abbas Ali on January 31, 2006, 08:52:26 AM

Title: Smilies coming broken in notification email
Post by: Abbas Ali on January 31, 2006, 08:52:26 AM
The smilies were coming broken in comment notification emails. Fixed it by modifying db_input.php

Fix committed to devel and stable. Please confirm.

For those who want to fix manually.....

Edit db_input.php

Replace (around line 152)


$mail_body = "<p>" . bb_decode(process_smilies($msg_body)) . "</p>\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'].(substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').$redirect;


with


$mail_body = "<p>" . bb_decode(process_smilies($msg_body, $CONFIG['ecards_more_pic_target'])) . "</p>\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'].(substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').$redirect;



Abbas
Title: Re: Smilies coming broken in notification email
Post by: Nibbler on February 20, 2006, 04:15:50 AM
That fixed it for anonymous users only, for logged in users a similar line further down required modification also.

ref: http://forum.coppermine-gallery.net/index.php?topic=28072.0

Marking as fixed.
Title: Re: Smilies coming broken in notification email
Post by: Abbas Ali on February 20, 2006, 06:05:37 AM
Oops.....i missed that. Anyways thanks Nibbler.