Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #19508
    Maarten
    Participant

    Will do!! Thank you.

    #19485
    Maarten
    Participant

    I have a page with multiple tabs, under one of those tabs is a chatroom.

    I used the better-messages-show-notification event to show a little notification icon on top of that specific tab when a new message came in from that specific chatroom.

    Hope that makes sense?

    #19435
    Maarten
    Participant

    Great! I will test it out and let you know!

    #19431
    Maarten
    Participant

    Good question, it was requested by one of my team members. We use the chat for people to discuss quite sensitive topics, and my team member was worried that people might feel unsafe if it’s so easy to copy/paste the message.

    But hiding this button is not a ‘must have’ feature. We were just wondering if it was supported in some way.

    #19060
    Maarten
    Participant

    Good question, that was a bit of a creative workaround actually. I made a seperate join/leave button, which would then trigger the click events on the existing BM join/leave buttons. Then after the leave button was triggered I would wait for the bp-better-messages-reinit-end event and know that the user had just ‘left’ which meant I could trigger a redirect.

    With BM 2.0 triggering the leave button doesn’t work anymore, since the leave button is only added to the DOM after clicking the 3 dots menu. But if there would be a bp-better-messages-left event, I could redirect (or do something else) whenever somebody leaves a chatroom, which would be very useful.

    If it would be possible to also add a bp-better-messages-join and bp-better-messages-leave events that would trigger joining or leaving a chatroom. That would be super helpful as well.

    Thank you for considering.

    #19055
    Maarten
    Participant

    Ok, great, good to know. Thank you!

    #19053
    Maarten
    Participant

    At the moment I am simply doing:

    $threads = BP_Better_Messages()->functions->get_threads($current_user->ID);
    foreach ($threads as $thread) {
    // something
    }

    I’m happy to keep doing this, I was just wondering if this function will be deprecated, what to do then.

    #19050
    Maarten
    Participant

    Great, thank you!

    #19049
    Maarten
    Participant

    Ah, thanks for letting me know. I am using this function for my current theme, is there a BM 2.0 way to get the current threads of a user? So I can update my code and be ready for the changes…

    #14107
    Maarten
    Participant

    Better Messages (Premium) Version 1.9.10.67

    #13059
    Maarten
    Participant

    Thanks for checking and letting me know. For my use-case a hook when a user joins a chat room would be super useful.

    I’d be very grateful if this can be added to the plugin. Thank you.

    #13051
    Maarten
    Participant

    I kinda have the same question which isn’t answered yet.

    I want to add a message to a chat room each time a user joins a chat room. To welcome them and invite them to introduce themselves. Is there a function that registers whenever somebody joins a chatroom? And then a way to add a message to that chatroom?

    Thank you!

    • This reply was modified 2 years, 1 month ago by Maarten. Reason: For clarity
Viewing 12 posts - 1 through 12 (of 12 total)