Ariel
Forum Replies Created
-
Forum: Plugins
In reply to: [Leira Letter Avatar] WP User Avatar supportHi @joroabv
Can you describe the issue you are having? So I can have an starting point to check it.
Thanks for sharing your idea. In fact is something I think about a while back and I decided not to add such funtionality to this plugin. Just to keep things modular.
Instead I have been working in other plugin that do something similar to wp user avatar.
Unfortunately, is not ready yet ??Forum: Plugins
In reply to: [Leira Letter Avatar] get_user_by_email is deprecatedIncluded since version 1.3.1
Thanks @carsten-lund
Version 1.3.1 is going to fix this issue. You wont need to disable the avatar via plugin settings before deactivate/uninstall.
However, I have no idea how jetpack sends that request to i1.wp.com ??Regards
Leira Letter Avatar plugin does not make use of the url you mention (i1.wp.com).
Actually that url belongs Site Accelerator (Formerly Photon) from Jetpack plugin.
Check out this link https://jetpack.com/support/site-accelerator/If you do a quick google search for “i1.wp.com requests” you will find more information related.
I will take a look to the scenario you describe in your second comment. It could be a bug.
Hi @chloer199
The problem with the images in the emails is related with the format(.svg) of the images. Email clients like Gmail uses a proxy approach to show images. For example: if the email contains an image with the url
https://example.com/wp-content/uploads/leira-letter-avatar/2398472c3492c34xn23494x3.svg
it will be replace with something like
https://ci5.googleusercontent.com/proxy/SneoC6E7oaEbJGisXoaURL7rMHGRX8SxEw9zkRUcmkjFLLz7O5OcBpVqGg8lIJFOso814j9yA3UvlFoaqXDQLdo-H6Jrov84VaUMX0O9X_S6yY0-ooGrOoapMlQ2uK1vMbIBSlwv_bLia1xghXScPr6mfbWMXZBgiHeNzz8=s0-d-e1-ft#https://hauturely.com/wp-content/uploads/leira-letter-avatar/2398472c3492c34xn23494x3.svg
Unfortunately gmail doe snot support svg formats in the proxy.Since version 1.3.0 Leira Letter Avatar suppor .png and .jpg to generate the images. Using any of these formats will solve the problem with email avatars.
Forum: Plugins
In reply to: [Leira Letter Avatar] avatars are not displayedSince version 1.3.0 the problem is fixed.
No need to use snippet above.Forum: Plugins
In reply to: [Leira Letter Avatar] random colorThats great @djoni7811
Please consider giving us a review. It will help us a lot to spread the word and make the plugin more popular.Forum: Plugins
In reply to: [Leira Letter Avatar] random colorThis snippet should do the trick (add it to your functions.php).
Keep in mind that your WP_Comment object most havecomment_author
field set. This is the default wp field for comments author, some plugins use a different field, if so, just make sure you use the correct one.
Let me know if it work for you.function background_from_nickname( $url_args, $id_or_email ) { $user = false; if ( $id_or_email instanceof WP_Comment ) { if ( ! empty( $id_or_email->user_id ) ) { $user = get_user_by( 'id', (int) $id_or_email->user_id ); } if ( ( ! $user || is_wp_error( $user ) ) && ! empty( $id_or_email->comment_author ) ) { $hash = $id_or_email->comment_author . '@localhost.com';//add @localhost.com is optional $hash = md5( strtolower( trim( $hash ) ) ); $url_args['background'] = substr( $hash, 0, 6 ); } } return $url_args; } add_filter( 'leira_letter_avatar_url_args', 'background_from_nickname', 10, 2 );
Forum: Plugins
In reply to: [Leira Letter Avatar] random colorHi @djoni7811
If you select the option “Automatically determine background color for each user (Recommended)” the background of the image is determined from the user email. If the users have the same email, the background will be the same. There is also a remote possibility that different emails could have the same background color.
If you can post here the emails, (or at least the generated images in .svg format) so i can check them that would be great.
In case of the images without the letters,
Are you using other plugins? which one?
You “lose” the letters while showing comments? When you create the comment you fill the name and email of the commenter?kind regards
Forum: Plugins
In reply to: [Leira Letter Avatar] avatars are not displayedHi @djoni7811
I think the problem is related to a wordpress core function.
Can you add this code to your functions.php to check if it fix the problem?
If so please let me know so i can add the fix in the next plugin release, ot otherwise check for other soluctionfunction get_avatar_url_test($url, $id_or_email, $args){ return set_url_scheme($url); } add_filter('get_avatar_url', 'get_avatar_url_test', 99999, 3);
Sure!
Hi @chloer199
How are you adding the user avatars to the email?
Are you using an other plugin for that?
Can you post an example of this photo with a line through?Kind regards
Forum: Plugins
In reply to: [Leira Letter Avatar] Incompatibility with the plugin Chat by FlyzooI released a new version that fix the problem you mention.
Looks like Chat by Flyzoo – Group Chat & Live Support makes an incorrect use ofum_user_avatar_url_filter
filter.Please consider giving us a review. It will help us a lot to spread the word and make the plugin more popular.
Kind regards
Which version of Ultimate Member you have installed?
Do you have any other extension or plugins installed that might add functionality to Ultimate Members?
I tested with WP 5.6, Ultimate Members latest version and latest Leira Letter Avatar and all looks good.
Please if possible, create a new thread in the support forum so I can handle properly the issue.Kind regards
Forum: Reviews
In reply to: [Roles & Capabilities] A hidden gemHi @rehhoff
Thank you for the great review! I am happy you loved the plugin. Cheers!