最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Typecho Gravatar头像不能打开问题解决办法
时间:2014-12-24 编辑:简简单单 来源:一聚教程网
还有个Typecho的站,因为Gravatar头像被墙,也无法显示了,下面是解决的办法,修改原文件,有人说,一升级版本,又变回去了,但是...Typecho本来更新的就慢,这个没什么了~~~可以这么改!
找到/var/Widget/Abstract 下的 Comments.php 文件,将390行的gravatar函数换成下面的:
代码如下 | 复制代码 |
public function gravatar($size = 32, $default = NULL) { if ($this->options->commentsAvatar && 'comment' == $this->type) { $rating = $this->options->commentsAvatarRating; $this->pluginHandle(__CLASS__)->trigger($plugged)->gravatar($size, $rating, $default, $this); if (!$plugged) { //$url = Typecho_Common::gravatarUrl($this->mail, $size, $rating, $default, $this->request->isSecure()); $mailHash = NULL; if (!empty($this->mail)) { $mailHash = md5(strtolower($this->mail)); } $url = 'https://secure.gravatar.com/avatar/'; if (!empty($this->mail)) {$url .= $mailHash;} $url .= '?s=' . $size; $url .= '&r=' . $rating; $url .= '&d=' . $default; echo ''; } } } |
好了,就这样了~
相关文章
- 饭局狼人杀不能加好友怎么办 08-02
- HelloBike押金不能退怎么办 07-24
- CAD图纸为什么不能编辑 不能编辑怎么办 06-19
- 哪些零食不能吃?这8种零食千万别给孩子吃 06-13
- 51模拟器不能打开怎么办 06-12
- 百思不得姐视频不能播放怎么办 06-09