Forum Replies Created
- 
		
			
Thanks Andy. Enjoy this lovely ticket. I cleared any outstanding group invites from the wp_bp_notifications table in the database and successfully invited a user to a group in 1.2.1, however when I tried to invite them to a second group, I was unsuccessful. I checked the wp_bp_notifications table in my database, and there is no “group_invite” activity logged since our upgrade to 1.2.1. +1 Even better! Add this to your functions.php: function bp_is_friend() { global $bp; if ( ‘is_friend’ == BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id ) ) return true; return false; } Now you can drop bp_is_friend() in wherever you want to check if the displayed user is a friend of the logged in user, such as: <?php if ( bp_is_friend() || bp_is_my_profile() ) { ?> The above line checks if the displayed user is a friend or is the user. Even better: <?php global $bp, $friends_template; $friend_status = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id ); if ( $friend_status == ‘is_friend’ || bp_is_my_profile() ) { ?> Andy — Add this to your child functions.php: function remove_header_support() { remove_action( ‘init’, ‘bp_dtheme_add_custom_header_support’ ); } add_action( ‘init’, ‘remove_header_support’, 9 ); (Hat tip: MrMaz) Not sure if this is the perfect way to do it, but here’s how I achieved what I was trying to do. This is in one of my templates: <?php global $bp, $friends_template; $friend_status = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id ); if ( $friend_status == ‘is_friend’ || $bp->loggedin_user->id == $bp->displayed_user->id ) { ?> This checks to see if the user you’re looking at is a friend OR you, and then would display the information following it. You would then follow up with an else that shows the information non-friends see. Roger — MrMaz has the solution to that over here. A temporary quick fix would be to add the following to your child theme’s CSS: If you don’t want any image: #header { background: none !important } If you want some other image: #header { background: url(/path/to/image.gif) !important } Likewise. Tried setting a priority on the remove_action to no avail. WP 2.9.1, BP 1.2