Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

In regards to the COVID-19 situation

Your support team is currently doing their best to offer the best support possible despite the current COVID-19 situation. However during these exceptional circumstances, please note that you should expect a response time of 2-3 business days, until further notice.Rest assured that we will still do our best to handle your requests as soon as possible! Everyone stay safe and healthy! 😷

Icon is missing when BP Better Message is activated

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Surrealer
    Participant
    • 16 Topics
    • 47 Posts
    @surrealer

    Hello,
    there is the message icon missing when BP Better Message is activated.
    (see screenshots)

    Do you have a hotfix for me and can correct it in your next update?

    Kind regards
    Surrealer

    Jason
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 336 Posts
    @themoceratops

    Hi @surrealer,

    Thank you for your feedback, this is indeed an issue within Gwangi. The fix for that will be included in our next release.

    Meanwhile, here is a PHP code snippet that you can use as a hotfix:

    if ( ! function_exists( 'gwangi_buddypress_get_displayed_user_secondary_nav' ) ) :
    	/**
    	 * Display a secondary nav on member profiles containing the "notifications", "messages" and "settings" icons
    	 *
    	 * @since 1.0.0
    	 */
    	function gwangi_buddypress_get_displayed_user_secondary_nav() {
    		$bp = buddypress();
    
    		foreach ( $bp->members->nav->get_primary() as $user_nav_item ) {
    			$items_to_display = array(
    				'notifications',
    				'messages',
    				'bp_better_messages_tab',
    				'settings',
    			);
    			if ( ! in_array( $user_nav_item->css_id, $items_to_display ) ) {
    				continue;
    			}
    			if ( empty( $user_nav_item->show_for_displayed_user ) && ! bp_is_my_profile() ) {
    				continue;
    			}
    
    			$selected = '';
    			if ( bp_is_current_component( $user_nav_item->slug ) ) {
    				$selected = ' class="current selected"';
    			}
    
    			if ( bp_loggedin_user_domain() ) {
    				$link = str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item->link );
    			} else {
    				$link = trailingslashit( bp_displayed_user_domain() . $user_nav_item->link );
    			}
    
    			/**
    			 * Filters the navigation markup for the displayed user.
    			 *
    			 * This is a dynamic filter that is dependent on the navigation tab component being rendered.
    			 *
    			 * @since 1.1.0
    			 *
    			 * @param string $value         Markup for the tab list item including link.
    			 * @param array  $user_nav_item Array holding parts used to construct tab list item.
    			 *                              Passed by reference.
    			 */
    			echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item->css_id, array( '<li id="' . $user_nav_item->css_id . '-personal-li" ' . $selected . '><a id="user-' . $user_nav_item->css_id . '" href="' . $link . '">' . $user_nav_item->name . '</a></li>', &$user_nav_item ) );
    		}
    	}
    endif;

    To add a PHP code snippet to your site, we recommend that you use the Code Snippet plugin. For more info, please visit this article of our documentation:

    Adding Custom PHP Without Changing Your Child Theme

    Best regards,

    Surrealer
    Participant
    • 16 Topics
    • 47 Posts
    @surrealer

    thank you @themoceratops for the fast hotfix. Works like a charm

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1674 Posts
    @themosaurus

    You’re welcome. ?

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Icon is missing when BP Better Message is activated’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.