Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Email To Post Extension Not Display Text In Topic [solved], this extension show php code
SimpleTheBad
post May 7 2012, 08:20 AM
Post #1


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



Dear admin

My system is joomla 2.5.4
PHP Version 5.2.17

Configure Command './configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'

Цитат
Safe Mode Off
Open basedir /home/myweb/:/tmp:/var/tmp:/usr/local/lib/php/
Display Errors On
Short Open Tags On
File Uploads On
Magic Quotes On
Register Globals Off
Output Buffering Off
Session Save Path None
Session Auto Start 0
XML Enabled Yes
Zlib Enabled Yes
Native ZIP Enabled Yes
Disabled Functions None
Mbstring Enabled Yes
Iconv Available Yes

I cant use this extension well
I need some help.

can you suggest me to pass this problem

when i config email to post extension. it can import email to article in Joomla but wrong subject.

example this show in article manager

=?UTF-8?B?4Lir4Lix4Lin4LiC4LmJ4Lit4LmD4Lir4Lih4LmIOiDguKrguK3guJrguJbguLLguKHguJzguLnguYng
uKPguLnguYkg4Lic4Lih4LiI4Liw4LiX4LizQXBwIOC5geC4muC4muC4meC4teC5ieC5g+C4mSBGYWNl
Y
m9vayDguKHguLXguKfguLTguJjguLXguKLguLHguIfguYTguIfguITguLHguJogKOC4oeC4teC4o+C4u
e
C4m+C4leC4seC4p+C4reC4ouC5iOC4suC4h+C4hOC4seC4mik=?From: "xxx.com"



this is my email detail
my email subject is "หัวข้อใหม่: สอบถามผู้รู้ ผมจะทำApp แบบนี้ใน Facebook มีวิธียังไงคับ (มีรูปตัวอย่างคับ)"
my email source is"
Subject: =?UTF-8?B?4Lir4Lix4Lin4LiC4LmJ4Lit4LmD4Lir4Lih4LmIOiDguKrguK3guJrguJbguLLguKHguJzguLnguYng
uKPguLnguYkg4Lic4Lih4LiI4Liw4LiX4LizQXBwIOC5geC4muC4muC4meC4teC5ieC5g+C4mSBGYWNl
Y
m9vayDguKHguLXguKfguLTguJjguLXguKLguLHguIfguYTguIfguITguLHguJogKOC4oeC4teC4o+C4u
e
C4m+C4leC4seC4p+C4reC4ouC5iOC4suC4h+C4hOC4seC4mik=?=
From: "xxx.com" <admin@xxx.com>"

this component can import email but cannot display correct topic
Can you advise me how to solve this problem .
Thank you in advance.PHP Settings
Go to the top of the page
 
+Quote Post
Web Design Seo
post May 7 2012, 08:51 AM
Post #2


Web Design Seo
****

Group: Root Admin
Posts: 4,167
Joined: 29-April 09
From: Sofia
Member No.: 1



1. What extension you use?
2. What version?
3. Read link in my signature how to receive support and make all of this step by step.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
SimpleTheBad
post May 7 2012, 09:28 AM
Post #3


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



Цитат(Web Design Seo @ May 7 2012, 03:51 PM) *
1. What extension you use?
2. What version?
3. Read link in my signature how to receive support and make all of this step by step.



1. What extension you use?
the extension name is "Post by Email "

2. What version?

i not sure about version in file name it said "post_by_email_pro_j17_1.5.0.zip"
but in XML file details is "
Код
<name>COM_POST_BY_EMAIL</name>
<author>3D Web Design</author>
<creationDate>22 April 2012</creationDate>
<license>GNU/GPL http://www.gnu.org/copyleft/gpl.html</license>
<authorEmail>admin@3dwebdesign.org</authorEmail>
<authorUrl>www.3dwebdesign.org</authorUrl>
<version>1.5.1</version>"


3. Read link in my signature how to receive support and make all of this step by step.
3.1. Please, first try to use Advanced search to find decision of Your problem.
-I not found any answer that can solve my problem from your forum

3.2. Switch on Error reporting in Global configuration of Joomla:
-I set Error reporting to "maximum"

3.3 After this, try to use extension again, if some error appear, save text from error. If You have some error log on your server, find error from this component and save text.
-I use "IMPORT" link again everything work fine but topic still cannot read


