An avatar is a graphical representation of a user

learn more… | top users | synonyms

6
votes
3answers
10k views

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I'm using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. ...
6
votes
1answer
4k views

Alternative to using get_avatar function?

I used a WP hack for displaying author's pics. For example, my single.php has an author slug which displays the author's pic. I created a folder called authors in my theme/images folder. Based on the ...
5
votes
3answers
489 views

Set default avatar network-wide

I've seen plugins and snippets on how to set a new default avatar for a site. I'm wondering if this can be done network-wide, such that every new site on the network will have the network's avatar as ...
5
votes
1answer
4k views

Removing Gravatar.com support for WordPress and Simple Local Avatars

Currently I'm using Simple Local Avatars on several of my blogs allowing people to upload their own custom avatar. As far as I know Simple Local Avatars uses get_avatar to check whether a custom ...
4
votes
1answer
357 views

What should I do to make generated avatars different for anonymous comments?

All the comments on my website are anonymous and without registration. To post a comment you have to fill the fields name (not obligatorily) and the text of your comment (obligatorily). I have the ...
3
votes
5answers
5k views

Frontend Simple Local Avatar upload

I'm using Simple Local Avatars for uploading custom user avatars. How can I create a frontend page with the avatar upload function? Below please find the code from Simple Local Avatars plugin: ...
3
votes
4answers
2k views

Upload gravatar in WP profile?

I'm interested in the theory of a user being able to register/upload a gravatar directly in their user account within a hosted WP system. Is this feasible?
2
votes
2answers
223 views

Using Heroku, need to have non-gravatar avatars, but not stored locally

So, I am new to PHP, so I'm hoping to do this with a plugin, if possible. We are hosting on Heroku, this means uploading a local image to /uploads isn't going to work for this. We need to be able to ...
2
votes
1answer
615 views

How to make gravatar.com avatars conditional?

Problem: I am using custom avatars for registered users and my own locally-hosted image as the default gravatar. I want to stop WordPress making HTTP requests to check for gravatar.com images on every ...
2
votes
2answers
2k views

How to filter get_avatar?

I want to use local avatar system for my wp website , I want to filter the get_avatar() function so it will return the avatar from my server instead of the default gavatar . I have the following code ...
2
votes
2answers
202 views

remove_filter( 'comment_author', 'floated_admin_avatar' ); doesn’t work

