Exclude User from Activity Stream in BuddyPress?

<?php add_action(“plugins_loaded”,”bpdev_init_sm_mode”); function bpdev_init_sm_mode(){ global $current_user; if(is_user_logged_in()) { get_currentuserinfo(); if(“someusername” == $current_user->user_login) { remove_action(“wp_head”,”bp_core_record_activity”);//id SM is on, remove the record activity hook } } } ?>

How to get larger version of author avatar

I found the function that makes up bp_post_author_avatar() and then changed the type to full. Place this funtion in functions.php and use the new function to call the post author avatar in the template. function fod_post_author_avatar() { global $post; if ( function_exists(‘bp_core_fetch_avatar’) ) { echo apply_filters( ‘bp_post_author_avatar’, bp_core_fetch_avatar( array( ‘item_id’ => $post->post_author, ‘type’ => ‘full’ … Read more

I’m trying to Add a new Buddypress menu tab and it is not showing up [closed]

Make sure that you only attempt to set up the items after BP has set up its core navigation. You can ensure this by hooking to bp_setup_nav with a priority higher than 10. Thus: function bbg_setup_nav() { bp_core_new_subnav_item( array( ‘name’ => ‘Document List’, ‘slug’ => ‘group-document-list’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->groups->slug . “https://wordpress.stackexchange.com/”, ‘parent_slug’ => … Read more

How to Change BuddyPress Mystery Man Graphic without Overwriting Core Image File [closed]

I’ve used this code on my own BuddyPress site. Works like a charm! // Use a better image than default mystery man function bp_custom_set_avatar_constants() { define( ‘BP_AVATAR_DEFAULT’, get_stylesheet_directory_uri() . ‘/images/mystery-man.jpg’ ); define( ‘BP_AVATAR_DEFAULT_THUMB’, get_stylesheet_directory_uri() . ‘/images/mystery-man-50.jpg’ ); } add_action( ‘bp_init’, ‘bp_custom_set_avatar_constants’, 2 ); Add this to your bp-custom.php file, or, if you’re developing a theme, … Read more

Make Profile link, link to the BuddyPress profile instead of the WordPress dashboard? [closed]

There are two ways to do that: From the plugin settings page On the “Loggedin Links” option, the second anchor tag is pointing to WordPress profile by default: ‘<a href=”http://yoursite.com/wp-admin/profile.php”>Profile</a>’. You have to update this to point to Buddypress profile page, to do so, you need to know what is the members domain that Buddypress … Read more

Remove tabs from buddypress groups and members pages [closed]

Managed to crawl through the core code and find this function: bp_core_remove_subnav_item So you can do something like this: function remove_group_options() { global $bp; bp_core_remove_subnav_item($bp->groups->slug, ‘members’); bp_core_remove_subnav_item($bp->groups->slug, ‘send-invites’); } add_action( ‘bp_setup_nav’, ‘remove_group_options’ );

Buddypress get member meta info for specific user ID [closed]

to get the buddypress profile field data use: bp_get_profile_field_data( array( ‘field’ => ‘your-field-slug’, ‘user_id’ => $user_id ) ); to get the avatar look up bp_get_member_avatar(), and for the name there is bp_displayed_user_fullname() but you need to be in the bp_has_members loop for that one.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)