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 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

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

wp_editor on front end – JavaScripts not included

note that wp_editor will echo to output, not put it in a variable. If you want to put it in a variable, just do ob_start(); wp_editor($content, ‘textarea_rich’, $args); $html = ob_get_contents(); ob_end_clean(); and you have what you need in $html. You can also see https://plugins.svn.wordpress.org/indypress/tags/1.0/indypress/form_inputs/tinymce.php for a working implementation. Another issue I noted is some … Read more