WordPress.org

Ready to get started?Download WordPress

Forums

WP Ajax Edit Comments
WP Ajax Edit Comments incompatible with WP Voting (5 posts)

  1. gweldeye
    Member
    Posted 1 year ago #

    Hello,

    I'm using the WP Voting plugin in conjunction with WP Ajax Edit Comments and they seem to be incompatible. I'm allowing voting on comments by using the WP Voting and allowing subscribers to be able to ONLY EDIT their own comments only. So this work great except that once the user edits and saves the comment, the thumbs up/down buttons don't work anymore.

    Further investigating the WP Ajax Edit Comments it appears that it is extracting the existing comment content, load it to the popup textbox and re-append the edited comment to its original spot without refreshing the page. This action will remove the onclick events associated with the thumbs up/down buttons.

    I tried to look at the code behind the WP Ajax Edit Comments but I'm unable to make this work. I need a solution that will atleast refreshs the page when clicking the "Save" button on the Comment Editor popup. A detailed explanation will help a lot as I'm new to WordPress and PHP.

    WP Ajax Edit Comments: http://wordpress.org/support/plugin/wp-ajax-edit-comments

    WP Voting : http://wordpress.org/extend/plugins/wp-voting/

    Thanks!

    http://wordpress.org/extend/plugins/wp-ajax-edit-comments/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    gweldeye,

    How are you using wp-voting to rate comments? I've installed it and I only see an option to rank posts.

  3. gweldeye
    Member
    Posted 1 year ago #

    Ronald,

    Thanks for you prompt response. I appreciate that

    My coworker configured WP Voting plugin to make it work for comments as well. WP Voting is not the only thing I'm having issue with. We are also displaying modified info if the comment has been modified. The issue is that if someone edits his/her comment more than once without refreshing the page, they will see more than one "Last modified by ... on ..." text. This is becuase the WP Ajax Edit comment plugin doedn't reload the page on successful save.

    What I need is whenever someone edits his/her comment and clicks the "Save" button on the Ajax popup, I want to refresh the page. This way all the scripts to make the voting plugin work. Also the Last modified information will also be fetched displaying only one Last modified info at a time.

    Thanks!

  4. gweldeye
    Member
    Posted 1 year ago #

    Anyone on this please? I'm stuck on this one issue and haven't found a way to make this work. Any help is greatly appreciated.

    Thanks!

  5. gweldeye
    Member
    Posted 1 year ago #

    Anyone please? I haven't still found a solution for this. Any insight on what I need to do to refresh the page on each comment edit when using the Ajax Comment Edit? All I want to do is reload the page on saving the comment.

    I really appreciate if someone can guide me on how to accomplish this

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic