Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BP Better Messages › Icon is missing when BP Better Message is activated
- This topic has 3 replies, 3 voices, and was last updated 5 years, 6 months ago by Themosaurus.
-
AuthorPosts
-
@themoceratops
- 1 Topics
- 430 Posts
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:
Best regards,
April 8, 2019 at 11:38 #6110SurrealerParticipant@surrealer- 16 Topics
- 47 Posts
thank you @themoceratops for the fast hotfix. Works like a charm
April 8, 2019 at 13:08 #6111@themosaurus- 1 Topics
- 1675 Posts
You’re welcome. ?
Best regards,
April 9, 2019 at 10:26 #6135 -
AuthorPosts
The topic ‘Icon is missing when BP Better Message is activated’ is closed to new replies.