Gravatar Signup Encouragement (download) is a plugin that will encourage users without avatar on Gravatar to make one. It checks e-mail address that unregistered users enter in forms or stored e-mail address of registered users on gravatar.com to see if there is avatar associated to that e-mail address. If there is no avatar, it will display message which will inform user that they don’t have an avatar on Gravatar and give them a link to sign-up page of Gravatar which would be pre-filled with their e-mail address.
Checks on gravatar.com for user’s e-mail address are done via simple and fast AJAX.
Message can be shown to:
- unregistered commenters when they leave text input field for e-mail address
- registered commenters to whom their registered e-mail address is checked
- unregistered commenters after they post a comment in a dialog, to whom their entered e-mail address is checked
- registered commenters after they post a comment in a dialog, to whom their registered e-mail address is checked
- registered users in administration notices, to whom their registered e-mail address is checked
- registered users in admin bar, to whom their registered e-mail address is checked
- registered users on their profile page, to whom their registered e-mail address is checked
- users who fill registration form when they leave text input field for e-mail address
Both AJAX and display of messages are done with use of jQuery library. This plugin will load jQuery file to head of your page if it wasn’t already loaded by theme or other plugin(s). You can speed up your web site and save on bandwidth and server resources with use of plugin Use Google Libraries which will load jQuery file from Google AJAX Libraries. See here how will this help you.
You can select in what of eight (plus one on multisite or in bbPress) cases to show message, plus you can choose for each case where on page to show message. There are several elements already available to choose for all cases and you can alternatively add custom element by providing it’s id. Since this plugin uses jQuery selectors to find element, you can add even more advanced filters for selecting. Also be aware that display of message may not look good with your theme.
Customization of styles of messages is also possible. You can customize messages by defining CSS style of it. Whole message is wrapped with div with ID depending on case:
gse_comments_messagefor comment form
gse_admin_noticefor administration notice
gse_profile_messagefor profile page
gse_registration_messagefor registration page
gse_ms_signup_messagefor signup page on multisite
Text of a message is also customizable, you can write any message you want, even use HTML tags you want. Note that you should leave link with URL placeholder if you want to show link to Gravatar’s signup page pre-filled with user’s e-mail address, and that you should not use double quotes (
") since it will break code. Instead, use curly quotes (“ and ”) for text, and single quotes (') for HTML tags. Also note that same message is shown for all cases, unless you use WordPress filters to change it per case.
There will be no mess in database made by this plugin, since it adds only one field in database which is deleted if you uninstall plugin using WordPress’ built-in feature for deletion of plugins.
This plugin is fully internationalized, you can translate all text and link to locale version of Gravatar’s site. You can find .pot file in translations folder where you should place your translation. Please send me your translation by contacting me so that I can include it in next releases.
Editing of settings is done on page Discussion Settings in administration area of WordPress, in section Avatars. Here is a screenshot of how settings should look with all cases checked.
Here are screenshots of displays of message in all cases with default settings.
And here is video tutorial (don’t forget to turn on captions (subtitles) since this is where you’ll get text):
Gravatar Signup Encouragement is released under the terms of GNU General Public License. It is completely free so if you find it useful you can give something back to author. Your help could be done by giving donation, translating plugin to your language, sending bugs and suggestions, promoting plugin in blogs, forums social networks, and other websites.
Support for this plugin could be get in comment section of this page or (preferably) through WordPress support forum. Note that I don’t guarantee that I’ll respond to your entries nor that I’ll do it in short period of time. Before posting, please read documentation on this page or on plugin’s page in WordPress plugin directory. I’ll may delete questions for which answers are provided.