Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
>   In Kunena Posts With Post By Email
Web Design Seo
post Jul 19 2012, 12:39 PM
Post #1


Web Design Seo
****

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



If you are using the PBM to post in a forum we strongly suggest you to set the content type of your mail client to text/plain.

Currently PBM works with the text/html version of the message, if present, and with the text/plain one, if not. As a result HTML entities as  , <, >, etc. may be posted as part of the forum message. The Strip HTML Tags setting does not help as it leaves the HTML entities intact.

To solve this problem you can do the following:

1) Set the content type of your mail client to text/plain.

And / or:

2) Open:
Код
/components/com_post_by_email/controller.php


and search for the follwoing code (should be around line 521, depending on the PBM version):
Код
if ($parser_params['strip_tags'])
    $content = empty($parser_params['allowed_tags']) ? strip_tags($content) : strip_tags($content, $parser_params['allowed_tags']);
$GLOBALS['article']['content'] = trim($content);


Replace it with:
Код
if ($parser_params['strip_tags']) {
    $content = empty($parser_params['allowed_tags']) ? strip_tags($content) : strip_tags($content, $parser_params['allowed_tags']);
    $content =  html_entity_decode($content, ENT_QUOTES, $charset);
}
$GLOBALS['article']['content'] = trim($content);


The code above translates the HTML entities in plain text in addition to stripping the HTML tags when the Strip HTML Tags setting is enabled.


--------------------
Правила на форума | 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 630,492 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,164 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,191 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,089 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 135,055 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,503 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,416 11th February 2016 - 07:25 AM
Last post by: Web Design Seo
No New Posts Pinned: Without Support To 4 January 2016
Happy new 2016 Year
0 Web Design Seo 372,667 31st December 2015 - 01:01 PM
Last post by: Web Design Seo
No New Posts Post By Email Doesn't Works
1 cranky69 107,849 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,357 9th November 2015 - 11:53 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 1st June 2026 - 10:50 PM