Gravatar Signup

This plugin inserts a checkbox into the comment form for users who don’t have a Gravatar (based on the e-mail they typed in). If they check the box and submit their comment, it will initiate the first step of signing up for Gravatar, on their behalf. They’ll receive an e-mail directly from Gravatar and will have to follow the instructions there to complete the process.

Download

Latest version: Download Gravatar Signup v2.0.1 [zip]

This plugin has been downloaded 9425 times.

Installation

  1. Upload the gravatar-signup folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Verify that your comment form has the comment_form hook installed by inspecting comments.php in your theme’s directory

FAQ

Q. What if my site requires registration for comments?
A. It should still work, pulling the e-mail address from that user’s profile.

Changelog

2.0.1

  • Oops! Forgot to commit the jquery md5 plugin with 2.0

2.0

  • Support the new Gravatar signup form
  • Check via JS whether the currently typed email has a Gravatar
  • Massive code rewrite

Donate

I’ve spent a lot of time writing this code and supporting it. If you derive some benefit from this code, please consider showing your gratitute in a more tangible
way. Thanks!

I have received $0 this month for my coding efforts.

Donate with PayPalAmazon.com Wishlist


239 Responses to “Gravatar Signup”

  1. متقدمة تقوم بإستبدال نظام التعليقات كلية لتجعله أشبه بنظام المشاركات في المدونات، وتستطيعون مشاهدة مثال عليها في موقع مطور الإضافة.Gravatar Signup: وهي لا تقوم بإظهار الصور الرمزية ولكنها، تقوم بإظهار خيار التسجيل في الخدمة لزوار مدونتك.

  2. dex digi says:

    Since Automattic acquired this thing, the plugin doesn’t seem to work anymore. I looked at the code a bit, and the URIs the plugin refers to actually no longer exist. Any chance of an update to this plugin? Pretty excited to actually get this working! Thanks in advance.

  3. Cerca klingeltöne selber machen Bezeichnung lustig fünfte klingeltöne zum download broadway überprüfen pasadena gekommen real klingeltöne spülen vegas Tabelle!

  4. quirksmode (subscribed) says:

    This looks ace, but it doesnt seem to send an email? A few people have tried on my site with no luck. Any ideas?

  5. Steve (subscribed) says:

    Really hoping for an update to this plugin so it will work.

  6. Breadcrumb NavXT – Adminstration Interface cforms II Dagon Design Sitemap Generator Exec-PHP Easy Gravatars Enhanced Plugins Used Plugin Fold Page List Google Analytics for WordPressGravatar SignupGoogle XML Sitemaps My Page Order Sociable Subscribe To Comments Simple Tags Search Everything the_excerpt Reloaded WordPress Database Backup wp-cache WordPress.com Stats

  7. Simon Jones says:

    I’m curious as to why you don’t appear to use your own plugin?

  8. Simon Jones says:

    Sadly it seems that this plugin doesn’t work. I’ve tried a few times with different emails but I don’t get the mail from gravatar.com and it seems that gravatar.com doesn’t know who I am when i try to login with mail and passwords set using this plugin. Shame, but a great idea.

  9. Martin says:

    I this plugin going to be updated to work with gravatar.com?

  10. [...] Gravatar Signup WordPress Plugin Gravatar Signup is a WordPress plugin that puts a checkbox in your comments form that says “Sign me up for a free Gravatar!” [...]

  11. surfalot (subscribed) says:

    Here’s the fixes needed… hopefully the blog won’t screw anything up. Maybe the author will update the package with this cheat sheet ;)

    lines 63-64-65, change to this (removing the password field, not needed):

    <p>Provide a valid e-mail address and submit your comment.
    You will get an e-mail allowing you to access your free Gravatar
    account and upload an image that will appear next to your comments!<br /><br /></p>

    line 90: gravatar_signup($user_email, $_POST['gravatar_password']);
    change to: gravatar_signup($user_email);

    line 92: gravatar_signup($_POST['email'], $_POST['gravatar_password']);
    change to: gravatar_signup($_POST['email']);

    remove line 110: $email = md5($email);

    lines 129-133 remove:
    //new method
    $rest_uri = ‘http://gravatar.com/info/md5/’ . $email;
    $the_file = @file_get_contents($rest_uri);

    if ( strpos($the_file, ‘<code>200</code>’) !== FALSE ) {
    Replace with:
    //send test to gravatar with blank image.
    $blank_img = site_url(‘wp-includes/images/blank.gif’);
    $rest_uri = ‘http://www.gravatar.com/avatar/’ . md5(strtolower($email)) . ‘?d=’ . urlencode( $blank_img );

    //collect gravatar image and blank image
    $the_file = @file_get_contents($rest_uri);
    $comp_file = @file_get_contents($blank_img);

    //compare test blank with image returned from gravatar.
    if ( $the_file != $comp_file ) {

    line 147: function gravatar_signup($email, $password) {
    change to: function gravatar_signup($email) {

    line 152: $signup = ‘http://gravatar.com/signup.php’;
    change to: $signup = ‘http://en.gravatar.com/site/signup/’;

    line 153: $submit = ‘http://gravatar.com/email_new_account.php’;
    change to: $submit = ‘http://en.gravatar.com/accounts/signup’;

    remove lines 160-161:
    $form_vars['password1'] = $password;
    $form_vars['password2'] = $password;

    line 171:if ( $_POST['gravatar_password'] )
    change to: if ( $_POST['get_gravatar'] == ‘get_gravatar’ )

  12. drew3000 (subscribed) says:

    Too bad it doesn’t sign you up. A good idea since the idea of using a universal avatar itself isn’t that well known, really. I’m surprised Auttomatic hasn’t come up with a Wordpress tool to incorporate gravatar sign-up in the user sign-up area, really. A huge oversight.

  13. drew3000 (subscribed) says:

    Surfalot,

    This may be almost there but I keep getting an error message on activation:

    Parse error: syntax error, unexpected ‘:’ in /var/www/vhosts/newteachers.info/httpdocs/wp-content/plugins/gravatar-signup/gravatar-signup.php on line 131

    The string I have on line 131 is:

    $rest_uri = ‘http://en.gravatar.com/avatar/’ . md5(strtolower($email)) . ‘?d=’ . urlencode( $blank_img );

    Tried messing with different variables but am mystified. Am trying to implement it in the latest version of 2.6.

    Too bad, though. it’s a good idea for a plugin. The problem with gravatars is that they’re basically used by people who already know they exist. Until there is some way to promote them in user registration and comment sections on different sites, they’re going to basically be a toy used by blog geeks and not absorbed by the general public.

  14. Scot (subscribed) says:

    Folks

    Has anyone managed to get this working? Great idea…

    Thx

  15. Sam Marsh (subscribed) says:

    How annoying.

    Gravatars desperately need this plugin.

  16. leftkey says:

    我看看那······················

  17. [...] des Gravatar Signup Plugins von Mark Jaquith kann ein Kommentator sich direkt im Blog bei gravatar.com anmelden und [...]

  18. Tevya (subscribed) says:

    I tried installing it with WP 2.7. It doesn’t seem to work. Is there any chance there will be an update bringing it into compatibility with WP 2.7.

  19. Sean Russell says:

    6mo1cm55d4v7gz77

    我看看那

  20. Jade says:

    This is especially important where the plug-ins advance a “platform” technology, such as Gravatar, Del.icio.us, etc.

  21. thomas says:

    Cool, will install this later today!

  22. Otto says:

    Cool. Glad my new javascript approach to gravatar detection is taking off.

    Two minor things of note:

    1. To remain consistent with the way WordPress names scripts, and my own Gravatar Box plugin, the script name you’re enqueuing for the jQuery md5 plugin should be “jquery-md5″, not “jquery.md5″. Using different naming styles leads to plugins which conflict with one another.

    2. Since you’re not actually displaying the detected avatar on the form, you don’t actually need the “s=size” parameter in your javascript code.

  23. This plugin is a good idea.

    I only wish that the one line with the checkbox could be editable, and say something more about what gravatars are and why you should want it.

    It currently reads like we’re trying to sell gravatars, rather than offering a helpful feature to bloggers/commenters.

    Can you arrange for something like editable HTML (for example)? or a selection of messages? Maybe a link to wikipedia about what gravatars are…

  24. iffi says:

    thanks, really like this plugin.

  25. Matthew says:

    I upgraded the plugin today, and the checkbox is now missing. Any ideas?

  26. Matthew says:

    I get this error when I manually add the code to my comments.php file:

    Warning: Missing argument 1 for show_gravatar_signup(), called in /home/content/v/i/d/videotards/html/wp-content/themes/atahualpa/comments.php on line 161 and defined in /home/content/v/i/d/videotards/html/wp-content/plugins/gravatar-signup/gravatar-signup.php on line 11

  27. Richard says:

    Same here:
    Warning: Missing argument 1 for show_gravatar_signup(), called in /home/content/v/i/d/videotards/html/wp-content/themes/atahualpa/comments.php on line 161 and defined in /home/content/v/i/d/videotards/html/wp-content/plugins/gravatar-signup/gravatar-signup.php on line 11

  28. burçlar says:

    hmmm nice post !!! thanks

  29. Wo Google mich den ganzen Tag hinbringt :) Gute Homepage, ich werde wieder kommen.

  30. LAG says:

    Thank you for the excellent plugin.

Leave a Reply

Note: If you are replying to another commenter, click the "Reply to {NAME} →" button under their comment to help the conversation have a better flow!

Anti-Spam Quiz: