Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] news manager entities
#1
My data/articles/article.xml files was storred in server with something like this:
α&epsilon:&lp ..... etc

I made some changes in news_manager.php file (as Zegnant described) because it's not working with entities.

Quote:* in function article_overview()
instead of
$title = html_entity_decode($data->title, ENT_QUOTES, 'UTF-8');
I 've put this
$title = htmlspecialchars_decode($data->title, ENT_QUOTES);

* in function edit_article($id) in CKEDITOR.replace parameters
instead of
entities : true,
I 've put this
entities : false,

* in function save_article()
instead of
$title = htmlentities($_POST['post-title'], ENT_QUOTES, 'UTF-8');
$content = htmlentities($_POST['post-content'], ENT_QUOTES, 'UTF-8');
$excerpt = htmlentities($_POST['post-excerpt'], ENT_QUOTES, 'UTF-8');
I 've put this
$title = htmlspecialchars($_POST['post-title'], ENT_QUOTES, 'UTF-8', false);
$content = htmlspecialchars($_POST['post-content'], ENT_QUOTES, 'UTF-8', false);
$excerpt = htmlspecialchars($_POST['post-excerpt'], ENT_QUOTES, 'UTF-8', false);

My GSCONFIG.PHP file got
# WYSIWYG editor language (default el)
define('GSEDITORLANG', 'el');
and
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'el_GR');

and after this, my *.xml file stores greek language correctly but I'm getting something like:
Quote:<content>&lt;p&gt; &lt;strong&gt;Η μοτοσικλέτα&lt;/strong&gt;&lt;br /&gt; Η Honda CBR XX 110 Blackbird (έτσι είναι ολόκληρο το όνομά της) πρωτοβγήκε το 1998 (το μοντέλο ήταν με &nbsp;&lt;img alt="" src="http://getsimple.tetepoulidis.gr/data/uploads/image-092.jpg" style="margin-left: 8px; margin-right: 8px; margin-top: 8px; margin-bottom: 8px; float: left; width: 200px; height: 150px; " /&gt;καρμπυρατέρ) και είχε περίπου 150 hp. .&lt;/p&gt;
</content>
and article disappears from page ...

I know that ckeditor don't save entities correctly. Is there any solution to fix it ?????
Reply
#2
These issues should be solved when you update to the latest News Manager version (2.0).
Reply
#3
roog Wrote:These issues should be solved when you update to the latest News Manager version (2.0).

THANKS ... it's a very nice Plug In
Reply




Users browsing this thread: 1 Guest(s)