Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Diabolo
    Participant

    @cebuss

    If you haven’t already found it, perhaps this will achieve the functionality you require: https://buddydev.com/support/forums/topic/restrict-activity-commenting-by-member-type/.


    Diabolo
    Participant

    @cebuss

    Thanks @danbp for that toggle snippet, nearly five and a half years later and still works a treat!

    Two questions if I may:

    1 Is it possible to default to hidden?

    2 Is it possible to move the button to another position?

    Toggle move

    I’m testing Youzify which may complicate things as it appears where I want to move it to is behind a Youzify component that only appears once a comment has been posted.

    From what I understand (which in coding is very little sadly) your code searches for the “Comment” button and inserts the toggle button after it:

    $(this).find('.button.acomment-reply').after(html);

    I tried modifying that line in your code to target the Youzify component which has a div class of “youzify-post-comments-count”, but alas, no joy.

    $(this).find('.youzify-post-comments-count').after(html);

    Any pointers would be much appreciated.

    Regards

    Edit: image doesn’t appear to be showing but can be seen here https://www.awesomescreenshot.com/image/18924495?key=fdf218d488bb16129f5baeb43949ba6b

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar