Creating new dynamic menu including BP links [closed]

Though I don’t have specific code to suggest, it seems like it would be possible to create something along the lines you mentioned by using a custom Nav Walker and generating buddypress-specific links with the $bp global (which you can learn more about here → http://codex.buddypress.org/developer/the-bp-global/). You could alter $output in the custom Nav Walker … Read more

Redirect after User Activation [closed]

Paste this code in your bp-custom.php file or, if you prefer, your active theme’s functions.php file: add_action( ‘bp_core_activated_user’, ‘wpse_70289_activated_user_redirect’ ); function wpse_70289_activated_user_redirect( $user_id ) { $registered_from = get_user_meta( $user_id, ‘registered_from’, true ); wp_redirect( $registered_from ); } I haven’t tested this code myself yet, but it should work just fine. References: http://codex.wordpress.org/Function_Reference/get_user_meta http://codex.wordpress.org/Function_Reference/wp_redirect

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