Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the method to set the Gravatar avatar that cannot be displayed?

Shulou Source: shulou.com Published: 2022-06-01 03:22:24 10月03日 Update

In this issue, the editor will bring you about the method of setting up Gravatar avatars that cannot be displayed. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Gravatar is a "global avatar". Fill in the Email address used to apply for Gravatar avatar in any website or blog that supports Gravatar, and your avatar will appear in the message and comment system.

The core of the author's blog is based on the Z-Blog blog system, and the Gravatar avatar in the blog comments cannot be displayed normally since the end of June this year, replaced by the red "x". In the first few days, I always thought it was my own network problem, but more than half a month passed or could not be displayed normally. I could not help but wonder that Gravatar might have been dropped by the GFW wall.

The Gravatar avatar in the blog does not display properly.

You can't always wait for Gravatar to be unsealed, it's a matter of years and months! Gravatar avatar has been unable to load normally, seriously affecting the opening speed of the blog. Here I briefly share how to restore the Gravatar avatar manually.

Method 1: modify the article comment page code in the theme template, the specific file is TEMPLATE\ b_article_comment.html

We open the b_article_comment.html file, find the "www.gravatar.com" in the code, and change it to "en.gravatar.com", or "0.gravatar.com", "1.gravatar.com", "2.gravatar.com", "3.gravatar.com", "cn.gravatar.com".

Modify b_article_comment.html file code

Then upload the modified b_article_comment.html file to the corresponding directory of the blog, and log in to the blog background for "file reconstruction".

The "File Reconstruction" function in Z-Blog blog

Method 2: modify the hosts file

Open the hosts file in notepad (default location: C:\ Windows\ System32\ drivers\ etc) and add a line at the bottom: 72.233.69.5 www.gravatar.com

72.233.69.5 is the IP address of en.gravatar.com, so we can modify the hosts file slightly, save it and close it, then open the browser, clear the cache, and log in to the blog to display the Gravatar avatar normally. At present, there are four IP addresses for en.gravatar.com, which are generally 72.233.69.5, 72.233.69.4, 72.233.61.123 and 72.233.61.125, all of which can be used.

Add "72.233.69.5 www.gravatar.com" to the hosts file

The above is the editor for you to share the setting Gravatar avatar can not display what is, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Avatars blogs files methods addresses codes comments content articles systems analysis login replace monkey years one line can not help small and medium topics things location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi NVidia Linux Huawei Shulou Information