WordPress.org

Forums

WP Ajaxify Comments
[resolved] Comment success, but hidden (22 posts)

  1. DynaBMan
    Member
    Posted 2 years ago #

    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/

  2. DynaBMan
    Member
    Posted 2 years ago #

    I just tested it with the default WordPress theme on a test site and the plugin seems to work as it is designed.

  3. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

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

  4. DynaBMan
    Member
    Posted 2 years ago #

    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.

  5. DynaBMan
    Member
    Posted 2 years ago #

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

  6. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    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

  7. DynaBMan
    Member
    Posted 2 years ago #

    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.

  8. DynaBMan
    Member
    Posted 2 years ago #

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

  9. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    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...

  10. DynaBMan
    Member
    Posted 2 years ago #

    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

  11. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Could you please send me a link to your Blog?

  12. DynaBMan
    Member
    Posted 2 years ago #

    http://www.ldjackson.net

    I currently have the plugin disabled.

  13. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    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...

  14. DynaBMan
    Member
    Posted 2 years ago #

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

  15. pakonik
    Member
    Posted 2 years ago #

    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.

  16. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

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

  17. pakonik
    Member
    Posted 2 years ago #

    Hi jan,

    I have spent same time investigating it but still cant put my finger on it..

    Here is my work in progress. Its without DynaBMan fix now..
    http://pavelon.cz/pilotni-denik/

    Thanks for your time m8!

  18. pakonik
    Member
    Posted 2 years ago #

    It is working now. I have bent it for my need.

    Awesome plugin!! Thanks!

    wp-ajaxify-comments.js

    var submitName = form.attr("name");
    wpac_options.selectorCommentsContainer = "#"+submitName;
    var oldCommentsContainer =jQuery(wpac_options.selectorCommentsContainer);

    comments.php

    <div class="mycomments" id="c504" >
    comments.php code
    </div>
    
    <form name="c504" id="commentform" class="form-vertical" method="post" action="http://wp-comments-post.php">
  19. pakonik
    Member
    Posted 2 years ago #


  20. bhagwad
    Member
    Posted 2 years ago #

    @janjonas

    Your changes work with my Atahualpa theme - thanks for an awesome plugin!

  21. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    @pakonik: Which theme do you use? I would like to try to add out-of-the-box support to this theme in my plugin.

  22. pakonik
    Member
    Posted 2 years ago #

    What i use is this WordPress Bootstrap. It is more like a front-end framework to handle all those WP latest bells and whistles.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ajaxify Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.