WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Comment success, but hidden

[Resolved] Comment success, but hidden

  • I am using WordPress 3.5 and Atahualpa 3.7.9 as my theme. When I activate WP-Ajaxify-Comments and post a comment, it tells me it was successful, but the comment does not show up until I refresh the page. I have left the comment form selectors at the default values and if I change them, the page refreshes when I post the comment.

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

Viewing 15 replies - 1 through 15 (of 21 total)
  • I just tested it with the default WordPress theme on a test site and the plugin seems to work as it is designed.

    Plugin Author janjonas

    @janjonas

    Could you please enable the debug mode and post the output in the browser console.

    Are you talking about the Error Console? I am using SeaMonkey here at work and after enabling the plugin and posting a comment on my live blog, it is doing the same thing. I opened the Error Console and there is nothing in it about the plugin.

    Here is what I found in the Firefox Web Console.


    [06:12:34.314] [WP-Ajaxify-Comments] Comment has been posted
    [06:12:34.315] [WP-Ajaxify-Comments] Found comment URL ‘http://www.ldjackson.net/obama-the-chastiser/#comment-40687’ in X-WPAC-URL header.
    [06:12:34.400] [WP-Ajaxify-Comments] Found unapproved state ‘0’ in X-WPAC-UNAPPROVED
    [06:12:34.407] [WP-Ajaxify-Comments] Replace comment form…
    [06:12:34.410] [WP-Ajaxify-Comments] Anchor ‘#comment-40687’ extracted from comment URL ‘http://www.ldjackson.net/obama-the-chastiser/#comment-40687’
    [06:12:34.411] [WP-Ajaxify-Comments] Anchor element not found (selector: ‘#comment-40687’)

    Plugin Author janjonas

    @janjonas

    Hi DynaBMan,

    please try the following settings:
    Comments container selector: ul.commentlist

    This setting should work if there is already at least one comment. When posting the first comment the plugin relaods the complete page.

    I will try to find a solution for a better support of the Atahualpa theme in a feature version.

    Hope this helps,
    Jan

    Using #ul.commentlist does allow the comment to post, but it reloads the entire page when doing so. This is even when posting a comment after another comment has already been posted.

    Actually, if I remove the #, it seems to work. Thanks for the help.

    Plugin Author janjonas

    @janjonas

    Hi,

    I’ve released version 0.7.0 of the plugin which adds better support for the Atahualpa theme when using the following settings:

    Comments container selector: #commentsWrapper
    Before select elements:
    (jQuery(‘#comments’, dom).length > 0) ?
    jQuery(‘#comments, ul.commentlist’, dom).wrapAll(‘<div id=”commentsWrapper” />’)
    : jQuery(‘<div id=”commentsWrapper” />’).insertBefore(jQuery(‘#respond’, dom));

    With this settings the first comment should be “ajaxified” and posting a comment also update the comments headline.

    Hope this helps…

    I have just installed the update and everything seems to work properly except for one thing. I have my theme set to list the trackbacks below the comments. This is the way they should be displayed.

    TRACKBACKS
    —List of trackbacks—

    This is how they are displayed with WP-Ajaxify-Comments enabled.

    —List of trackbacks—
    TRACKBACKS

    Plugin Author janjonas

    @janjonas

    Could you please send me a link to your Blog?

    http://www.ldjackson.net

    I currently have the plugin disabled.

    Plugin Author janjonas

    @janjonas

    Please try to change “Before select elements:” to:

    (jQuery(‘td#middle > #comments’, dom).length > 0) ?
    jQuery(‘td#middle > #comments, ul.commentlist’, dom).wrapAll(‘<div id=”commentsWrapper” />’)
    : jQuery(‘<div id=”commentsWrapper” />’).insertBefore(jQuery(‘#respond’, dom));

    and leave “Comments container selector: #commentsWrapper” unchanged.

    Hope this helps…

    That seems to have done the trick. Thanks for the help and the support.

    This is great, It helped big time. One more thing though. How would you tackle multiple posts with comments on one page.. That unique id is a trouble.

    Plugin Author janjonas

    @janjonas

    Thanks for your comment!
    How do you get multiple posts on one page? Do you use any special theme or plugin?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Resolved] Comment success, but hidden’ is closed to new replies.