WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Move Comments
Doesn't work: Using Wrong Hooks (7 posts)

  1. Mike Schinkel
    Member
    Posted 1 year ago #

    Hi Velvet Blue,

    I downloaded your plugin today and found that it doesn't work. I debugged it and found that you are using the wrong hook in one place: you are using 'comment_save_pre' when you should be using 'edit_comment'; just change on line 36 and it will allow your plugin to save (but you might want to change the name the parameter on line 78 and delete the other references on the return statement for good programming practice, of course.) It's strange because it's perfectly structured otherwise; I wonder if someone changed from 'edit_comment' accidentally?

    The other problem uncovered is that the second time the Quick Reply form is opened between page refreshes it doesn't update the fields. It appears to be something that might have been broken by changes in the how comments are handled via AJAX. You are generating the edit form once after all other comments are rendered in the 'wp_comment_reply' hook but on AJAX WordPress 3.5 does not call that hook.

    I tried to fix it for you but it looks like it's going to require more time than I have this morning so I'll leave it with you.

    -Mike

    http://wordpress.org/extend/plugins/vb-wp-move-comments/

  2. VelvetBlues.com
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your help Mike! I'll definitely look into these odd bugs in WP 3.5 and update the plugin.

  3. Mike Schinkel
    Member
    Posted 1 year ago #

    Cool. Thanks for acknowledging. Looking forward to the fixes.

  4. Mike Schinkel
    Member
    Posted 1 year ago #

    Hi @VelvetBlues:

    Any updates?

  5. ag2reo4s
    Member
    Posted 1 year ago #

    I need to admin (move) some comments on my blog, and this plugin is exactly what I need! Unfortunately, I found that it isn't updating the fields when I submit the change. I found this support post...looks like it may be the same issue I am experiencing. Is there any update coming to this plugin? If not, I will need to figure out another way to move my comments.

    If someone wants to work with me, I am interested in learning how to write plugins and I would partner up to fix this plugin. I am a long-time developer, but fairly new to WordPress.

  6. Mike Schinkel
    Member
    Posted 1 year ago #

    Hey @ag2reo4s - contact me, let's chat about your past experience and interest in plugin development, maybe I can help.

  7. TechnoViel
    Member
    Posted 10 months ago #

    Mike, your my hero! I edited the PHP as you described in line 36 and it now works - I'm using WP3.6.
    Thanks a lot for indicating this.
    @Author: Please fix, it's so easy that it's hard to understand why you haven't done this within 8 months...

    PS: I mainly intend to use this to assign the right parent to comments - WP is not very good at helping users to properly answer comments...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic