Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Bug Report



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

Found or fixed a small bug in Pligg? Post it here so we can update appropriately.


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

 
 
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
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.
Sponsor
  #2 (permalink)  
Old 12-31-2008, 04:32 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Dec 2008
Posts: 7
what does this change?
  #3 (permalink)  
Old 02-06-2009, 09:59 PM
Donor
Donation Level 2 
 
Join Date: Jun 2007
Posts: 284
thank you

this is i searching for

Buy Now Pligga - The Exclusive Pligg 1.0 Template With! Extra Styles Support Pligg 1.0 Finaltechkr
 

Tags
recommend.php, tellafriend

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
users email on "send to friend" chad90382 Suggestions 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! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development