
JComments is hitting up at joomla, a lot of people is switching to it, because we all like the easy integration process. But if you are running on a multi-language site, you may have the following problem.
Problem
When a user leave a comment on your english section, the other languages aren’t able to view it. This little hack is going to solve this problem. Over at the admin, the component let you setup each settings by language. This is really annoying for us, so we will also want to disable this as well.
Solution
There’s two file you will need to open before
This solution will show all comments rather it’s in english or others.
Disable the multi language setting on admin panel.
- /components/com_jcomments/jcomments.class.php
- /administrator/components/com_jcomments/admin.jcomments.php
File 1 jcomments.class.php
/components/com_jcomments/jcomments.class.php
Since the component are still in development, I am not going to tell you the exact line, instead I will tell you which class you should look for. Use your favorite editor to find the class JCommentsMultilingual within you will find the isEnable{} function. In this end of the function class, you will see a return $enabled;
Before
return $enabled;
After
return 0;
File 2 admin.jcomments.php
/administrator/components/com_jcomments/admin.jcomments.php
Please take a search at the . ($lang != '' ? " AND `lang` = '$lang'" : '' ) and comments this like below.
Before
. ($lang != '' ? " AND `lang` = '$lang'" : '' )
After
// . ($lang != '' ? " AND `lang` = '$lang'" : '' )
Be a link sponsor for this page now
[sponsorbox]
I hope you have enjoyed this post, be sure to subscribe to my rss feed by click the subscribe button at the top.
Good Luck!



Excellent post..Keep them coming
Thanks for sharing.
Thank you ~ it's useful
This is almost certainly great information. Thank you
Great… Thank you so much, gracias
nice, exactly what I was looking for:)
It works, thanks!!
Thanx for help! It work like a charm
Thx very usefull
Thanks, this is really helpful! It did just the trick. This should be an option in JComments configuration…
Thank you very much!
Thaaaaaaaaaaaaaaaaaaaaaaaaank you brother!