Disabling users link to be clickable

Disabling users link to be clickable in messages interfaces. Available since 1.9.9.121 version. Add this code snippet to your child theme function.php file or using Code Snippets plugin for example to disable messages viewer. add_filter('bp_better_messages_user_url', function ($url, $user_id){ return false; }, 20,…

Read more

Disable messages viewer

Add this code snippet to your child theme function.php file or using Code Snippets plugin for example to disable messages viewer. add_action( 'admin_menu', function(){ remove_submenu_page( 'bp-better-messages', 'better-messages-viewer' ); }, 20 );

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

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

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

How to change max height of container?

Default max height of BP Better Messages container for desktops is set to 500px. There is bp_better_messages_max_height filter which you can use to change that value, this is example of how to use it:add_filter('bp_better_messages_max_height', function($max_height){ return 600; // New max…

Read more
0