In a small plugin I’ve written to add an IP address column to the comments list I want to remove the avatars. In line 156 I tried to use remove_filter: remove_filter( 'comment_author', ...
2
votes
3answers
1k views

Setting different width and height for gravatar

I've been trying to set a different width and height using the get_avatar function. I need to set the author's avatar in single.php to 60x40 size. So let's say the gravatar looks like this: when ...
2
votes
1answer
2k views

How to override Member's Avatars in BuddyPress

I have tried everything to override the BP Avatar. Found about 5-6 different Google results that basically all point to the same solution: function override_bp_member_avatar($url) { return ...
2
votes
3answers
2k views

How to get larger version of author avatar

I am trying to incorporate author avatars into my posts by doing <?php echo get_avatar( get_the_author_meta('ID'), 150 ); ?> but I can't go larger than 50x50px without it getting stretched ...
2
votes
1answer
169 views

How to remove unused avatar uploads in buddypress

Im seeing in my wp-content/uploads/avatars folder that there are tons of avatars from when I created test users, but changed the avatars. So, i’m assuming that even if the user changes their avatar, ...
2
votes
2answers
1k views

Prompt users to Upload Avatar on Registration

I saw a WP site that had users fill in their basic info and then it directed them to upload and Avatar. The site looked nice because most users had a picture even if they were'nt registered with ...
2
votes
3answers
5k views

Uploading avatar from the frontend

in the codepad link you can find what I am using to edit profile from the front-end. http://codepad.org/QJjDEA7p The code is working (which I got from How to edit a user profile on the front end? and ...
1
vote
4answers
16k views

How to change user`s avatar?

Is there a way o changing user's avatar without plugins? Why there's no "Avatar Upload" section in Users > Your Profile? I can't use a plugin. Am I blind or being forced to use Gravatar? ;/
1
vote
3answers
84 views

Rectangle avatars

I'm using get_avatar() to output images of my users. Ref: https://codex.wordpress.org/Function_Reference/get_avatar The optional size parameter lets me specify a size. However, this makes a square ...
1
vote
2answers
428 views

Cannot get local avatars to show

See updates below. I upgraded to 3.7.1 using svn. I did this on my localhost first to make sure everything is fine. Everything was, so I proceeded to do it on the server. However, on the server, the ...
1
vote
2answers
674 views

Alternative default avatar generator?

Most of the commenters at my WordPress blog do not have a Gravatar account. Hence the comment section is almost always filled with the same old mystery man avatars. I am looking for custom gravatar ...
1
vote
2answers
138 views

Use local image for default avatar

I tried putting this snippet in my functions.php add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . ...
1
vote
1answer
321 views

Random Default Avatar Function

UPDATE! After a little help from the wordpress.org forums, I made some progress with this code: // Custom Default Avatar if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( ...
1
vote
2answers
1k views

get the avatar url instead of an html img tag when using get_avatar?

i want to get the user avatar URL to use it as background URL style for a div. i tried to use the following but it does not return anything when i view the code it appears like that. background: ...
1
vote
1answer
739 views

Changing comments avatar

Is there a plugin that lets me change an avatar of a comment? Since I can edit comments, is it possible to add avatars as well? I don't have registered user on my blog, only guests and those who ...
1
vote
1answer
1k views

How to link avatar and nickname to profile

On the single post page I want to link the avatar function to the author profile, but I tried <a href="<?php the_author_posts_link(); ?>"> <img src="<?php echo ...
1
vote
2answers
100 views

Force users to display default Gravatars

Is it possible for a WordPress site to display the users default Gravatar image (of chosen set, eg Retro, Identicon, etc), rather than the users uploaded avatar? As in, all user avatars next to ...
1
vote
1answer
543 views

custom avatar removal

Hello i have implemented a custom avatar upload from front-end in my wordpress theme. It is working. User can add and remove customa avatar. My problem is when user selects to remove his/her custom ...
1
vote
1answer
101 views

upload or auto setup feature photo by user avatar

I want user avatar image is set as a feature image, If there is no featured image. I am trying to do like this. function auto_featured_image() { global $post; if (!has_post_thumbnail($post->ID)) ...
1
vote
0answers
722 views

Why are BuddyPress user avatars not displaying properly?

I have a BuddyPress 1.6.x installation on WordPress 3.4.2. User avatars are not displaying in the following situations. On pages like: www.domain.com/members/USERNAME/profile/edit/group/1/ Here is ...
1
vote
1answer
78 views

Remove hovercard for only certian gravatars

I am using the Extended Gravatar plugin by Reza Moallemi and it works great. However, on my about page I have a large gravatar to show the author. I would like to know if there is a class I can add to ...
1
vote
0answers
242 views

Upload or Choose Avatar on comment [closed]

My market is not the tech savvy Gravatar using folks. So...I'd like to allow them to choose from a list of nice avatars or be able to upload upon commenting. Users will not necessarily be ...
0
votes
2answers
74 views

Which Function Displays The Post Authors Gravatar

I am using: echo get_avatar(get_the_author_id(), 30); Which works, however i am getting this notice to use: echo get_avatar(get_the_author_meta(), 30); Which doesn't display the authors Gravatar ...
0
votes
2answers
2k views

How to get gravatar url alone

I would like to use gravatar image as background image for a button. When i use get_avatar function it returns with height width src parameters. But i need only gravatar url. I mean like ...
0
votes
1answer
3k views

Get avatar of the logged-in user in Wordpress

How can I get a user avatar to display in the header of my WordPress site? I've tried: <a href="<?php echo get_author_posts_url($post->post_author); ?>" title="<?php the_author_meta( ...
0
votes
1answer
86 views

How do I accesss gravatar?

In the administration under Your Profile, which is where I suspect it would be, I can't find anything relating to gravatar
0
votes
1answer
148 views

Custom avatars in wordpress comments?

I'm looking for a way to let people connect with facebook when posting comments, and to use their facebook avatars as the avatar for the comments. How can this be done? Do I need to create a seperate ...
0
votes
1answer
970 views

show list of latest comments for each post in a loop

I want to show the last 5 comments for each post on my index page loop of posts. What Im using now is only showing the same comments for every post. How should I set this up and how can I add an ...
0
votes
2answers
324 views

Best way to tell if a comment is from a user?

I've got an if ($comment->user_id) block to pick an default admin comment gravatar (different than a non-user's). But I'd still like this gravatar to be used if a user comments using their ...
0
votes
1answer
133 views

woocommerce allow users to select or use avatar

I am working on constructing a ecommerce site that is run by woocommerce and the free woo theme artificer. Standard with the plugins there is a my account page which allows you to put in basic ...
0
votes
1answer
33 views

How can I display other user avatars on an author profile page?

I have an author profile page where I'm displaying a user avatar and information about the author. On this same page, I'm also trying to include posts by other authors with their avatar displayed next ...
0
votes
1answer
361 views

Change the “Default Avatar” admin option via functions.php

So I'm trying to add a new default avatar for my theme using the following code: add_filter( 'avatar_defaults', 'mytheme_default_avatar' ); function mytheme_default_avatar ( $avatar_defaults ) { ...
0
votes
1answer
71 views

Author Avatar as default first image

I need little bit help and customization on my existng script at function.php for wordpress 3.5. Here's what I have. As you can see here the default picture is none exist will be using $first_img = ...
0
votes
1answer
118 views

Inline-Table under TwentyTwelve not working

I recently wanted to add a comfortable way to automatically add users to a page within small boxes including information an an image. So I followed this tutorial an customized the code: ...
0
votes
3answers
377 views

Gravatar - Default IMG

Gravatar is slowing my website and I want to host mystery man on my main server. So this is my normal gravatar mystery man <img class="avatar avatar-68 avatar-default" width="68" height="68" ...
0
votes
1answer
924 views

get_avatar() default image not working as of wp 3.5 [closed]

As of upgrading to wp 3.5 the get_avatar function started not pulling in my default backup image. This has worked for many years this way and curious to why it would stop. I am using the normal use of ...
0
votes
1answer
255 views

Change the avatar ratio in bbPress login widget

I am using bbPress on my site and have (bbPress) Login Widget on my sidebar. Is there a way to change the default image size from 40 to 80 or other number? here is the code from the core files: ...
0
votes
2answers
588 views

Replace default avatar

I've searched google quite a bit and every site has the same filter but it doesn't seem to be working for me. Not sure if it's my setup or just old code. I'm trying this: add_filter( ...
0
votes
2answers
813 views

How to set the default avatar of buddypress avatar

I need a way to set the default avatar for buddypress's bp_core_fetch_avatar. Using the regular get_avatar you can just set the $default path but I can't find anyway to do it with buddypress's ...
0
votes
1answer
479 views

How do you remove the buddypress group avatar from the activity stream post?

When a member post to a group it shows up in the activity feed under “username posted an update in the group” then its followed by the group avatar then the group name. So I was wonder how I could ...