WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: TinyMCEComments] Not working with nested comments in 2.7 (22 posts)

  1. houseofstrauss
    Member
    Posted 5 years ago #

    Works ok except, if you open up a nested comment< there is no focus in the mce form field

    http://wordpress.org/extend/plugins/tinymcecomments/

  2. toban
    Member
    Posted 5 years ago #

    Yeah, I noticed that too. Deactivating it until that gets fixed.

    Please fix soon!

  3. SuperMAG
    Member
    Posted 5 years ago #

    use comment form quicktags, its way bitter and safer.

  4. mk_is_here
    Member
    Posted 5 years ago #

    The problem with nested comment is originated that the "comment form popped below the comment you want to reply" effect.

    The WordPress built in function (maybe from theme I suppose) "copies" the original one and place it below a specific comment, and hides the original one. However, it does not move TinyMCE keybinds, i.e. "Click this specific place will bold the text I highlight", "type any keys into the custom built JavaScript Object", blah blah blah... And so it seems "locked", does not react to user keystrokes and mouse clicks.

    I don't know if that could be solve by the modifying the plugin or the theme or WP itself, and currently I don't have the time to look into...

  5. houseofstrauss
    Member
    Posted 5 years ago #

    Thanks mk for an explanation. Sorry this can't be resolved yet, as nested comments is a priority for many users.

  6. Ben
    Member
    Posted 5 years ago #

    I managed to get tinymce working with threaded comments by hacking the comment-reply.js and basically destroying the editor before "a move" and reinitialising it afterwards... If you're interested here's my modified version.

    This obviously isn't really a proper solution as it changes a wordpress core file but I haven't found a way of hooking into that file without changing it. Maybe it would be good if the addComment object would allow to set two event handlers which are called before and after the form move...

  7. arroba3
    Member
    Posted 5 years ago #

    Hello!

    bforchhammer, I used the modified version you wrote but I'am having a new problem: I have a doble TinyMCE box now, one taht works and the other that doesn't. Here you have a pict.

    Any suggestions?

    Thank you very much!

  8. Ben
    Member
    Posted 5 years ago #

    @arroba3: When someone clicks on a reply button my changes to that file should cause any tinymce instanced which are attached to the comments textarea to be removed and then re-created after the form has been moved... It seems that the old editor instance does not get removed.

    The only thing which I think that you need for my changes to work is that the textarea has the id "comment" (and the textarea alone.. ids are supposed to be unique).

    Sorry I can't be of more help, but I'm actually not using the TinyMCEComments plugin at the moment because the mce editor is hardcoded into our theme... so I don't know if there's anything else that could interfere with it.

  9. object81
    Member
    Posted 5 years ago #

    Thanks bforchhammer! That worked for me.

  10. Ben
    Member
    Posted 5 years ago #

    @mk_is_here: Sorry, I haven't found an email address or anything to contact you on, so I'm just posting this here.

    I've worked out a "proper" solution which does not require changing core files any more and also uses more of wordpress' core tinymce functions (which makes it more robust to upgrades); If you're interested please send me an email and I'll help to get it integrated into your plugin.

  11. mk_is_here
    Member
    Posted 5 years ago #

    Hi all, and many thanks to @bforchhammer, we now have threaded comment support in 0.4.7! Feedbacks are welcome.

  12. steupz
    Member
    Posted 5 years ago #

    mk, it doesn't work for me on either of my two sites with different themes.
    Previously when I clicked reply it didn't allow me to type anything at all. Now I can make a comment but it doesn't show as a nested comment.

    Any ideas?

  13. mk_is_here
    Member
    Posted 5 years ago #

    steupz, I have tried on the default theme only. WOuld you mind telling me the themes you are using?

  14. steupz
    Member
    Posted 5 years ago #

    mk, thanks for replying.
    I am using a very well designed child theme, Shadow, on the Options theme by Justin Tadlock.
    That's on my primary site, http://bourgy.com

    And I am using the default Kubrick on my other site http://frompstomp.com

    Both have the same issue, I can utilise all the features for a regular comment, but if I reply to a comment, it doesn't show as nested and it shows as a 'single comment' at the bottom of all comments.

    Can you point me to a site where it works perfectly so I can have a look?

  15. steupz
    Member
    Posted 5 years ago #

    Update: got it to work on http://frompstomp.com using Kubrick theme, once.
    Literally,one time.

    I made a reply, it nested, another user replied, didn't work; then I tried again and it didn't work thereafter.
    [tearing my hair out]

  16. mk_is_here
    Member
    Posted 5 years ago #

    Yeah, I could simulate that on my testbed WordPress...
    Searching for way to fix the problem. Somebody may have an idea?

  17. steupz
    Member
    Posted 5 years ago #

    I really want this fixed, my commenters post a lot and add a lot of links.
    This would help a great deal

  18. steupz
    Member
    Posted 5 years ago #

    Any luck mk?

  19. tabs_xx
    Member
    Posted 5 years ago #

    Hi. I have downloaded the latest version of WP. 2.8.1 yesterday and tried to use latest version of the plugin( 0.4.7-2 stable). But it seems that the nested comment does not work. The second issue I have found was if "Users must be registered and logged in to comment " function is enabled, the plugin does not load.

    I think the problem with the nested comment is happening because although you have tried to override the original comment-reply.js with comment-reply.dev.js, there is a bug when you try to override the parent.value for the input tag.
    Both js script use document.getElementById(comment_parent) but when you are using the tinymce, there`s another "comment_parent" id associated with a span tag for tinymce just above the input section. getElementById only returns the first ID. Hence the value for the input tag with id comment_parent is not being set.

    The second bug is because $user_ID seems to be always false(is this a "global var" in wp?). hence it will only work when !get_option('comment_registration') returns true.

    Hope this helps.
    BTW: I have absolute NO Real experience of JS/PHP/CSS/HTML

  20. AlainVitry
    Member
    Posted 4 years ago #

    Hi,
    My try to fix it, using version 0.4.7-3:
    In comment-reply.dev.js, i add at line 22:

    21| parent.value = parentId;
    22| t.I('comment_parent').value = parentId;
    23| cancel.style.display = '';

    This forces comment_parent value to be updated.
    I am in no way a javascripter, but this works.

    Hope this helps,
    Alain

  21. saharusa
    Member
    Posted 4 years ago #

    Not working for me too...

    Wpmu 2.7.1 with the latest tinymcecomments v0.4.8, but no luck with threaded comments yet.
    two major problems:
    1. ie7-8, every reply translated to new comment
    2. In ff,chrome, when trying to reply to a comment the tinymce box get out of focus and there is no way to type anything anymore. also, if you wrote something before trying to reply (move the textarea) the text is goneā€¦)

    any help, direction?

  22. Gravitydk
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic