Various sizes
-
Hello,
Can you add support for various sizes? Currently it always loads the same, and when more sizes are used on other pages, it is small and pixelated…
Thanks.
The page I need help with: [log in to see the link]
-
Do you know why it might be changed in comments? It is forced to 48 px (even in the original function) and at the end it is set to 75 px.
Thanks.
I think I already know where the problem is. In line 1143 of “harrys-gravatar-cache.php” it is forced to the size obtained from the image itself, it does not take the one of the “get_avatar” function parameter. You can fix it?
Thank you!
If in line 1140 I put “$size = $size_config;” ($size_config is parameter of the function) it works. That’s why. It should not take the size of the image, but the parameter…
Yes 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.
I just defined it at the beginning to take it with me.
$size_config = $size;
Can you post the code with line numbers here?
The first in 809.
$size_config = $size;
And the next in 1140.
$size = $size_config;
It is simply to force it to take the size of the function parameter.
Ok, 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 loadingThe “content-single.php” thing I have not removed, so it automatically takes size… Although it can also be defined manually in the plugin config.
I added
$size_config = $size; and $size = $size_config;
to check… maybe it can be done differently in the function, since I suppose it should always take the parameter of the function …Thanks. Paint that update well. Pending.
After the update, it fails in the author part: https://www.etapainfantil.com/habitos-hijo-adquirir-antes-adolescente (Although you may have to deactivate the plugin and you cannot see it here)
https://www.etapainfantil.com/wp-content/uploads/gravatar-cache/3826e0d4be68fbd7c0380cef98560ba2-75.jpgI have checked the config of the plugin and it seems to be fine.
I also check that sometimes doing “Precache & check” takes a long time and WP gives critical error.
What error is shown there?
Your theme seems to be a little bit “special”:)Yes, it may be that my theme is special. ?? But the truth is that we are using “get_avatar” and it does not load the Gravatar in that place.
And the other WP error is a timeout, the “Precache & check” must take a long time…
Ok, i will be back tonight after the work.
Are you able to send me your installed theme as a zip-file? So i can test it.
[redacted by moderator]- This reply was modified 3 years, 7 months ago by Steven Stern (sterndata).
@harry-milatz I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.
https://www.ads-software.com/support/guidelines/#the-bad-stuff
Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.
If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.
Please be aware that repeatedly asking for credentials will result in us escalating this to the plugins team.
It’s never necessary to do that. Here’s why.
There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.
Ask for a link to the https://pastebin.com/ log of the user’s web server error log.
Ask the user to create and post a link to their
phpinfo();
output.Ask the user to install the Health Check plugin and get the data that way.
Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again.
Ask the user for the step-by-step on how they can reproduce the problem.
You get the idea.
Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.
- The topic ‘Various sizes’ is closed to new replies.