Joomla Comment

Joomla CommentJoomla Comment Fixed and Solutions

Joomla CMS is a great component and we all have benefited from that, and I’ve found a great component such as Joomla Comment, however there’are some errors.

Hence I would like to take the initiative to contribute back to the Joomla community. I took the time to write this, and please take some time to read this and you may find the SOLUTIONS! I hope my effort can help you on this. If you cannot see the code below, just right click and save as.. since they’re images.

cont:

Don’t worry about the coding, I’ve a modified version and you can just download and install at your own risk. It works for me.

I came to this Joomla component because Jom Comment is charging at $20 to $30, yet both of them have almost the features. I would say this component is the best Joomla Comment component taking price into considerations!.

Here’s the solutions for Joomla Comment, I’ve summarize these three problems and the fix. It’s just as easy as Step 1, 2 and 3.

I have several websites which are run on Joomla, and I try to install it with Joomla Comment:

1) Joomla 1.0.10 – no problem occurs

2) Joomla 1.0.11 and Joomla 1.0.12 – these problems arise!

In fact the problems only occur when you install it with Joomla 1.0.11 or Joomla 1.0.12, however you do not worry about that. Here’s the fix and solutions that I found on net, and try to summarize.

Joomla Comment Problem 1:

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/test/

components/com_comment/joscomment/properties.php on line 160

Solutions / Fix 1:

Open up joscomment/properties.php

Comment the line 160, fixed! If you do not understand this, I’ve photos here with detailed. Check it out here.

Here’s how we comment the line:
line160

Joomla Comment Problem 2:

Backend for Joomla administrator setting and comment management, including publish, unpublish, edit comment is not working. Cannot publish and unpublish, or edit any comment and setting.

Solutions / Fix 2:

a. Open up admin.comment.php

Insert this line before line 27

$cid=josGetArrayInts(’cid’);

b. Open up admin.comment.html.php

At line 100

Replace with the code below:

echo “<td align=’center’><a href=\”index2.php?option=” . $option . “&task=edit&cid[]=” . $row->id . “\”>$row->name</a></td>”;

With

?>

<td align ‘center’><a href=’javascript: void(0);’ onClick=’return listItemTask(”cb<?php echo $i;?>”,”edit”)’>

<?php echo $row->name; ?></a></td>

<?php

Scroll down and find the line 120 ( it might be line 121 or 122 if you have done the step above)

Replace the line below:

