Harry Milatz
Forum Replies Created
-
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesOk, that’s fine.
Is that working without adding theif ( $wp_filesystem->exists(get_stylesheet_directory().'/functions.php') ) {$dateinamen[]=get_stylesheet_directory().'/content-single.php';}
?Maybe you have to add
$size_config = $size;
and$size = $size_config;
after the update. It will be released in the next days.
Here are the changes:
major code improvment and cleanup and minor bugfixes
changed: databasemanagement, install, update, deinstall, database version added as wp_option
added: database or filesystem to check the cached images
changed: support for ie11 is to no, this will be removed next time
added: make png from jpg, png can be smaller than jpg
added: if the url to gravatar doesn’t contain a picture and serves a 403 or 404, the standard avatar will be used
added: precache & check & show cached gravatars
added: support for jetpacks author widget
added: more files to scan from the newspaper theme for the avatar size.
changed: src for retina
changed: alpha blending png and for jpg to png
changed: no caching für blank/no avatar, it serves the static file
improved: all dataoperations
improved: support for the plugin Wapuuvatar
added: WordPress standard lazy loadingForum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesCan you post the code with line numbers here?
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesYes the size there should be the size from the function.
Where did you find “$size_config”?At the moment i am working on a bigger update for the plugin.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesYes
just keep a backup from the file if something is wrong;)
if it will work, i can make an update.Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesYou can just add the two lines at 223 and 234(235 after adding the first line), just copy and paste the lines before and replace the php file with your file.
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesAre you able to check in the sourcecode from harrys-gravatar-cache.php if your files from your theme are in the array for the search routine? It begins at line 223 to 234
These files (if they exist) from the theme in the paths “get_template_directory()” and “get_stylesheet_directory()” are checked for the avatar-sizes:
/functions.php
/lib/functions/template-comments.php
/single.php
/comments.php
/includes/functions/comments.php
/includes/meta.phpAre your “get_avatar( get_the_author_meta( ‘ID’ ), 75 );” and
wp_list_comments( array( 'callback' => 't_comment' , 'avatar_size' => 48 ) );
in one of these files?Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesOk, the plugin looks in various files for “avatar_size” and “get_avatar” in the theme-files.
Can you check in the main file of the plugin at line 223 and following if your files are in the relative path for the check?Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesThe different images comes because the author image and a commentor image has/become different ids. The “at” in the filename is for “author”;)
Ok, 75 should be the right size for both, author and comments, and is correctly served from gravatar.
It seems the 48 from the comments is not recognized from gravatar/jetpack.
Or the function is not used dor normal comments and is only used in an overview or a sidebar like on my site:
https://www.all4hardware4u.de/elektronik-news/Is the theme up to date?
Can you give me the filnames and relativ path from /wp-content/themes/ where
get_avatar( get_the_author_meta( 'ID' ), 75 );
and
wp_list_comments( array( 'callback' => 't_comment' , 'avatar_size' => 48 ) );
are in?So have you try to clear the cache from the plugin?
After clearing open the url without being logged in as an admin (maybe use just another browser) to rebuild the cache.
The cached files should have the dimension 75×75 after clearing und rebuild.Forum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesOk, can you let the plugin deactivate for a while, so i can check something?
Forum: Plugins
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] E_COMPILE_ERRORHi Dario,
this error comes along with another plugin;)
Maybe you remember:
I wanted to make it possible to rate comments. I used in 2015 your plugin as “template” to build this plugin to rate comments on my site.
This plugin uses the constants and call some functions from your plugin, so i have not to write or define them again;)Can you give me here a list which constants or functions has gone away in Version 2.6.6?
In Version 2.6.5 everything was fine;)Best regards,
HarryForum: Plugins
In reply to: [Harrys Gravatar Cache] Various sizesHi,
as i can see here as example
https://www.etapainfantil.com/limita-comportamiento-permite-sentimientos
the plugin recognize the right size 75x75px for your theme. You can see this in the html code where width and height are 75. But the image itself has only 38×38The srcset seems only to be scaled from the 38×38 picture:
https://www.etapainfantil.com/wp-content/uploads/gravatar-cache/338f4345de7989a5816a3128179e2d0dat_2x.pngAt
https://www.etapainfantil.com/author/mariajoseroldan
the picture has only a size 24×24 but the recommended width and height 75The plugin checks the recommended size from the parameter “avatar_size” in different themefiles. You can check if there is 75 in your theme.
Are the pictures served form your webspace or from gravatar or another external ressource when you deactivate the plugin?
Best regards,
HarryForum: Plugins
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] E_COMPILE_ERRORHi Dario,
that doesn’t fix it. I will make a deeper debug and come back here;)
Best regards,
Harryperfect!:)
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Lazyload missingThanks:)
Forum: Plugins
In reply to: [Harrys Gravatar Cache] Lazyload missingHi Omar,
yes i will do so, there a lot of changes in the next version:)
Could you show your code here?
Best regards,
Harry