Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report