Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Post By E-mail Still Not Starting New Thread In Kunena
Andy Taylor
post Mar 4 2014, 02:27 PM
Post #1


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



I installed the update that you sent me a few days ago and I am STILL having an issue:

The posts are not creating a new topic still, and are always being posted in a reply to another thread.
Settings as follows:



Have tried all settings:
Post as reply yes/no
setting a thread ID or leaving this blank
Allow posts by guests yes and no
Removing reply tag (automatically gets re-inserted upon close)


Kunena 3.0.4
Joomla 3.2.2

Go to the top of the page
 
+Quote Post
pavelKukov
post Mar 4 2014, 02:33 PM
Post #2


Php programmer
****

Group: Administrators
Posts: 285
Joined: 26-November 12
From: Bulgaria
Member No.: 1,452



Цитат(Andy Taylor @ Mar 4 2014, 04:27 PM) *
I installed the update that you sent me a few days ago and I am STILL having an issue:

The posts are not creating a new topic still, and are always being posted in a reply to another thread.
Settings as follows:

Have tried all settings:
Post as reply yes/no
setting a thread ID or leaving this blank
Allow posts by guests yes and no
Removing reply tag (automatically gets re-inserted upon close)


Kunena 3.0.4
Joomla 3.2.2


Configuration for Anonymous posting:
Set "Kunena -> Allow posts by guests:" to Yes.
Set "Filters -> Accept from registered users:" to No.
You are required to set "Thread ID:". Anonymous can post only in existing threads.

Anonymous can't create new topics!


--------------------
Php programmer in 3D Web Design
Go to the top of the page
 
+Quote Post
Andy Taylor
post Mar 4 2014, 03:26 PM
Post #3


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (pavelKukov @ Mar 4 2014, 02:33 PM) *
Configuration for Anonymous posting:
Set "Kunena -> Allow posts by guests:" to Yes.
Set "Filters -> Accept from registered users:" to No.
You are required to set "Thread ID:". Anonymous can post only in existing threads.

Anonymous can't create new topics!


Its NOT supposed to be anonymous though.
The topic is supposed to created by the sender of the e-mail - ie. the person filling in the form.
The form can only be filled in by registered users, so all e-mails that I wish to have posted on the forum come from registered users, and not anonymous.
Post by Email is correctly picking up the sender of the e-mail and is posting in that persons name. It is not creating a new topic.

This worked perfectly in Kunena 2.x and joomla 2.5.x

This post has been edited by Andy Taylor: Mar 4 2014, 03:28 PM
Go to the top of the page
 
+Quote Post
Andy Taylor
post Mar 6 2014, 04:49 PM
Post #4


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (Andy Taylor @ Mar 4 2014, 03:26 PM) *
Its NOT supposed to be anonymous though.
The topic is supposed to created by the sender of the e-mail - ie. the person filling in the form.
The form can only be filled in by registered users, so all e-mails that I wish to have posted on the forum come from registered users, and not anonymous.
Post by Email is correctly picking up the sender of the e-mail and is posting in that persons name. It is not creating a new topic.

This worked perfectly in Kunena 2.x and joomla 2.5.x



Still no reply for this?
The issue has been going on for several weeks now
Go to the top of the page
 
+Quote Post
Web Design Seo
post Mar 7 2014, 11:16 AM
Post #5


Web Design Seo
****

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



Previous time we speak about anonimous posting and we have released extension update.

On date "Mar 4 2014, 04:27 PM" you speak about other thing - this is probably problem with posting from registered user. And between 4 March and today are only 3 days, not "several weeks".

We will review again this function in next working day - in monday.


--------------------
Правила на форума | 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
Andy Taylor
post Mar 7 2014, 01:36 PM
Post #6


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (Web Design Seo @ Mar 7 2014, 11:16 AM) *
Previous time we speak about anonimous posting and we have released extension update.

On date "Mar 4 2014, 04:27 PM" you speak about other thing - this is probably problem with posting from registered user. And between 4 March and today are only 3 days, not "several weeks".

We will review again this function in next working day - in monday.


25th February:

QUOTE
Have another issue now with the extension.

e-mails are being posted in Kunena forums as selected, and in the category selected, but they are ALL being posted by me, even though the e-mails are being sent by different people.
This function didnt happen before, and the extension posted using the email address of the person sending in the email.

Error 2:
Even though I have selected the option for 'Post as reply' as 'No', all messages are being posted as replies to the same, old thread on the forum instead of creating a new topic


As you see, 'Error 2' above: I posted about this issue right from the start.
I never once mentioned anonymous posting.

Go to the top of the page
 
