WordPress.org

Forums

[PLUGIN] Inline Ajax Comments (13 posts)

  1. kashou
    Member
    Posted 9 years ago #

    I have written a plugin that allows you to display comments below main page posts using ajax and moo.fx.

    Plugin: Inline Ajax Comments

    Comments welcomed.

  2. Truth
    Member
    Posted 9 years ago #

    I'm using it on my site and I had to say great work on it, very easy to use and customise. I got it working in minutes :)

    But is it possible to disable the show comments when is it a protected entry? There is a show comments for protected entries and comments in these entries can be viewed. Is there a way to change this?

    Just a question, it would works in all browsers right? What if java etc is disable?

    Thank you :)

  3. kashou
    Member
    Posted 9 years ago #

    Truth -

    I added the protected post check into v0.2. Also, I haven't found a clean way to check for javascript. Ideally, I would not show the link if javascript isn't enabled. As of right now, if your javascript isn't turned on the link just does nothing.

    Let me know if you find anything else!

  4. Truth
    Member
    Posted 9 years ago #

    Thank you kashou, 0.2 is working great :)

    I edited it a bit on inline-ajax-comments.php to only show the 'add a comment' when comment is opend. Right, I see. Thanks :)

  5. Makki
    Member
    Posted 9 years ago #

    Man this is one kick-ass plugin. thanks for sharing man.

  6. kashou
    Member
    Posted 9 years ago #

    Glad you are enjoying it! Let me know if you can think of any improvements.

    Right now the only thing on my list is to fix the "www." quirk.

  7. Truth
    Member
    Posted 9 years ago #

    Right, I'm using the force www. preference plugin so it's still all right. I was wondering if it's possible to have a "quick reply" like at the bottom instead of add a comment which redirects to the comment form, have a quick reply link so that the reply form appears below. (I don't know if it's even possible) but just a suggestion :)

  8. kashou
    Member
    Posted 9 years ago #

    I thought about that, but I think that it would add too much complexity for both me and the users. It wouldn't be impossible to add to the inline comments, but I feel like forcing users to the main comment form isn't such a bad thing.

    If there are other users that feel the same way, I suppose I could be convinced otherwise.

  9. Truth
    Member
    Posted 9 years ago #

    Right, just a minor question, is it possible to reverse the comments order by having the latest showing first? Or do I have to manualy change that in one of the core files of wordpress? Thanks :)

  10. kashou
    Member
    Posted 9 years ago #

    Changing the order is actually very easy. You just need to add 'DESC' to the sql statement in ajax-comments.php. But you will also need to reverse the numbering. If I were going to do that I would add another sql statement to get the number of comments returned and then set that as the first comment number and decrement after each iteration.

    This seems like it might be a common request/nice feature, so I will add it into v0.3. It seems like you've already made a lot of changes to that file, but at least you will have it as an example to work from.

    Keep the suggestions coming :-) (BTW, your site looks great!)

  11. Truth
    Member
    Posted 9 years ago #

    Thanks for taking this suggestion, kashou :)

    Waiting for 0.3 ;) By the way, is it possible to use the same method you use in ajax-comments.php for the reverse comments and numberings in the theme's comments.php too?

    Thank you. =D

  12. kashou
    Member
    Posted 9 years ago #

    v0.3 is out. :-)

    I will work on integrating that option into the tonus theme as well.

  13. Truth
    Member
    Posted 9 years ago #

    Upgraded to the latest, working really well. I think it might be good like what you say to only have the show comments links show up if javascript is enable on the user's browsers. Good luck working on it. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags