Loading web-font TeX/Math/Italic
2 Star 8 Fork 6

院主/typecho-fans插件库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github/workflows
AMP
APlayerAtBottom
AbbrSlug
AjaxComments
AllowIp
Announcement
AnotherLike
AntiSpam
AppStore
ArticleList
ArticleTemplate
At
Attachment
AudioPlayer
AutoBackup
AutoLaTeX
AutoSlug
AutoTags
Avatars
BackToTop
CSDN
CatClaw
CateFilter
ChangyanCallback
Ckeditor4Typecho
CodeMirror
CodeStyle
CommentFilter
CommentPush
CommentToMail
ContentIndex
Contribute
CosForTypecho
DbManager
DevTool
DownloadFile
DynamicLines
Editor
EditorMD
EmlogToTypecho
GAuthenticator
GHbutton
GeeTest
GithubCard
GithubWidgetUser
GoLinks
GoodLuck
GoogleAnalytics
GoogleCodePrettify
GravatarCache
GravatarCache.php
README.md
Hermit
HighSlide
HighlightSearchKeywords
Html2Text
IQapTcha
JSON
JWPlayer
JustFeed
Keywords
KirinShiKi
LREditor
Like
Links
LoginDesigner
LoveKKComment
LoveKKWeiBo
MagikeEditor
MenuTree
MenuTree_hongweipeng
MostCache
MyPlayer
MyTagCloud
Ncache
OssForTypecho
Passport
PasteImage
PostRating
PostsCategoryChange
Prism
QNUpload
QiniuFile
RandomThumbnail
Rdog
Reposidget
RewriteRule
RoutesHelper
SCS
ShortLinks
Sinauth
Sitemap
SlantedExtend
SlimBox2
Smilies
Snowstorm
Soso
SplitArchivePage
Stat
Sticky
Subscriber
SyncPost
TEReplace
TeKit
TeStore
ThemeDemo
Tinyfader
Titleshow
TopTop
Typembed
Ueditor
Ukagaka
Update
UpdateAssistant
UploadPlugin
UpyunFile
UserSign
Version
Views
Watermark
WeChatHelper
WeChatShare
WeiboSync
XiaMiPlayer
YoduBGM
YoduPlayer
ZIP_CDN
Zan
alexarank
changyandandian
reCAPTCHA
reCAPTCHAv3
.gitignore
AUTO-UPDATE.php
README.md
TESTORE.md
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
Loading...
README

Gravatar 头像缓存插件 For Typecho

支持curl方式下载Gravatar头像到本地,可指定目录和保存时间。

使用说明

  • 将GravatarCache.php文件直接上传至/usr/plugins/目录(不需要文件夹);
  • 登陆后台,在“控制台”下拉菜单中进入“插件管理”
  • 启用插件即可

升级日志

2.0.2 at 2012-04-07

  • 修复初次激活插件,初次调用 getGravatarCache() 不会自动创建缓存文件夹的BUG
  • getGravatarCache() 增加第五个参数 $default
    • getGravatarCache(mail,isSecure = false, size=32,rating = 'G', $default = 'mm')
    • $mail -> 邮件地址;
    • $isSecure -> 是否使用 https 安全协议,默认 false;
    • $size -> 头像大小,这个只用于当评论头像不存在时重新获取头像时的大小,若头像已存在则无效,默认 32
    • $rating -> 头像等级,这个只用于当评论头像不存在时重新获取头像时的等级,若头像已存在则无效,默认 G
    • $default -> 默认头像 地址,默认值 为 mm(此值对应 gravatar官方比较美观的默认头像)
  • 整理简化代码,提高可读性

1.2.1 at 2012-04-06

  • 修复由于没有声明方法类型 为 静态类型 而导致插件初次使用时 出现错误警告的BUG (download 方法)
  • 删除一些无用的代码行

1.2.0 at 2011-04-14

  • 修复程序逻辑BUG
  • 修复域名后面多出一个斜杠的BUG
  • 优化了代码效率
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/taotecode/typecho_fans_plugin_library.git
git@gitee.com:taotecode/typecho_fans_plugin_library.git
taotecode
typecho_fans_plugin_library
typecho-fans插件库
master

搜索帮助