+Quote Post
pavelKukov
post Mar 10 2014, 12:24 PM
Post #7


Php programmer
****

Group: Administrators
Posts: 285
Joined: 26-November 12
From: Bulgaria
Member No.: 1,452



Цитат(Andy Taylor)
Have another issue now with the extension.

e-mails are being posted in Kunena forums as selected, and in the category selected, but they are ALL being posted by me, even though the e-mails are being sent by different people.
This function didnt happen before, and the extension posted using the email address of the person sending in the email.


I found where the problem was.
With some emails, header "From:" was send in slightly different format which causes parsing of that header impossible.
Now this issue is fixed.

Цитат(Andy Taylor)
Even though I have selected the option for 'Post as reply' as 'No', all messages are being posted as replies to the same, old thread on the forum instead of creating a new topic


You must leave empty "Thread ID:". If topic with the same name as email subject exists, then will be published as replay to that topic.
If topic with same name do not exists new will be created. This works! I've tested it today with joomla 3.2.3 and Kunena 3.0.4.


--------------------
Php programmer in 3D Web Design
Go to the top of the page
 
+Quote Post
Andy Taylor
post Mar 10 2014, 11:43 PM
Post #8


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (pavelKukov @ Mar 10 2014, 12:24 PM) *
I found where the problem was.
With some emails, header "From:" was send in slightly different format which causes parsing of that header impossible.
Now this issue is fixed.



You must leave empty "Thread ID:". If topic with the same name as email subject exists, then will be published as replay to that topic.
If topic with same name do not exists new will be created. This works! I've tested it today with joomla 3.2.3 and Kunena 3.0.4.


Always did leave 'Thread ID ' empty.
Do you have the code so that I can make the changes myself?
Go to the top of the page
 
+Quote Post
pavelKukov
post Mar 11 2014, 09:29 AM
Post #9


Php programmer
****

Group: Administrators
Posts: 285
Joined: 26-November 12
From: Bulgaria
Member No.: 1,452



Цитат(Andy Taylor @ Mar 11 2014, 01:43 AM) *
Always did leave 'Thread ID ' empty.
Do you have the code so that I can make the changes myself?



OK! Follow this steps to apply changes manually.

1. Open "\administrator\components\com_post_by_email\views\pbmitem\tmpl\default.php"

Find (around line 326):
Код
<input id="params_auto_publish" type="radio" value="0" name="params[auto_publish]"<?php if (!$this->params->get('auto_publish',1)) echo ' checked="checked"'; ?> />


Replace with:
Код
<input id="params_auto_publish0" type="radio" value="0" name="params[auto_publish]"<?php if (!$this->params->get('auto_publish',1)) echo ' checked="checked"'; ?> />


2. Open "\administrator\components\com_post_by_email\helpers\importers\com_kunena.php"

Find (around line 31):
Код
$user->username = $from;


Replace with:
Код
$user->username = (isset($name) && !empty($name)) ? $name : $from;


3. Open "\administrator\components\com_post_by_email\helpers\helper.php"

