When a user sign up for a new account the default avatar I set in functions.php is not showing instead they get the default one.
I use WP 3.0.1 and BP 1.2.5.1
My settings below…
function myavatar_add_default_avatar( $url )
{
return get_stylesheet_directory_uri() .’/_inc/images/user-avatar.png’;
}
add_filter( ‘bp_core_mysteryman_src’, ‘myavatar_add_default_avatar’ );
function my_default_get_group_avatar($avatar) {
global $bp, $groups_template;
if( strpos($avatar,’group-avatars’:wink: ) {
return $avatar;
}
else {
$custom_avatar = get_stylesheet_directory_uri() .’/_inc/images/group.jpg’;
if($bp->current_action == “”:wink:
return ‘<img width=”‘.BP_AVATAR_THUMB_WIDTH.'” height=”‘.BP_AVATAR_THUMB_HEIGHT.'” src=”‘.$custom_avatar.'” class=”avatar” alt=”‘ . attribute_escape( $groups_template->group->name ) . ‘” />’;
else
return ‘<img width=”‘.BP_AVATAR_FULL_WIDTH.'” height=”‘.BP_AVATAR_FULL_HEIGHT.'” src=”‘.$custom_avatar.'” class=”avatar” alt=”‘ . attribute_escape( $groups_template->group->name ) . ‘” />’;
}
}
add_filter( ‘bp_get_group_avatar’, ‘my_default_get_group_avatar’:wink:;
This is perfectly working code with wp registration default form but now I am using the membership subscription shortcode [subscriptionform]
Help appreciated
Per client’s request I cannot show the site but snapshots can be made available.