WordPress v6.7 is now showing the following PHP notice:
]]>PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>wp-first-letter-avatar</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href=”https://developer.www.ads-software.com/advanced-administration/debug/debug-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in …/public_html/wp-includes/functions.php on line 6114
Hi,
i have tried this and the buddypress plugin and both are replacing existing buddypress profile avatars with letters on posts and everything other than activity feed.
I have reduced priority with out any effect?
any help would be appreciated.
Thanks
Hello guys,
Your plugin creates an image with the first letter of the user’s email. And sometimes the start of the user’s email is different from the initial of the user’s name (https://screenshot.net/pt/8dk4gh2? / https://screenshot.net/pt/lkpg3sl?).
But you guys could configure the plugin to display the first letter of the user Name, not the email.
Thank you!
Rodrigo
Hey ??
When anyone writes a new comment, a broken image is shown. Please guide on how to display a customised icon or any ‘general’ icon? or to display nothing there?
Everything else is satisfactory with the plugin and thanks a lot for that. Awaiting for the reply, eagerly.
]]>When I UNcheck the “Use Gravatar” option: Does this block ANY communication with gravatar.com – or does it simply not display the Gravatar image?
I am asking this question regarding GDPR compliance, since sending data to gravatar.com might be a privacy issue.
– Martin
]]>Hello,
I have noticed the plugin does not send the letter avatar through the REST API. Is there anyway an option can be added to select to update that avatar too?
Thank you
]]>Hi,
The plugin does not generate the alt tag properly for the first letter avatar.
I imagine this is a quick fix for an update, but until then, I simply changes line 433 of wp-first-letter-avatar.php to include Commenter Avatar for alt=””
$output_data = "<img alt='Commenter Avatar' src='{$avatar_uri}' class='{$css_classes}' width='{$size}' height='{$size}' />";
Can I change the size of the font in the circle? It’s too large right now so it only displays a small portion of the letter.
]]>I installed the plugin and it creates redirects from the gravatar image to the alphabet letter image, so then I have a bunch of redirects, which does do well on the speed tests either.
I thought this happened because I was keeping the actual gravatar available to people who have them with the mystery man option and using letters for those that don’t, but then I switched to a blank space instead of the mystery man, and it still seems to be happening.
Is there any fix for those, so that I can use the plugin, but not have the redirects to the letter images?
Thank you very much, I love the look of the plugin in my comments and would love to use it.
]]>Hello!
Your plugin is good, but it has many letters(images), therefore, the site will receive after uploading of this plugin additional HTTP requests.
I would like to create a CSS sprite to reduce HTTP requests, but unfortunately, I don’t understand how could I turn on CSS sprite with your plugin, and I am not sure that is possible?
Could you explain me, please, how to do it!
Kind Regards
]]>Hi Daniel,
I really like the plugin, because I do not want to use Gravatar for my website. To make it perfect now, can you please tell if it’s possible just to have my own author avatar (image) and for the users your default nice letters?
Really do appreciate your kind help. Have a great day!
Kind regards
Sophie
It would be cool if we could have first and last initials, or even three initials available
]]>Thank you for that great plugin! It works well, but in a widget with comments the same person was shown with a different avatar. The reason was that it used the email address instead of the name.
I found a fix, but I haven’t tested it properly. In the method “set_comment_avatar” (around line 323) use:
} else { // it must be email
$email = $id_or_email;
$user = get_user_by('email', $email);
if (empty($user)) {
global $wpdb;
$user = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_author_email = '%s'", $email) );
$name = $user->comment_author;
}
}
So if there is an email and $user cannot be retrieved, it gets the name directly from the database.
]]>This plugin is supposed to deal locally with avatars, so why are there some calls to external urls like i1:wp.com, i2.wp.com or secure.gravatar.com when loading avatars ?
Something strange here….
]]>Hello guys,
Your plugin is great. Shows the first letter of the avatar name correctly. I just realized that when the user places your site, the plugin inserts the first image of the site name as the avatar image.
See an example in this article https://proddigital.com.br/saude/saude2/menopausa/ where two comments were placed, one by name “Daniela Dib” and the other by “Amanda Toledo”, and the site menopausasemsegredo.com for both comments and in both, is showing the avatar image with the letter M which is the beginning of the website menopausasemsegredo.com
]]>wp-first-letter-avatar will be compatible with the upcoming version of wordpress 4.8 ?
]]>Hello,
I would absolutely LOVE to use this plugin but I’m not sure that it’s compatible with Ultimate Member. Though the plugin is installed and activated, it doesn’t replace User Profile Images with the letter avatars despite them not having a profile photo uploaded. Is it compatible with Ultimate Member?
I did test out the one you have for BuddyPress and that worked, but not this one.
Please let me know.
Thanks!
– Juanita
]]>Outstanding developers,
I have an issue with the plugin overriding the avatar in my theme.
My theme has the avatar built in, so it is not connected to gravatar.com.
What changes would I make to keep the built-in avatar for users on my site but use this plugin for commenters only?
I tried to locate a solution in the support forum. The nearest thread I could find was https://www.ads-software.com/support/topic/plugin-overrules-all-avatars/. But it still does not completely address my issue.
I have set the Plugin filter priority down to 7, but the plugin still overrides.
Please let me know if it is possible to use this wonderful plugin with a theme that has built-in avatar.
Thanks for developing an outstanding plugin.
Rick
But I am extremely satisfied with this plugin.
]]>Is there an easy way to stop this plugin’s css file from loading in the header? All it contains is:
.wpfla.round-avatars{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;}
I would prefer to just add this to my site’s current style sheet if possible?
]]>In v2.2.8 you mentioned the opensans and roboto avatar sets.
This sounds as if avatars can have different fonts. If so how do you change the font?
Can you please clarify?
Thank you,
Bharat
]]>Why does not support other language? (Bangla)
]]>Hello guys,
Your plugin is interesting. It’s cool to be able to use the first letter of the user’s name as an avatar. But if that user is registered on my site, I noticed that he does not have the option to change the image to, for example, a photo of him.
So you could create this option too so we do not have to install another plugin that does this function.
I thank you.
Rodrigo
can you use more bold font for avatar images?
like:
]]>
I do not like the images that use your plugin, I would like to insert a default image for each new registration, the member can change his avatar if he does not like the default avatar
]]>Hello. I did a portuguese translation for your nice plugin. I have the PO/MO files and the strings uploaded in the wordpress translation site. However, for a long time the strings are pending approval…
1-Can I send the MO/PO files for you, so you can include in the next release?
2-Can you ask (please) for someone review and approve the strings I did?
Both options are valid. *smile*
It’s my cent of contribution…
Regards,
Celso.
Hello, according to gtmetrix.com the “C” icon letter image is not well optimized.
Please update it with the optimized one. Thank you.
Hi, for example if i have 50K total user and i install this plugins is that mean this plugin will create 50,000 images? or it has A to Z image that will be used for all user?
thanks in advaced
]]>Hi there,
I like the idea of this plugin,
but is there any way to make it display first letter in Hebrew?
Thanks!
Chen
I think that this is a fix for passing extra arguments that should be used by the plugin. For example, users can use the get_avatar method and include extra CSS classes $args parameter in the filter since the 4.2.0 version.
I wrote a fix for this, by changing the number of passed arguments based on the WordPress version, in the wp-first-letter-avatar.php file, I made the following edits:
Lines 104-105, __construct
, now should be:
// add filter to get_avatar:
global $wp_version;
if (version_compare($wp_version, '4.2.0', '<')) {
// The $args started only started to be passed in WordPress 4.2.0
add_filter('get_avatar', array($this, 'set_comment_avatar'), $this->filter_priority, 5);
}
else {
add_filter('get_avatar', array($this, 'set_comment_avatar'), $this->filter_priority, 6);
}
The admin_bar_menu_action
method now looks like:
public function admin_bar_menu_action(){ // change avatar in the userbar at the top
global $wp_version;
if (version_compare($wp_version, '4.2.0', '<')) {
// The $args started only started to be passed in WordPress 4.2.0
add_filter('get_avatar', array($this, 'set_userbar_avatar'), $this->filter_priority, 5);
}
else {
add_filter('get_avatar', array($this, 'set_userbar_avatar'), $this->filter_priority, 6);
}
}
Also, set_userbar_avatar
:
public function set_comment_avatar($avatar, $id_or_email, $size = '96', $default = '', $alt = '', $args = array()){
.
.
.
$avatar_output = $this->set_avatar($name, $email, $size, $alt, $args);
return $avatar_output;
}
The set_avatar
method now should be updated as well:
private function set_avatar($name, $email, $size, $alt = '', $args = array()){
.
.
.
$avatar_img_output = $this->generate_avatar_img_tag($avatar_uri, $size, $alt, $args); // get final <img /> tag for the avatar/gravatar
return $avatar_img_output;
}
And the generate_avatar_img_tag
now should use the extra CSS class, if available
private function generate_avatar_img_tag($avatar_uri, $size, $alt = '', $args = array()){
// Default classes
$css_classes = 'avatar avatar-' . $size . ' photo';
// Append plugin class
$css_classes .= ' wpfla';
// prepare extra classes for <img> tag depending on plugin settings:
if ($this->round_avatars == true){
$css_classes .= ' round-avatars';
}
// Append extra classes
if (array_key_exists('class', $args)) {
if (is_array($args['class'])) {
$css_classes .= ' ' . implode(' ', $args['class']);
}
else {
$css_classes .= ' ' . $args['class'];
}
}
$output_data = "<img alt='{$alt}' src='{$avatar_uri}' class='{$css_classes}' width='{$size}' height='{$size}' />";
// return the complete <img> tag:
return $output_data;
}
Is it possible to include this update on the next version of the plugin?
Thanks
]]>Hello
first thanks for this great plugin.
I would like to know is it possible to setup this plugin to work only for users who didn’t setup his avatar.
Users with avatars should keep their avatars.
Currently all users have as avatar first letter from your plugin.
Regards!
]]>