3.4Than POST new topic here: http://3dwebdesign.org/forum/index.php?showforum=24. Post in created from You topic error (if present) and more info about your problem: version of your joomla and version of extension, your host and server configuration.
-this is thelink for question I just post everything above.

3.5Create one temporary admin account for us to see problem in your site and send login data to our email or send us from here PM with login data.
-i sent PM subject "user name and password for support" to you.

thank you for support me.

This post has been edited by Web Design Seo: May 7 2012, 09:45 AM
Go to the top of the page
 
+Quote Post
Web Design Seo
post May 7 2012, 09:47 AM
Post #4


Web Design Seo
****

Group: Root Admin
Posts: 4,167
Joined: 29-April 09
From: Sofia
Member No.: 1



This is post by email pro - version for joomla 1.7/2.5.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
SimpleTheBad
post May 7 2012, 10:00 AM
Post #5


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



QUOTE (Web Design Seo @ May 7 2012, 04:47 PM) *
This is post by email pro - version for joomla 1.7/2.5.


Thank you for reply.

Is enough for my information.
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post May 7 2012, 02:05 PM
Post #6


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Hello.

The problem seems to be that the iconv-mime-decode PHP function is unavailbale on your server, which is very strange as your PHP version is 5.2.17...

Please try the following:

1. Open the controller.php in /administrator/components/post_by_email/
2. Find the following code (line 595):

Код
$subject = function_exists('iconv_mime_decode') ? iconv_mime_decode($subject, 2, 'UTF-8') : wp_iso_descrambler($subject);


Replace it with:

Код
if (function_exists('iconv_mime_decode'))
    $subject = iconv_mime_decode($subject, 2, 'UTF-8');
else {
    $res = imap_mime_header_decode($subject);
    $subject = empty($res[0]->text) ? $subject : $res[0]->text;
}


It will try to use the imap_mime_header_decode function if iconv_mime_decode is missing.

Best regards,

Ivan
Go to the top of the page
 
+Quote Post
SimpleTheBad
post May 8 2012, 03:02 AM
Post #7


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



Цитат(Ivan Stamenov @ May 7 2012, 09:05 PM) *
...


thank for help but this cannot solve my problem.

i fix that code as your advise

but text in subject still cannot read


and i can confirm my server has well config with iconv_mime_decode function
this is a code from my server

<?php
echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=",0, "ISO-8859-1");
echo "<br/>";
$subject = " =?TIS-620?B?UmU6IKLN47rgyrnNw9Kk0iCk6NIgZA==?= =?TIS-620?B?ZWRpY2F0ZWQgc2VydmVyICsgpOjS4Kro0iDD0sLgtNc=?= =?TIS-620?B?zbk=?=";
if (function_exists('iconv_mime_decode')){
echo "CONFIRM function iconv_mime_decode exists<br/>";
$subject = iconv_mime_decode($subject, 2, 'UTF-8');
}else{
echo "CONFIRM function iconv_mime_decode <FONT COLOR=#FF0000>notexists</FONT><br/>";
$res = imap_mime_header_decode($subject);
$subject = empty($res[0]->text) ? $subject : $res[0]->text;
}
$subject = explode('::', $subject);
$subject = $subject[0];
$subject = empty($subject) ? $default_subject : trim($subject);
$subject = mb_ereg_replace("[[:blank:]]+",' ',$subject);
echo $subject;

?>
result is correct i cant read email header


can you help us find the way to solve this problem.

you can try this script from my server

**link PM to you.
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post May 8 2012, 07:40 AM
Post #8


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



I did the same on one of the our servers - it worked... Please send us a test e-mail (subject in Thai) at test_test@3dwebdesign.org . I will examine what is happening. I will keep you informed.

Best regards,

Ivan
Go to the top of the page
 
+Quote Post
SimpleTheBad
post May 8 2012, 07:59 AM
Post #9


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



QUOTE (Ivan Stamenov @ May 8 2012, 02:40 PM) *
I did the same on one of the our servers - it worked... Please send us a test e-mail (subject in Thai) at test_test@3dwebdesign.org . I will examine what is happening. I will keep you informed.

Best regards,

Ivan


the email was send.

thank for help. smile.gif
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post May 8 2012, 09:06 AM
Post #10


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Цитат(SimpleTheBad @ May 8 2012, 07:59 AM) *
the email was send.

thank for help. smile.gif


Okay... My bad sad.gif

