Delete all user attachments

As media uploads are simly files with no related data stored, you can’t do that unless you extend the user data and save the file names, etc. as user meta data. Simple answer: No, it doesn’t work.

Rename Buddypress Profile Tab

Look at the source, you know that already. 🙂 I didn’t but I bet there is a piece of code looking like this: _e( ‘Activity’, ‘buddypress’ ); … or … __( ‘Activity’, ‘buddypress’ ); Follow the functions, they are wrappers for the function translate() in wp-includes/l10n.php: /** * Retrieves the translation of $text. If there … Read more

Buddypress send email notification only if user is not logged in [closed]

One thing you can do is to filter $email_to and return empty string if the recipient is logged in. This way wp_mail() will fail to send the message and return false. Add the following to theme functions.php or to bp-custom.php file: add_filter(‘messages_notification_new_message_to’, ‘disable_loggedin_email_notification’); function disable_loggedin_email_notification($email_to) { $user = get_user_by(’email’,$email_to); if (bp_has_members(“type=online&include=$user->ID”)) { $email_to = ”; … Read more

How to override Member’s Avatars in BuddyPress [closed]

The filters you cite are only for the default/fallback avatars. If you want to replace BP avatars altogether, the key filters are bp_core_fetch_avatar and bp_core_fetch_avatar_url. The latter filters the entire HTML avatar element, while the latter does just the URL. How you do the filtering depends on how fancy you want to get. The bp_core_fetch_avatar … Read more

What’s the easiest way to change the default landing page for BuddyPress groups?

[Edit – My original answer will only work in the upcoming BP 1.6] Versions of BuddyPress from 1.6 onwards function bbg_change_group_default_extension( $default ) { return ‘forum’; } add_filter( ‘bp_groups_default_extension’, ‘bbg_change_group_default_extension’ ); Versions of BuddyPress prior to 1.6 For the moment, you’ll have to use something like the following, which is a modified version of bp_core_new_nav_default() … Read more

how to get current user name by user_id in buddypress?

You can use the very same get_userdata function of WordPress to code a specific function. Stick this in your functions.php: function get_display_name($user_id) { if (!$user = get_userdata($user_id)) return false; return $user->data->display_name; } So you can do something like: $display_name = get_display_name($some_user_id); echo $display_name;

How to force buddypress users to complete profile after registration? [closed]

Use wp_redirect() and admin_url() to redirect the user to his profile page if the custom buddypress user meta data isn’t completely filled. From another answer, I’ve seen that there’s the following function: bp_get_profile_field_data(). So you can easily build a template tag, that gives you either the full buddy user meta data set, or simply a … Read more

What problems can BuddyPress make? [closed]

I think the question is: What do want to accomplish? For a subset of features e.g. an activity stream for your WordPress Network it works fine in my experience. If you want a full-blown social network, with messaging, events, groups, blogs, forums all working neatly together better invest a good amount of time. Some caveats … Read more

Buddypress Full documentation [closed]

and here is the almighty output for buddypress 1.5.2! bp_activity_setup_globals bp_activity_setup_nav bp_activity_directory_activity_setup bp_activity_screen_my_activity bp_activity_screen_friends bp_activity_screen_groups bp_activity_screen_favorites bp_activity_screen_mentions bp_activity_screen_notification_settings bp_register_activity_actions bp_blogs_setup_globals bp_blogs_setup_nav bp_blogs_directory_blogs_setup bp_blogs_screen_my_blogs bp_blogs_screen_create_a_blog bp_blogs_register_activity_actions bp_core_admin_screen_fields bp_core_admin_screen bp_adminbar_logo bp_adminbar_menus bp_adminbar_random_menu bp_notification_settings bp_signup_validate bp_complete_signup bp_styles bp_custom_profile_boxes bp_custom_profile_sidebar_boxes bp_core_setup_globals bp_core_action_directory_members bp_core_render_message bp_core_clear_cache bp_include bp_setup_root_components bp_setup_globals bp_setup_nav bp_register_widgets bp_init bb_admin_footer bb_admin_head bb_pre_export bb_export bb_admin_notices bb_schema_defined bb_get_admin_header bb_admin_menu_generator bb_admin_notices … Read more

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