Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Smilies coming broken in notification email  (Read 4667 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.016 seconds with 18 queries.