after I was done activating SLL Setup with Really Simple SSL Plugin, the Gravatar Images is not showing up anymore. With it deactivated, the image is still there. http://2.gravatar.com/avatar/*** https://secure.gravatar.com/*** Is there any easy solution you guys know? Greetings TM
I'm using this custom function to get the default avatar from my server instead of gravatar: if(!function_exists('custom_avatar')){ function custom_avatar($avatar_defaults){ $new_default_icon = 'http://localhost/gv/wp-content/images/mystery-man.png'; $avatar_defaults[$new_default_icon] = 'Custom Avatar'; return $avatar_defaults; } add_filter('avatar_defaults','custom_avatar'); } but the custom avatar is not showing up, when I view source code then the src of the image look like this: http://0.gravatar.com/avatar/a432e8915b383edd8d25c2a4fd5a6995?s=32&d=http%3A%2F%2Flocalhost%2Fgv%2Fwp-content%2Fimages%2Fmystery-man.png%3Fs%3D32&r=G&forcedefault=1 Why does my image src relative to gravatar here? How can I fix this problem?
How can user change the own gravatar image from front end? for the back-end there are lot of plugins (like user photo etc.), by which user can easily change the gravatar image?
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 generators for commenters without their own avatar. So far I have only found Identicons, MonsterID’s, and Wavatars. I find some of the avatars generated by these engines to be these ugly, scary and OTT. Also these do not blend with the blog theme and stick …
I am looking for a solution to output nothing instead the default avatar when a user does not have any avatar. I am currently using this line. I looked at the function and the only thing I got so far is to use blank as default avatar but its still occupies space and I do not want that. echo get_avatar( get_the_author_meta( 'ID' ), 70, 'blank', __( 'avatar', 'bla' ) ); Sidenote: Even that blank avatar gets pulled from Gravatar, I …
I noticed that if someone clicks on my Pinterest share button on a blog post, several unrelated images show up. I was able to use nopin="nopin" per Pinterest's documentation on most of these images to clean most of it up. However, I have a custom avatar set in my functions.php... //* Add new default gravatar to Settings » Discussion page */ add_filter( 'avatar_defaults', 'wpb_new_gravatar' ); function wpb_new_gravatar ($avatar_defaults) { $myavatar = 'https://www.fakedomain.com/wp-content/uploads/2017/03/PiggyBank.jpg'; $avatar_defaults[$myavatar] = "Default Gravatar"; return $avatar_defaults; } If …
I've loaded and reloaded my picture into Gravatar, but it still displays as broken in my admin panel. Also, the email address for my Gravatar account is the same as the email address in my admin profile. It's displayed correctly in the past, so I'm not sure what happened to break it.
I think that Im very close to achieve my goal.. I have this function on my themes but I need a help to find the right way to call simple local avatar function so it will show the local avatar image from simple local avatar pugin instead wordpress gravatar? $first_img = get_avatar( $post->post_author ); Is there anyone can help? function get_post_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_img = $matches [1] [0]; …
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 avatar is selected, if not defaults to Gravatar.com. Would it be possible to disable the Gravatar.com bit somehow, disabling Gravatar.com completely and returning just some local hosted image if no custom avatar is selected? I hope it would be OK to post this here, but this …
I added the following code to the functions.php file add_filter( 'avatar_defaults', 'new_gravatar' ); function new_gravatar ($avatar_defaults) { $myavatar = 'link'; $avatar_defaults[$myavatar] = "name"; return $avatar_defaults; I'm taking the profile picture from my own server. But there is a problem! "I1.wp.com" appears at the beginning of the url in the profile image. What is the reason? So it looks like: "https://i1.wp.com/mysite.com/images/myavatar.png" I've disabled all plugins. But the result was not successful. I'm dealing with it in days. How do we delete …
I'm using WordPress with bbPress and Gravatar for user avatars. I want to display the user's avatar next to their topic. I'm using: echo get_avatar( get_the_author_meta( 'ID' ), 32 ); Which get's me this: I know that my author image is set because I set it myself.
Is there a way to convert a user's gravatar/avatar to jpg on the fly? I have the following in my function: get_avatar( $uid, 180 ); which returns the user's avatar image if I call it with straight PHP (i.e.: <?php echo get_avatar( $uid, 180 ); ?> but I want to convert the resulting file to a jpeg/png image so I can insert it into an FPDF function Cheers
One visitor commented on one of my post as a guest. Now, i want to change avatar of this comment using comment ID. Comment ID of the comment is 1092. How can i change avatar of the comment using comment id? Actually i want to change avatar for couple of comments. Any help would be greatly appreciated.
I'm creating a matrimonial website. I want to set the user avatar based on the gender(I have a custom_user_meta for the user's gender) But I don't understand how to get the "user id" in order to use the meta data "user_meta_gender"(to find out if the user is male or female). P.S: I'm not using buddypress, I'm using a plugin named Profile Builder Pro Also get_current_user_id does not work since it retrieves only the LOGGED IN users ID. ``This is the …
Yes, I need a code to do that. Plugin is not an option, I need to use theme's functions.php file. Maybe this filter would help: apply_filters( 'get_avatar', string $avatar, mixed $id_or_email, int $size, string $default, string $alt, array $args ) I have the user ID.
I have an author loop with a profile picture that saves into ACF custom fields and I want to use it as get_avatar but it returns blank. Here is a snippet: $get_avatar = get_user_meta($user->ID, "wp_user_avatar"); $avtar = add_filter( 'get_avatar', wp_get_attachment_image($get_avatar[0], 'thumbnail') , 10, 3 ); Now, <div class="profile-photo"><?php echo get_avatar($user, 100); ?></div> it shows blank div
I've got an install that's loading the wrong gravatar and I can't figure out why. Most confusing is that it's doing it in the front-end templates AND in the admin. Here's a screen cap: The user and email listed are not mine, but the face is. Any idea how that's happening? Even since Gravatar and Jetpack and linked accounts and whatnot I've felt a little disconnected with how these images are actually conjured, but this is the first time it's …
I am looking for a way to check if the user has the default gravatar. It doesn't work if I use a simple get_avatar( current_user_id() ) === false as the default gravatar is still an avatar so it never returns false; It doesn't work either if I check the get_avatar_data( get_current_user_id() )['found_avatar'] as it returns 1 even with default gravatar. Do someone has an idea? Thanks for your help!
I'm trying to display user avatars by login user name using custom fields like this - And here's the code - function user_avatar() { $name = get_post_meta( get_the_ID(), 'user_name', true ); $users = get_user_by( 'login', $name ); foreach( (array) $users as $user ) authors(); } function authors() { $gravatar = get_avatar( $user->user_email , 32 ); echo $gravatar; } However, this code repeats avatars in addition to the only one i want printed. I need to print only the avatars where's …