Find (around line 317-335):
Код
if ( FALSE !== ($start = stripos($header, "\nFrom:")) ) {
                            $endline = strpos($header, "\n", $start+6);
                            $line = FALSE !== $endline ? trim(substr($header, $start, $endline-$start), "\r\n\t ") : trim(substr($header, $start), "\r\n\t ");
                            $from = substr($line, 5);
                            $name = '';
                            if ($pos = strrpos($from, '<')) {
                                $name = trim(substr($from, 0, $pos)," \"'");
                                $from = substr($from, $pos+1, -1);
                            }
                            $from = trim($from, "\"\r\n ");
                            /*
                             * If From header is with charset other than utf-8 will look like
                             * "=?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?="
                             */
                            preg_match('/^=\?(.*?)\?Q\?(.*?)\?=$/ui', $from, $matches);
                            if(!empty($matches)){
                                $from = str_replace(array('_','='), array('%20', '%'), $matches[2]);
                                $from = iconv($matches[1], 'utf-8', rawurldecode($from));
                            }


Replace with:
Код
if ( FALSE !== ($start = stripos($header, "\nFrom:")) ) {
                            $name = '';
                            $from = '';
                            
                            /*
                             * Example Header:
                             * ...
                             *     Date: Mon, 10 Mar 2014 12:27:41 +0200
                             *     From: =?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?=
                             *      <user@3dwebdesign.org>
                             *     User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
                             *     MIME-Version: 1.0 ...
                             *
                             */
                            
                            if(preg_match('/from:(.*?)(\s+|)<((.*?)@(.*?))>/ui', $header, $matches)){
                                $name = trim($matches[1], "\"\r\n\t ");
                                $from = trim($matches[3], "\"\r\n\t ");
                            }else{
                                $endline = strpos($header, "\n", $start+6);
                                $line = FALSE !== $endline ? trim(substr($header, $start, $endline-$start), "\r\n\t ") : trim(substr($header, $start), "\r\n\t ");
                                $from = substr($line, 5);
                                $name = '';

                                if ($pos = strrpos($from, '<')) {
                                    $name = trim(substr($from, 0, $pos)," \"'");
                                    $from = substr($from, $pos+1, -1);
                                }
                                $from = trim($from, "\"\r\n ");
                            }
                            /*
                             * If From header is with charset other than utf-8 will look like
                             * "=?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?="
                             */
                            preg_match('/^=\?(.*?)\?Q\?(.*?)\?=$/ui', $name, $matches);
                            if(!empty($matches)){
                                $name = str_replace(array('_','='), array('%20', '%'), $matches[2]);
                                $name = iconv($matches[1], 'utf-8', rawurldecode($name));
                            }


--------------------
Php programmer in 3D Web Design
Go to the top of the page
 
+Quote Post
Andy Taylor
post Mar 11 2014, 04:24 PM
Post #10


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (pavelKukov @ Mar 11 2014, 09:29 AM) *
OK! Follow this steps to apply changes manually.

1. Open "\administrator\components\com_post_by_email\views\pbmitem\tmpl\default.php"

Find (around line 326):
CODE
<input id="params_auto_publish" type="radio" value="0" name="params[auto_publish]"<?php if (!$this->params->get('auto_publish',1)) echo ' checked="checked"'; ?> />


Replace with:
CODE
<input id="params_auto_publish0" type="radio" value="0" name="params[auto_publish]"<?php if (!$this->params->get('auto_publish',1)) echo ' checked="checked"'; ?> />


2. Open "\administrator\components\com_post_by_email\helpers\importers\com_kunena.php"

Find (around line 31):
CODE
$user->username = $from;


Replace with:
CODE
$user->username = (isset($name) && !empty($name)) ? $name : $from;


3. Open "\administrator\components\com_post_by_email\helpers\helper.php"

Find (around line 317-335):
CODE
if ( FALSE !== ($start = stripos($header, "\nFrom:")) ) {
                            $endline = strpos($header, "\n", $start+6);
                            $line = FALSE !== $endline ? trim(substr($header, $start, $endline-$start), "\r\n\t ") : trim(substr($header, $start), "\r\n\t ");
                            $from = substr($line, 5);
                            $name = '';
                            if ($pos = strrpos($from, '<')) {
                                $name = trim(substr($from, 0, $pos)," \"'");
                                $from = substr($from, $pos+1, -1);
                            }
                            $from = trim($from, "\"\r\n ");
                            /*
                             * If From header is with charset other than utf-8 will look like
                             * "=?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?="
                             */
                            preg_match('/^=\?(.*?)\?Q\?(.*?)\?=$/ui', $from, $matches);
                            if(!empty($matches)){
                                $from = str_replace(array('_','='), array('%20', '%'), $matches[2]);
                                $from = iconv($matches[1], 'utf-8', rawurldecode($from));
                            }


Replace with:
CODE
if ( FALSE !== ($start = stripos($header, "\nFrom:")) ) {
                            $name = '';
                            $from = '';
                            
                            /*
                             * Example Header:
                             * ...
                             *     Date: Mon, 10 Mar 2014 12:27:41 +0200
                             *     From: =?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?=
                             *      <user@3dwebdesign.org>
                             *     User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
                             *     MIME-Version: 1.0 ...
                             *
                             */
                            
                            if(preg_match('/from:(.*?)(\s+|)<((.*?)@(.*?))>/ui', $header, $matches)){
                                $name = trim($matches[1], "\"\r\n\t ");
                                $from = trim($matches[3], "\"\r\n\t ");
                            }else{
                                $endline = strpos($header, "\n", $start+6);
                                $line = FALSE !== $endline ? trim(substr($header, $start, $endline-$start), "\r\n\t ") : trim(substr($header, $start), "\r\n\t ");
                                $from = substr($line, 5);
                                $name = '';

                                if ($pos = strrpos($from, '<')) {
                                    $name = trim(substr($from, 0, $pos)," \"'");
                                    $from = substr($from, $pos+1, -1);
                                }
                                $from = trim($from, "\"\r\n ");
                            }
                            /*
                             * If From header is with charset other than utf-8 will look like
                             * "=?windows-1251?Q?=CF=E0=E2=E5=EB_=CA=F3=EA=EE=E2?="
                             */
                            preg_match('/^=\?(.*?)\?Q\?(.*?)\?=$/ui', $name, $matches);
                            if(!empty($matches)){
                                $name = str_replace(array('_','='), array('%20', '%'), $matches[2]);
                                $name = iconv($matches[1], 'utf-8', rawurldecode($name));
                            }

Thanks for the info.
Kunena just got updated to 3.0.5 and Joomla to 3.2.3

Will this fix still work with the updates?
Go to the top of the page
 
+Quote Post
Web Design Seo
post Mar 11 2014, 05:30 PM
Post #11


Web Design Seo
****

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



Yes, our extensions have great integration and are updated frequently, but our priority is not to update all extensions every time when new update is released.

We don't know for now, but i think all must be working.


--------------------
Правила на форума | 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
Andy Taylor
post Mar 15 2014, 07:55 PM
Post #12


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (Web Design Seo @ Mar 11 2014, 05:30 PM) *
Yes, our extensions have great integration and are updated frequently, but our priority is not to update all extensions every time when new update is released.

We don't know for now, but i think all must be working.


Is there any way to create a new topic for every e-mail?
This USED to work in the past, but now it still posts in the same thread, as all e-mails have no subject and so use the Default title in the publishing section.
When used in Joomla 2.5.x and with Kunena 2.X, every e-mail started its own thread, even though they all had the same thread title.
Now in Joomla 3 and Kunena 3, all e-mails are going into the same thread, even if 'post as reply' is set to no - it almost seems as if the 'Post as reply' option is broken.
The e-mails are from an application form, so there is no way to change this.
Can the default title in any way grab the username of the person sending the e-mail (ALL e-mails will be by registered users, as they need to be registered in order to even SEE the application form) ? for example:

Default title: Application - {username}
This would then create a new thread for every application form by utilising the user name of the sender in the title.
Go to the top of the page
 
+Quote Post
Web Design Seo
post Mar 16 2014, 06:34 AM
Post #13


Web Design Seo
****

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



@Andy Taylor, for now this is possible only as custom development order. We have pending orders for custom mods for more than month.


--------------------
Правила на форума | 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
Andy Taylor
post Mar 17 2014, 03:22 AM
Post #14


Newbie
*

Group: Members
Posts: 22
Joined: 22-June 13
Member No.: 1,732



QUOTE (Web Design Seo @ Mar 16 2014, 06:34 AM) *
@Andy Taylor, for now this is possible only as custom development order. We have pending orders for custom mods for more than month.


This was a function already covered in Kunena 2.X and Joomla 2.5.X
Why is it now a 'Custom development'?
It was a functionality that was provided in the previous version, and the entire reason I purchased the extension.
Go to the top of the page
 
+Quote Post
Web Design Seo
post Mar 17 2014, 07:26 AM
Post #15


Web Design Seo
****

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



Ok, you are reporting some "bugs". Thank You, but these "bugs" are not real bugs, are due on changes in other Joomla extensions, made from other developers. Provided in previous version, but not working now not because on our component, not work because on Kunena changes, right?

Our priority is not to made extension for Kunena. If Kunena team want, let's make their extension to work better with our extension.

You have asked many times about changes. There is no way to make it immediately. The other way is to wait, we will check this in next version. But next version is planned for end of April/start of May, not for tomorrow.

Please, check our TOS - we sale extensions as is. All changes, updates, and more extras are due only on our goodwill and attitudes to our customers.


--------------------
Правила на форума | 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 Pinned: Topic has attachmentsPost By Email Pro
Pro version of Post By Email component
116 Ivan Stamenov 631,036 24th March 2021 - 01:56 PM
Last post by: Web Design Seo
No New Posts Post By Email Pro - Cron Warnings
JROUTER_MODE warnings
3 Brian Craigie 124,203 12th March 2020 - 08:35 AM
Last post by: Web Design Seo
No New Posts Post By Email To K2 Images Not Resizing
1 bossies 127,235 31st May 2019 - 10:49 AM
Last post by: Web Design Seo
No New Posts Post By Email, Error 500
500 error on backend
1 galamarco 172,117 17th January 2019 - 06:29 AM
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 84,150 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 135,100 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 122,530 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 96,443 11th February 2016 - 07:25 AM
Last post by: Web Design Seo
No New Posts Post By Email Doesn't Works
1 cranky69 107,885 1st December 2015 - 10:30 AM
Last post by: Web Design Seo
No New Posts Post By Email Pro Won't Process Messages But Not Published
All messages are processed but some of them are not published
1 sconello 84,381 9th November 2015 - 11:53 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 2nd June 2026 - 04:01 AM