[wordpress插件] Add Local Avatar添加本地头像

wordpress 插件 文章 2020-01-30 14:20 760 0 全屏看文

AI助手支持GPT4.0

评分

52

52

描述

Adds local (private) avatars for your users.

为您的用户添加本地(专用)头像。

Maybe your users don't want a global avatar, aren't IT savvy enough to set a Gravatar up, simply want a private avatar for your blog, or any other reason too… Well, from WordPress 2.5 onwards, you can manage local and

也许您的用户不想要全局头像,IT知识不足以设置Gravatar,或者只是想要博客的私有头像,或者其他任何原因……从WordPress 2.5起,您可以管理本地和

global avatars with this plugin.

带有此插件的全球头像。

Plus you can use your Twitter avatar too!

另外,您也可以使用Twitter头像!

From v9.0 Avatars requires PHP version 5.1.3 or greater.

从v9.0版开始,头像需要PHP 5.1.3或更高版本。

The plug-in now delivers the much requested feature of allowing users to upload their own local avatar.

该插件现在提供了非常受用户欢迎的功能,允许用户上传自己的本地化身。

And, the latest new feature allows your users to use their Twitter avatar.

并且,最新的新功能允许您的用户使用其 Twitter 头像。

The order of precedence is;

优先顺序为:

Local, Twitter, then Global.

本地 Twitter ,然后是全局

In other words;

换一种说法;

if you define a Local avatar for a user, that will be used, if there is no Local avatar defined and a Twitter ID is given for a user, the plugin will try to use that avatar.

如果您为用户定义了本地化身,将使用该头像;如果未定义本地化身,并且为用户提供了Twitter ID,则插件将尝试使用该头像。

Lastly, where no Local avatar is defined and no Twitter ID is given (or Twitter doesn't return a match), a unique Global avatar (

最后,在未定义本地头像且未提供Twitter ID(或Twitter未返回匹配项)的地方,一个唯一的全局头像(

Gravatar) will be generated.

Gravatar )将会生成。

The local avatar feature list:

本地头像功能列表:

    • Have global or local avatars for your users.
    • 为您的用户拥有全局或本地化身。

    • Use Twitter avatars for your users.
    • 为您的用户使用Twitter头像。

    • Allow avatars to be included in posts.

    • 允许头像中包含头像。

      This is achieved securely;

      这是安全实现的;

      e-mail addresses are not exposed.

    • 电子邮件地址不公开。

    • Detailed control over the default avatar to use for those users who do not have a global or local avatar.

    • 对默认化身的详细控制,以供那些没有全局或本地化身的用户使用。

      Allows a choice of a custom image, ‘mystery’ blank image, blank, Wavatar, Monster ID, or Identicon.

    • 允许选择自定义图片,“神秘”空白图片,空白图片,Wavatar,Monster ID或Identicon。

    • Wraps avatars in code to support SnapShots (www.snap.com), should your site use these.
    • 如果您的站点使用头像,则将其替换为支持SnapShots(www.snap.com)的代码。

    • Permits users to upload their own local avatars.
    • 允许用户上传自己的本地头像。

    You may also be interested in the sister

    您可能对妹妹

    >Comments with Avatars plugin.

    >使用头像头像插件发表评论。

    Plus there is now a new sidebar widget extension to the plug-in that provides a feature allowing users to manage their avatar from the sidebar without having to use WordPress’ profile administration page.

    此外,该插件现在有一个新的侧边栏小部件扩展,该扩展提供了一项功能,使用户可以从侧边栏管理其头像,而不必使用WordPress的个人资料管理页面。

    It provides the same capability as the profile page.

    它提供与配置文件页面相同的功能。

    This new feature provides yet more support for users who may not, for example, be savvy enough to use the WordPress administration interface.

    这项新功能为无法精通使用WordPress管理界面的用户提供了更多支持。

    Get the extension here.

    此处中获取

    >

    >

    Donations are welcome and help

    欢迎并帮助

    捐赠

    keep development going.

    保持发展。

    Thanks

    谢谢

    A lot of hard work has gone in to this plug-in, much of it at the request of people who use it, and I hope it is useful to you too!

    对该插件进行了许多艰苦的工作,其中很多是应使用它的人的要求,我希望它也对您有用!

    Please consider these things…

    请考虑这些事情……

      • Please recognise your use of the plug-in on your blog.

      • 请确认您在博客上使用了该插件。

        Maybe post an article (with a link back to http://www.sterling-adventures.co.uk/blog/) to say how you’ve integrated the plug-in into your site?

        也许发布一篇文章(带有指向http://www.sterling-adventures.co.uk/blog/的链接)来说明您如何将插件集成到您的网站中?

        Or simply make sure the Author Credit option is enabled on the options page.

      • 或者只需确保在选项页面上启用了作者信用选项。

      • Remember that a lot of the features of the plug-in are a direct result of people asking for them.

      • 请记住,该插件的许多功能是人们要求它们的直接结果。

        So, please get in contact and let me know what you think.

      • 因此,请联系并让我知道您的想法。

      • If you do find value in using the plug-in, please consider a donation at http://www.sterling-adventures.co.uk/blog/2008/03/01/avatars-plugin/ Size isn't

      • 如果您确实发现使用该插件的价值,请考虑通过以下网址进行捐赠:http://www.sterling-adventures.co.uk/blog/2008/03/01/avatars-plugin/大小不正确

        important, it's the thought that counts!

      • 重要的是重要的思想!

      Enjoy!

      享受!

      Internationalisation

      国际化

      Avatars provides support for language translations.

      头像为语言翻译提供支持。

      Ensure WPLANG is set in your wp-config file.

      确保在 wp-config 文件中设置了WPLANG。

      To help with the available translations create a .po translation and compile a .mo file.

      为了帮助提供可用的翻译,请创建.po翻译并编译.mo文件。

      If you would like this to be included in the general distribution please send these files back via the

      如果您希望将其包含在常规发行版中,请通过

      feedback link.

      反馈链接。

      I can’t accept any credit for these languages files, nor can I guarantee they are correct.

      对于这些语言文件,我不予任何感谢,也不能保证它们是正确的。

      Available translations, from the English default, are:

      根据英语的默认翻译为:

        • Persian (WPLANG = fa_IR).

        • 波斯语(WPLANG = fa_IR)。

          Thanks to Mustafa Sufi.

        • 感谢Mustafa Sufi。

        • Russian (WPLANG = ru_RU).

        • 俄语(WPLANG = ru_RU)。

          Thanks to Levati.

        • 感谢Levati。

        • French (WPLANG = fr_FR).

        • 法语(WPLANG = fr_FR)。

          Thanks to Adrien Schvalberg.

        • 感谢Adrien Schvalberg。

        • Spanish (WPLANG = es_ES).

        • 西班牙语(WPLANG = es_ES)。

          Thanks to Naceira – http://www.naceira.com/

        • 感谢Naceira – http://www.naceira.com/

        • Ukrainian (WPLANG = uk_UK).

        • 乌克兰语(WPLANG = uk_UK)。

          Thanks to Vadim Nekhai, website: http://onix.name/portfolio/

        • 感谢Vadim Nekhai,网站:http://onix.name/portfolio/

        • Portuguese Brazil (WPLANG = pt_BR).

        • 葡萄牙葡萄牙语(WPLANG = pt_BR)。

          Thanks to Steff.

        • 感谢Steff。

        • Japanese (WPLANG = pt_ja).

        • 日语(WPLANG = pt_ja)。

          Thanks to Kazuhiko Maeda.

        • 感谢前田一彦。

        • Czech (WPLANG = cs_CZ).

        • 捷克语(WPLANG = cs_CZ)。

          Thanks to Dominik Chrástecký.

        • 感谢DominikChrástecký。

安装步骤

    • Just put the plug-in into your plug-in directory and activate it.
    • 只需将插件放入您的插件目录并激活它即可。

    • Use the form, Users » Avatars, to define any local avatars for your users.

    • 使用 Users » Avatars 形式为您的用户定义任何本地化身。

      Specify the URI for an avatar image, something like http://your.domain/avatars/image.jpg, where avatars is a directory containing your local images.

      指定头像图片的URI,例如 http://your.domain/avatars/image.jpg ,其中 avatars 是包含本地图片的目录。

      li>

      li>

    • Also, you may set a default size (in pixels) for avatars and define a default image (eg http://your.domain/avatars/default.jpg) to use when no local

    • 此外,您可以为头像设置默认大小(以像素为单位),并定义默认图片(例如 http://your.domain/avatars/default.jpg )以在没有本地图片时使用

      or global avatar is available.

    • 或全球头像可用。

    • Plus, you can also take advantage of the Gravatar.com feature to use Wavatar, Monster ID, Identicon, etc.
    • 此外,您还可以利用Gravatar.com功能来使用Wavatar,Monster ID,Identicon等。

    • Use:

    • 使用: <?php $ avtr = get_avatar(id [,size [,default-image-url]]);

      echo $avtr;

      回声$ avtr;

      ?>

    • ?>

    • More example code to include in your template files is documented on the Users » Avatars page.
    • 要包含在模板文件中的更多示例代码,请参见 Users » Avatars 页面。

下载地址

https://downloads.wordpress.org/plugin/add-local-avatar.zip

https://downloads.wordpress.org/plugin/add-local-avatar.zip

-EOF-

AI助手支持GPT4.0