Gravatar 在用户系统中的实现
我一直在考虑为所有用户的个人资料图片实现 Gravatar,但我对一两件事有点困惑。
想象一下,就像这个网站一样,我有一个未注册 gravatar 的当前用户。为了给他们一个头像,我是否必须告诉他们单独注册头像,或者是否有一个 API 函数可以在它们尚不存在时注册它们?
另外,我只看到从头像获取信息,但我不经常看到将信息添加到他们的服务中,比如新的头像。是否有将数据传送到服务器的功能?
I have been looking arund at implementing Gravatar for all my users profile pictures but I am a little confused about one or two things.
Imagine, like this site, I have a current user who is not registered with gravatar. In order to give them a gravatar, do I have to tell them to register with gravatar separately or is there a API function that will register them if they do not yet exist?
Also I only ever see getting information from gravatar but I do not very often see putting information to their services, like a new avatar. Is there functions for putting data to their servers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常,您会使用默认图像选项之一(请参阅http ://en.gravatar.com/site/implement/images/)。如果头像不存在,将根据您的设置提供一个头像(直到用户实际选择/创建头像)。我会保留在他们的网站上上传图像,但您可以使用他们的 xml-rpc api< /a>
Normally, you'd use one of the default image options (see http://en.gravatar.com/site/implement/images/). If a gravatar doesn't exist one will be provided based on your settings (until the user actually selects / creates a gravatar). I'd keep the uploading of images on their site, but you could use their xml-rpc api
使用与这些类似的来源放置图像标签
Put an image tag use the source similar to these