WordPress.org

Support

Support » Plugins and Hacks » Link isn't displayed

Link isn't displayed

  • helekopter
    Member

    @helekopter

    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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Ronald Huereca
    Participant

    @ronalfy

    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.

    eboye
    Participant

    @eboye

    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 😀

    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 🙂

    Plugin Author Ronald Huereca
    Participant

    @ronalfy

    eboye,

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

    Thanks.

    eboye
    Participant

    @eboye

    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.

    Plugin Author Ronald Huereca
    Participant

    @ronalfy

    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?

    eboye
    Participant

    @eboye

    Ahhh, I see 😀

    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.

    Plugin Author Ronald Huereca
    Participant

    @ronalfy

    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()

    Plugin Author Ronald Huereca
    Participant

    @ronalfy

    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.

    eboye
    Participant

    @eboye

    Thanks, WP-Ajaxify-Comments plugin has callbacks, so I’ll try with it 😉

    Plugin Author Ronald Huereca
    Participant

    @ronalfy

    Cool, good luck.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Link isn't displayed’ is closed to new replies.