Go Back   Pligg CMS Forum > Pligg Development > Bug Report

View Poll Results: Helpful?
Helpless 0 0%
Normal 0 0%
Helpful 0 0%
Very Helpful 2 100.00%
Voters: 2. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2008, 06:05 AM
New Pligger
Pligg Version: 0.98
 
Join Date: Sep 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Fixed : UTF8 Email title for "tell a friend" and "send announment module"

Dear All,

Just want to share a bug fix for UTF8 Email title for "tell a friend" and "send announment module". This should work for all pligg version.

recommend.php(Tell a friend function)
Add the following code:

Before change(recommend.php):
Code:
if($cansend >= 10){
                  $addresses = explode(", ", sanitize($_POST['email_address'], 3));

                  mailer_start();
After change(recommend.php):
Code:
if($cansend >= 10){
                 $addresses = explode(", ", sanitize($_POST['email_address'], 3));
//Add the following line
                 $subject = "=?UTF-8?B?".base64_encode($subject)."?=";

                 mailer_start();
./modules/send_announcement/templates/sendannouncement.tpl (Send announcement module)

Add the following code:

Before(sendannouncement.tpl):
Code:
        function announcement()
        {
                global $db;
                $email = $db->get_col('SELECT user_email FROM ' . table_users . ';');

                if ($email)
                {..........
After(sendannouncement.tpl):
Code:
        function announcement()
        {
                global $db;
                $email = $db->get_col('SELECT user_email FROM ' . table_users . ';');
\\ Add the following line
                $subject = "=?UTF-8?B?".base64_encode($subject)."?=";

                if ($email)
                {.............
Wish it can help you, and please add such code on next pligg release.
Reply With Quote
Reply

Tags
recommend.php, tellafriend

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
users email on "send to friend" chad90382 Suggestions 9 11-18-2007 12:46 PM


Search Engine Friendly URLs by vBSEO 3.2.0