This topic contains 5 reply and 3 voices, and was last updated by Tareq Hasan 6 years, 7 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
March 23, 2013 at 12:13 am 1433
Tareq Hasan You guys must be doing something to make the get_avatar return a local avatar rather than just gravatar, right? I need to determine if there is an avatar available for a user - either a gravatar or a local avatar. Is there a way to do that?
March 23, 2013 at 1:36 am 1435
Mahi Mahi

Helo cheekyboots,

We are not doing anything here 🙂 . The profile image is displayed by the standard get_avatar() function, provided by WordPress.

March 23, 2013 at 1:55 am 1437
cheekyboots cheekyboots

No. get_avatar() by itself only returns gravatars.

Never mind, I searched your codebase. You are filtering get_avatar() in the wpuf-functions.php file on line 553 so it uses wpuf_get_avatar to look for a local avatar first.

March 23, 2013 at 2:05 am 1438
Mahi Mahi

WordPress by default shows image using Gravatar .

In registration form settings option their is a profile field – Avatar .

By default, wpuf plugin try to get this Avatar (if its been using or not) , then try to get Gravatar .

Cheers.

March 23, 2013 at 2:23 am 1439
cheekyboots cheekyboots

Yes, I just said that.

March 23, 2013 at 3:26 am 1441
Tareq Hasan Tareq Hasan

Yeah, you are right. It’s filtering the get_avatar function. I am looking for a custom field user_avatar, if it exists, I am showing the local avatar.

Viewing 5 Posts - 1 through 5 (of 5 total)