JComments + JoomFish showall hacks

  • Share
  • Share

introduction
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.

  1. /components/com_jcomments/jcomments.class.php
  2. /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]


Related Posts Plugin for WordPress, Blogger...

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!

Be Sure to Subscribe to our feed or follow us on twitter to get the latest updates/patches
End of Article, Thanks for reading.
You can leave a response, or trackback from your own site.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

11 Responses to “JComments + JoomFish showall hacks

  1. ScriptoX says:

    Excellent post..Keep them coming :) Thanks for sharing.

  2. Marcus says:

    Thank you ~ it's useful

  3. This is almost certainly great information. Thank you

  4. Paz says:

    Great… Thank you so much, gracias

  5. peter says:

    nice, exactly what I was looking for:)

  6. pavani says:

    It works, thanks!!

  7. mmphis says:

    Thanx for help! It work like a charm :)

  8. Jerms says:

    Thx very usefull ;)

  9. paul says:

    Thanks, this is really helpful! It did just the trick. This should be an option in JComments configuration…

  10. Buc says:

    Thank you very much!

  11. amimenu says:

    Thaaaaaaaaaaaaaaaaaaaaaaaaank you brother!

Leave a Reply