WordPress.org

Ready to get started?Download WordPress

Forums

Simple Comment Editing
Link isn't displayed (11 posts)

  1. helekopter
    Member
    Posted 7 months ago #

    Hi.

    First of all - sorry for my terrible English =(

    I'd like to know, how i can find the link to edit comment. I'll tryed install "Twenty Eleven" theme to copy the link and paste in my theme, but I had the same problem =( Can you write php or js code to call the function which i can manually insert in my theme?

    http://wordpress.org/plugins/simple-comment-editing/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    No problem :)

    First, make sure you aren't logged in. This plugin won't work for logged in users who can already edit comments.

    Second, check for any JavaScript issues on the page. Any JavaScript errors will prevent the plugin from loading.

    The plugin should work automatically for any theme using the regular comment functionality built into WordPress.

  3. eboye
    Member
    Posted 7 months ago #

    Hi,

    I have this problem too. I don't have any js errors in console, but the link is with inline style of display:none. When I disable in inspector this style the link is shown, but it's not working. It gives me page with and 0 :D

    It worked flawless, but I made a new theme and I've updated to WP3.8

    I'm not sure what is causing the problem. The new theme is almost identical as the previous one regarding comments.

    I'm not sure where do I start to debug :)

  4. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    eboye,

    Can you point me to a post that I can leave test comments on?

    Thanks.

  5. eboye
    Member
    Posted 7 months ago #

    Sure,

    Here it is:
    http://srbodroid.com/vesti/android-igre/angry-birds-go-rovio-voznja/

    I'll approve it when you comment on, just so you can see a comment.

    Thanks.

  6. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    You're able to edit after a page refresh. I think the problem is that the comments are submitted via Ajax rather than a regular page load.

    I think it's possible to get the Ajax comments to work, but the Ajax JavaScript file will need to initialize the plugin after the comment is posted.

    Is the theme custom or available for download?

  7. eboye
    Member
    Posted 7 months ago #

    Ahhh, I see :D

    I'll try to find the ajax call and intercept it with trigger ;)

    Could you just point me on what function I need to call on ajax load?

    The theme is custom made. Me and my php developer made it. (I designed it and coded the HTML/CSS/JS).

    Thanks for helping.

  8. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    If I've set up everything correctly, and I hope I have (wishful thinking), you can call this after the Ajax comment has been outputted to the screen:

    jQuery( '.sce-edit-button' ).simplecommentediting()

  9. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    I do, however, have a feeling it won't work. The script only loads (for performance issues) if a commenter's cookie is set. So I have a feeling that the necessary JavaScript files aren't even loaded if an Ajax comment is submitted.

  10. eboye
    Member
    Posted 7 months ago #

    Thanks, WP-Ajaxify-Comments plugin has callbacks, so I'll try with it ;)

  11. Ronald Huereca
    Member
    Plugin Author

    Posted 7 months ago #

    Cool, good luck.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.