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: Smilies coming broken in notification email  (Read 4723 times)

0 Members and 1 Guest are viewing this topic.

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Smilies coming broken in notification email
« 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)

Code: [Select]
$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

Code: [Select]
$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
« Last Edit: February 20, 2006, 04:16:45 am by Nibbler »
Logged
Chief Geek at Ranium Systems

Nibbler

  • Guest
Re: Smilies coming broken in notification email
« Reply #1 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.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Smilies coming broken in notification email
« Reply #2 on: February 20, 2006, 06:05:37 am »

Oops.....i missed that. Anyways thanks Nibbler.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.