Fixed : UTF8 Email title for "tell a friend" and "send announment module"

Register an Account
Pligg Chat Room
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
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
  #2 (permalink)  
Old 12-31-2008, 04:32 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Dec 2008
Posts: 6
what does this change?
Reply With Quote
  #3 (permalink)  
Old 02-06-2009, 09:59 PM
Donor
Donation Level 2 
 
Join Date: Jun 2007
Posts: 283
thank you

this is i searching for
Reply With Quote
Reply

Tags
recommend.php, tellafriend

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
users email on "send to friend" chad90382 Questions and Comments 9 11-18-2007 12:46 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development