Title: fusse's Replies | WordPress.org

---

# fusse

  [  ](https://wordpress.org/support/users/fusse/)

 *   [Profile](https://wordpress.org/support/users/fusse/)
 *   [Topics Started](https://wordpress.org/support/users/fusse/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fusse/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fusse/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fusse/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fusse/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fusse/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/fusse/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/fusse/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/page/2/#post-2664913)
 * Now that was fast 😉 I grabbed your updated version, installed and tested in 
   my environment. Works like a charm so far.
 * Job well done sir! 🙂
 * So therefore: resolved!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/page/2/#post-2664905)
 * tmpComment = tmpComment.replace( /<p class=”reply”>(.*?)<\/p>/, ” );
    this after
   the depth-1 replace. don’t know how “good” this is but no errors and works and
   that’s fine with me in this case.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/page/2/#post-2664903)
 * Anyways, this is still a stellar plugin even with them little hiccups 🙂 Keep
   up the good work!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/page/2/#post-2664901)
 * I already have that setting enabled in Discussion… 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664899)
 * I managed to fix my issue with replacing the depth-1 with depth-2 in the tmpComment–
   kinda what you did in your example but I did it here:
    if(jQuery(‘#’+css_respond).
   parent().children(‘.children’).length) { // There are replies, add comment to
   the end of the list tmpComment = data.replace( ‘depth-1’, ‘depth-2’ );
 * and here:
 * tmpComment = data.replace( ‘depth-1’, ‘depth-2’ );
    tmpComment = ‘<ul class=”
   children”>’+tmpComment+”;
 * I only use depth-2 and no deeper so it works for me. Now I just need to replace/
   strip away the Reply link from tmpComment depth-2 comment as that doesn’t apply
   to my site.
 * I tried your fix though and noticed that it doesn’t quite work still: when replying
   to first level comment, if there are replies that are depth-2 already, the reply
   gets depth-3 instead of depth-2 which it should be getting as it was a reply 
   to the original depth-1 comment.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664893)
 * Okay nice! Thanks. I didn’t take too much time to look into the plugin itself.
   I guess, since the official fix ain’t coming soon, I will take a look myself 
   and try to fix it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664891)
 * Yes. Everything else is as it should apart from the class issue (not getting 
   the depth-2 but depth-1). And page reload fixes this: so the data put to database
   is correct.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664889)
 * Tried. No change.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664887)
 * Thanks! Like I said in the beginning, if I disable the callback from the plugin
   options and make it use the wordpress default list comments (also disable the
   callback in comments.php), it will set the correct class and the reply message
   will be indented but then it of course looks wrong otherwise as it has different
   html layout.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664885)
 * Yea I had it like that before and forgot to change it back. (I tried that to 
   see if it had any effect but it didn’t work).
 * So anyway, the change you made doesn’t affect the outcome at all. I can’t figure
   it out but the problem is that the reply is not getting the correct class. Don’t
   know why though…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PTM AJAX Comments] [Plugin: PTM AJAX Comments] threaded comment not getting the correct css class (depth)](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-threaded-comment-not-getting-the-correct-css-class-depth/#post-2664883)
 * [https://gist.github.com/2299472](https://gist.github.com/2299472)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [comments switched off itself… few times already](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/page/2/#post-1923776)
 * Update on my situation: We switched from iPower shared to a new VPS server (Knownhost)
   couple months ago. After the switch we haven’t encountered this issue once.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Comments Closed on All Posts Over 6 Days Old on TWO blogs](https://wordpress.org/support/topic/comments-closed-on-all-posts-over-6-days-old-on-two-blogs/)
 *  [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/comments-closed-on-all-posts-over-6-days-old-on-two-blogs/page/5/#post-1698852)
 * We switched to a new server just recently (from iPower, which we hated for many
   reasons and were relieved to switch from their shared and VPS hosting to a new
   much better host) and will have to see if we encounter this problem again with
   our new setup.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [comments switched off itself… few times already](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/#post-1923752)
 * Compare the plugins with what?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [comments switched off itself… few times already](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/)
 *  Thread Starter [fusse](https://wordpress.org/support/users/fusse/)
 * (@fusse)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/comments-switched-off-itself-few-times-already/#post-1923750)
 * I have already ruled out the plugins… none of them have any code to trigger comment_status
   to closed on all the database entries.
    Only have one site that this is happening
   on.
 * Server OS Debian (dont know the version)
    SERVER_SOFTWARE Apache/2 PHP 5.2.12

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/fusse/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/fusse/replies/page/2/?output_format=md)