Pete
Forum Replies Created
-
Hi, have you figured out the issue?
Thanks a lot as well. ??
Fork here https://github.com/pmichael/ptm-ajax-comments if you have more changes.
If everything works then please mark this topic as resolved.
Nice, regex was never my strength. I did it with
tmpComment = tmpComment.replace( '<div class="reply">', '<div class="reply" style="display:none;">' );
??
Thank you ??
Ah man, another bug as the reply link only gets added to the new comment. *sigh* ??
Now I just need to replace/strip away the Reply link from tmpComment depth-2 comment as that doesn’t apply to my site.
Settings -> Discussion -> Enable threaded (nested) comments X levels deep | set X to 2 and the reply links will be gone.
Glad you found your own solution to the bug. I will work on mine and add it to the next update.
Thanks for pointing it out! ??
Try this:
- get https://gist.github.com/2300355 and replace the file ptm-ajax-comments.dev.js in the plugins js directory
- go to the plugin options page -> Support -> Developer JS -> check = on
Found it. It’s a bug in the plugin. Do not expect a fix today. ??
(The added comment gets processed by the
Walker_Comment
class. Since its the only comment in the comments array, the$depth
returned is always 1)Does the comment get added at the correct position?
Edited: https://gist.github.com/2299483#file_functions.php
- removed select/case/break statements
- removed $GLOBALS[‘comment_depth’] = $depth;
Strange, let me dig into this, maybe I’ll see something.
Changed line 7 in functions.php: https://gist.github.com/2299483