<td width=”10%” align=”center”><a href=”javascript:return listItemTask(’cb<?php echo $i;

with

<td width=”10%” align=”center”><a href=”javascript: void(0);” onClick=”return listItemTask(’cb<?php echo $i;

Solved problem 2

Joomla Comment Problem 3:

comment has been queued for admin’s approval even you say yes to Unregister user may comment

Solutions / Fix 3:
Problem solved in Step 2, since it’s backend administration bug in Joomla Comment 2.4 Final

Hesitate to do it, ok i’ll just share the file that i edited. Please find the attachment below. Download and install at your own risk.I do not guarantee it will work for you.

At this moment, I hope that you’re happy with the fix and enjoy the Joomla Comment now!

Lastly, start using it.

Best regards,

HaanChiang

P/S: Modification of the code at your own risk.

If you couldn’t solve the problem yourself, I’ll post the modified file later on. Please be patient.

Tags :-, , ,

Attached Files:

Category Tags: Joomla Component

Comments

21 Responses to “Joomla Comment”

  1. Michael on May 26th, 2007 3:02 pm

    Thanks a lot.

    I was having terrible troubles with bugs so I unistalled then installed your version that I downloaded from this page.

    Works perfectly!!!

  2. JoZ3 on June 1st, 2007 6:58 pm

    i have this problem with original component and this version:

    Warning: mb_eregi_replace() [function.mb-eregi-replace]: mbregex compile err: invalid regular expression; there’s no previous pattern, to which ‘{’ would define cardinality at 1 in C:\Apache\htdocs\joomla\components\com_comment\joscomment\utils.php on line 100

    but i found the solution in this post in the joomlla forum:

    http://forum.joomla.org/index.php/topic,88717.msg450854.html#msg450854

  3. fiets on June 14th, 2007 10:29 pm

    thanks, your comments have been very helpful indeed.
    all the best,

  4. mat on June 15th, 2007 8:13 am

    i cannot use ?????ó?? - there are polish dialectic sybbols. What about them ?!!

  5. Tess on June 19th, 2007 12:51 pm

    Many thanks for this fix - much appreciated, it’s saved me much time and headache banging head against monitor!

  6. attila on June 25th, 2007 7:39 pm

    works great ! Thank you for sharing!

  7. keith on July 11th, 2007 5:51 am

    Watch out for smart quotes in the code samples if you are cutting and pasting. Thanks for sharing this solution.

  8. Paul on July 31st, 2007 11:57 pm

    Thanks, for the patch :)

    Btw, how did you get those “Category Tags” on the bottom of your page? Is it an extension?

    Let me know plz :)

    Cheers

  9. Sipphreus on August 31st, 2007 1:25 am

    Hi, thank you very much for your solutions, you lastly save the component to be throwed away :-)
    I’ve another problem, maybe you can solve this aswell:
    I enabled Captcha but it shows a field with text “Security image” instead of the captcha image.
    I’m sure my webhost is configured properly because another component installed called Jambook shows captha image correctly.

    Any idea?

    Thanks in advance

  10. Paul Kearney on September 6th, 2007 9:08 am

    Hi Haan,

    Thanks for the pointers. Done points 1 and 2 and point 1 is now fixed, but I still have some issues in point 2 (in administration I can’t publish/delete entries).

    Keep up the good work

    Thanks

    Paul

  11. help needed on September 11th, 2007 8:10 pm

    hallo
    first awall thank you very much for you bug help
    i have another little problem
    i won t show the ip from the people who wrote a post.

    and in the settings
    IP Adress
    Visible: x Nein Ja
    Partial: Nein x Ja
    Caption:

    is this a new bug ??? or is somewhere my fault

  12. spela on September 13th, 2007 3:44 pm

    Thank you soo very much!!!

    Works like a charm! You are very cool for taking your time and sharing with us!!

    Greatly appreciated!!

    Take care!

  13. daryl on January 11th, 2008 1:48 pm

    Hi there

    just wanted to thank you

    am a complete newbie to joomla but had to build a tribute site (at very short notice- first time with joomla) to a great man ( sid irons , ruislip uk ) who was killed in a hit and run

    Was overwelmed by the choices (and the cost of some of the third party modules)

    Found yours via google and now friends can leave thier own tributes.

    Worked straight out of the proverbial box.

    if i can repay you please let me know.

    cheers daryl mushtaq

  14. haanchiang on January 23rd, 2008 10:07 am

    Hey guys,

    Thanks for the comment.

  15. ultrabeast on March 13th, 2008 5:38 am

    to comment #9, the security image is not displayed because in your php.ini, the line to enable GD2 image processing

    ;extension=php_gd2.dll

    is commented out.

    Remove the semicolon in the beginning of that line, that will solve your problem.

    :)

  16. alexio on April 1st, 2008 12:34 pm

    I too am missing the security image, and thought i’ve searched the entire site, I can’t find the php.ini file, or any instance of “extension=php_gd2.dll” when doing a site wide search for code or text in Dreamweaver.

    Pray tell, where is this mysterious php.ini file?

    Thanks in advance….

  17. Kyle Kimoto on May 24th, 2008 2:14 am

    Is there a plug-n-play module I could use for my site?

    Regards,
    Kyle Kimoto

  18. Mauricio on July 17th, 2008 4:11 pm

    Loco, me salvaste de una. mil y mil gracias por tu aporte!

  19. Mihai Lehene on July 24th, 2008 11:39 pm

    Missing security image (CAPTCHA), I checked GD library is enabled, is this php.ini file something related to the server settings or is it a component/joomla file?

  20. farmacia on August 11th, 2008 5:08 pm

    I am also missing the captcha image and I could not find php.ini. I would be very thakfull if you could tell us where it is.

  21. SAP GRC on October 12th, 2008 3:24 pm

    Thanks, I needed that

Leave a Reply




Close
E-mail It