WordPress Multisite

Subfolder Networks Subfolder network can use 1 plugin license per network. Plugin must be activated network wide and license should be activated at primary website: Subdomain Networks One license work only with 1 WP Multisite subdomain website instance. Why a…

Read more

Control if user can reply to thread with hooks

With this filter you can control who can reply to the thread dynamically and you can also left custom message if needed. add_filter( 'bp_better_messages_can_send_message', function($allowed, $user_id, $thread_id){ $is_restricted = true; if( $is_restricted ) { $allowed = false; /** * With…

Read more

How to replace email notifications with custom layout?

This is example of code which help you to overwrite email notifications template add_filter('bp_better_messages_overwrite_email', 'override_messages_emailer', 10, 4); function override_messages_emailer( $bool, $user_id, $thread_id, $messages ){ $gmt_offset = get_option('gmt_offset') * 3600; /** * Get user which will receive email */ $user =…

Read more

How to replace sounds in the plugin?

Plugin keeps sound notifications files in this folder: /plugins/bp-better-messages/assets/sounds You need copy this folder to another location in your website which will not be overwritten on plugin update. For example inside the root folder of your website you can create…

Read more

Paid Memberships Pro

Integration with Paid Memberships Pro plugin allow to restrict messaging feature for specific Memberships Levels: For the restricted member the message window will look like this: To restrict the messaging you will also need Paid Memberships Pro – BuddyPress Add…

Read more

How to add text to the new thread button?

This is good example how to add text to the + button: Just add this CSS: .bp-messages-wrap .chat-header .new-message { white-space: nowrap; width: auto; padding-left: 15px; } .bp-messages-wrap .chat-header .new-message:after{ content: 'New Message'; margin-left: 5px; }

Read more

How video calls works?

Requirements Website must work under HTTPS to make this feature work, not works with websites without SSL. Test my browser GO TO THE TEST PAGE Security WebRTC is the most secure voice and video calling technology available today on the…

Read more

Custom messages location

This function will output plugin layout at any place: /** * Displaying messages in custom place */ echo BP_Better_Messages()->functions->get_page(); Need point to custom place location with next filter, so the notifications of plugin are directing to the right place: /**…

Read more
0