Forum Replies Created
-
AuthorPosts
-
March 6, 2023 at 5:22 pm #19508MaartenParticipant
Will do!! Thank you.
March 2, 2023 at 1:17 pm #19485MaartenParticipantI 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?
February 14, 2023 at 3:56 pm #19435MaartenParticipantGreat! I will test it out and let you know!
February 13, 2023 at 10:30 pm #19431MaartenParticipantGood 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.
December 10, 2022 at 4:15 pm #19060MaartenParticipantGood 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
andbp-better-messages-leave
events that would trigger joining or leaving a chatroom. That would be super helpful as well.Thank you for considering.
December 9, 2022 at 5:24 pm #19055MaartenParticipantOk, great, good to know. Thank you!
December 9, 2022 at 5:17 pm #19053MaartenParticipantAt 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.
December 9, 2022 at 3:35 pm #19050MaartenParticipantGreat, thank you!
December 9, 2022 at 3:34 pm #19049MaartenParticipantAh, 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…
November 3, 2022 at 4:09 pm #14107MaartenParticipantBetter Messages (Premium) Version 1.9.10.67
October 11, 2022 at 7:17 am #13059MaartenParticipantThanks 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.
October 9, 2022 at 10:31 am #13051MaartenParticipantI 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
-
AuthorPosts