The mime-encoded message subject gets broken because of the quoted-printable soft line breaks when unfolding the message. Here is a quick fix:

1. Open the same file: /administrator/components/post_by_email/controller.php

2. Find the following lines (rows 582-583):

Код
//soft line breaks - quoted-printable encoded messages
$message = str_replace("=\r\n", '', $message);


Replace it with:

Код
//preserve the ?= pairs
$message = str_replace("?=\r\n", 'pbm?=pbm', $message);
//soft line breaks - quoted-printable encoded messages
$message = str_replace("=\r\n", '', $message);
//restore the ?= pairs
$message = str_replace('pbm?=pbm', "?=\r\n", $message);


3. A few lines bellow find the following code block:

Код
if ( FALSE !== ($start = stripos($header, "\nSubject:")) ) {
     .......
}


Replace it with:

Код
if ( FALSE !== ($start = stripos($header, "\nSubject:")) ) {
        $endline = strpos($header, "\n", $start+9);
        $line = FALSE !== $endline ? trim(substr($header, $start, $endline-$start), "\r\n\t ") : trim(substr($header, $start), "\r\n\t ");
        $subject = mb_ereg_replace("[[:blank:]]+",' ', trim(substr($line, 8),"\r\n\t "));
        if (function_exists('iconv_mime_decode'))
                    $subject = iconv_mime_decode($subject, 2, 'UTF-8');
        else if (function_exists('imap_mime_header_decode')) {
                $res = '';
                foreach(imap_mime_header_decode($subject) as $chunk)
                            $res .= $chunk->text;
                $subject = $res;
        }
        $subject = empty($subject) ? $default_subject : trim($subject);
        if ('com_content' == $target && '1' == $check_content_duplicate) {
                    $db->setQuery("SELECT COUNT(id) FROM `#__content` WHERE title = ".$db->quote($subject));
                    if ((int)$db->loadResult())
                                  continue;
        }
}


Please give it a try.

Best regards,

Ivan
Go to the top of the page
 
+Quote Post
SimpleTheBad
post May 8 2012, 10:14 AM
Post #11


Newbie
*

Group: Members
Posts: 6
Joined: 7-May 12
Member No.: 1,183



QUOTE (Ivan Stamenov @ May 8 2012, 04:06 PM) *
...
Ivan


WOW it's work
great job.

This problem was resolved.
Go to the top of the page
 
+Quote Post
Web Design Seo
post May 8 2012, 12:35 PM
Post #12


Web Design Seo
****

Group: Root Admin
Posts: 4,167
Joined: 29-April 09
From: Sofia
Member No.: 1



If you like our extension and our work, please, write review in JED: http://extensions.joomla.org/extensions/au...oblogging/12215


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts Post By Email To K2 Images Not Resizing
1 bossies 6,072 31st May 2019 - 10:49 AM
Last post by: Web Design Seo
No New Posts Post By Email Pro - Cron Warnings
JROUTER_MODE warnings
1 Brian Craigie 6,049 31st January 2019 - 08:42 AM
Last post by: Web Design Seo
No New Posts Post By Email, Error 500
500 error on backend
1 galamarco 5,450 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No new Pinned: Topic has attachmentsPost By Email Pro
Pro version of Post By Email component
113 Ivan Stamenov 101,591 17th January 2019 - 06:28 AM
Last post by: Web Design Seo
No New Posts Text Link Ads Deep Links Plugin за joomla
джумла плъгин
2 Web Design Seo 11,842 16th June 2017 - 01:59 PM
Last post by: Web Design Seo
No New Posts Notepad++ New Line Replace
How to find and replace new line in Notepad++
0 Web Design Seo 3,429 8th December 2016 - 01:45 PM
Last post by: Web Design Seo
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 23,358 2nd May 2016 - 07:04 AM
Last post by: Web Design Seo
No New Posts Post By Email Using Mms On A Mobile Phone
1 alexilio 14,439 13th April 2016 - 09:44 AM
Last post by: Web Design Seo
No New Posts Post By Email Jomsocial - Unable To Post To Wall
3 uglykidjoe 9,680 11th February 2016 - 07:25 AM
Last post by: Web Design Seo
No New Posts Post By Email Doesn't Works
1 cranky69 16,053 1st December 2015 - 10:30 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 5th December 2019 - 11:08 PM
Clicky Web Analytics