Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @dgcov

    Participant

    Ok, so if my function returns: 'wp-content/plugins/chron_reg/images/'.$userMetaData['avatar'][0];, that will disable the gravatar anyway?

    return 'wp-content/plugins/chron_reg/images/'.$userMetaData['avatar'][0]; will obviously return ‘true’?

    So will that disable the gravatar even if it exists?

    @dgcov

    Participant

    Yes, I’d probably want to override the gravatar entirely and just replace it with the local avatar.

    @dgcov

    Participant

    Ah, ok, I see it!

    The add_filter( 'bp_core_default_avatar_user', 'feed_user_avatar' );
    function feed_user_avatar(){
        $user_id=get_current_user_id();
        if(!$user_id){
          return;
        }
        $userMetaData=get_user_meta($user_id);
      return 'wp-content/plugins/chron_reg/images/'.$userMetaData['avatar'][0];
    }

    Cheers!

    @dgcov

    Participant

    Hi Henry!

    30 minutes too long for you? My cousin started it up last year and it’s apparently doing hugely well, if not in the running times, certainly socially. Very high proportion of female members which is undoubtedly a major proponent of a good social scene. The running is enthusiastic rather than olympian.

    With regards to the avatar issue, that will change the default avatar, no?

    All users have uploaded their custom avatars and these are in the directory mentioned in the OP.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar