Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Some comments content is "" (empty or nothing) in Manage Comments table
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Some comments content is "" (empty or nothing) in Manage Comments table  (Read 21829 times)
0 Members and 1 Guest are viewing this topic.
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« on: October 09, 2009, 21:25:35 »

I installed our comments com.

It's great.

But for some of the comments I entered, nothing appears in column Comments Content in Manage Comments table.
And as a result, search for these comments doesn't work.

I made the comments in Vietnamese. An example comment I made is: "Đúng là tình hình căng thiệt." (double-quotes are not counted).

Thanks for any help.
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #1 on: October 10, 2009, 01:13:34 »

This problem is related backend only? On frontend these comments are displayed correctly?

BTW, can you make vietnamese localization for JComments?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #2 on: October 10, 2009, 10:40:13 »

Yes, comments are correctly displayed on frontend but they are NOT found by Search with Comments checkbox ON.

Because JComments looks great, it's my pleasure to make the Vietnamese localization and to make it popular.

Actually I am making translations as my need grows.
« Last Edit: October 10, 2009, 10:42:03 by ktlqai » Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #3 on: October 10, 2009, 14:21:38 »

You can't find any comments on your site or only comments with vietnamese letters? May we have some problem with MySQL?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #4 on: October 10, 2009, 20:29:59 »

I can't find Vietnamese comments only. I can find English comments.
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #5 on: October 10, 2009, 23:47:12 »

Do you have Joomla 1.5 installed? Or you use older versions like Joomla 1.0.x? You've database in UTF-8 encoding? Do you have any troubles with searching standart Joomla articles in vietnamese language?
« Last Edit: October 10, 2009, 23:48:59 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #6 on: October 11, 2009, 12:03:26 »

I have Joomla 1.5 installed. I've database in utf8_general_ci collation. I have no troubles with searching standart Joomla articles in vietnamese language.
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #7 on: October 11, 2009, 12:45:23 »

Ok, thanks. Can you send me to PM some phazes on vietnamese - I need them for tests... Or if you can give me access through ftp to your site.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #8 on: October 11, 2009, 15:10:51 »

My site is localhost.

Some vietnamese comments are ok (their contents are displayed at backend & are searchable at frontend).
I've got problem with this phrase "Đúng là tình hình căng thiệt".
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #9 on: October 11, 2009, 16:26:34 »

1. But if you put this phraze in Joomla article - you've no problems with search this article?
2. Comment with that phraze is displayed correctly on frontend? Or no?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #10 on: October 11, 2009, 18:09:56 »

Yes, it is displayed in article & is searchable. It is also displayed as a comment.

But this comment is not searchable. Also it is not displayed in backend.
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #11 on: October 12, 2009, 00:10:32 »

Try make small fix:

Open jcomments.class.php and replace code

Code: (php)
$text = htmlspecialchars($text);
$text = html_entity_decode($text);

with
Code: (php)
$text = htmlspecialchars($text);
$text = html_entity_decode($text, ENT_COMPAT, 'UTF-8');
« Last Edit: October 12, 2009, 01:02:15 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #12 on: October 12, 2009, 11:26:27 »

After code edit, nothing changes.

I found this problem:
When a comment includes this vietnamese word 'là' which is 'is' in english,
comment is not displayed at backend & is not searchable.
This is our case.

You can test this by making a new comment with 'là' (...[space]l
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #13 on: October 12, 2009, 11:51:30 »

Oh, may be this word in ignore-list? With all language packs shipped file [languagecode].ignore.php, for English it en-GB.ignore.php, and this file contain words which excluded from search... Check this please...

After code edit, nothing changes.
comment doesn't searched and doesn't displayed in backend?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ktlqai
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #14 on: October 12, 2009, 15:08:05 »

$search_ignore[] = "and";
$search_ignore[] = "in";
$search_ignore[] = "on";

My vi-VN.ignore.php only includes "and", "in", "on".

After code edit, nothing changes.
comment doesn't searched and doesn't displayed in backend?

Yes, it doesn't searched and doesn't displayed in backend.
Logged
Pages: [1] 2 3 4   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Some comments content is "" (empty or nothing) in Manage Comments table
 
Jump to: