Linux 软件免费装

Avatar Preview

开发者 xaquseg
更新时间 2010年3月26日 13:39
PHP版本: 2.8 及以上
WordPress版本: 2.9.2

标签

comments avatar gravatar

下载

1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3

详情介绍:

Shows an avatar preview on the comment form based on the email address entered. Uses the Javascript MD5 library by Paul Johnston.

安装:

  1. Upload the plugin directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <div id="avatarPreviewBox"></div> in your comments template where you want the preview to appear. Make sure your email input field has id="email". You may optionally add class="previewsize-64" to change the size of the preview, where 64 is the size in pixels.

升级注意事项:

1.1.3 Fix broken check that caused the preview to fail to load. 1.1.2 Don't serve the javascript to logged in users. 1.1.1 Fix Javascript errors if the email field or preview box aren't found, embed avatarpreview.js in the footer instead of the header, and update compatable version to 2.9.2 1.1 Correctly support rating settings other than "g" and default avatars other than "identicon", size of avatar in preview is now configurable. 1.0.1 Add additional documentation, and update compatable version to 2.9 1.0 First public release.

常见问题:

What do I need to know to style it to match my theme?

The following IDs are used:

  • avatarPreviewImage for the avatar itself
  • avatarPreviewDesc for the description/status ("Enter your email to see an avatar preview." for example)
  • avatarChangeLink for the link to http://www.gravatar.com/
Example generated HTML: Gravatar for 'example@example.com' Change at Gravatar.com Example CSS: avatarPreviewBox { padding: 0; margin: 0; background: transparent; } avatarPreviewBox #avatarPreviewImage { float: left; padding-right: 3px; } avatarPreviewBox p { margin: 0; padding: 0; }

更新日志:

1.1.3 1.1.2 1.1.1 1.1 1.0.1 1.0