Gravatar Signup

Please note that this plugin will not make Gravatars show up in your comments! There are plenty of other plugins to do that.

Gravatars are showing up on blogs everywhere. Want a way to make it really easy for your site’s readers to sign up for their very own Gravatar? This is the plugin for you.

Gravatar Signup

Gravatar Signup is a WordPress plugin that puts a checkbox in your comments form that says “Sign me up for a free Gravatar!” If the user checks that box, some additional text and a password field will appear right below the checkbox. If the comment form is submitted with the Gravatar box checked, with a valid e-mail address provided, and with a password in the Gravatar password field, the plugin will sign the commenter up for a Gravatar as their comment is posted. They’ll get an e-mail from Gravatar just as if they had used the signup form at the Gravatar site.

This, I hope, will help take away one of the barriers to entry for Gravatars. If people have to go to another site and fill out a form, they might not want to do it. But since they are already leaving a comment, all it takes is a “check” and a password to sign up using this plugin.

Download

Installation Instructions

  • Download and open the zip file.
  • Copy the gravatar-signup folder to your site’s /wp-content/plugins/ folder.
  • New in version 1.4: make /gravatar-signup/gravatar-cache.txt writable
  • Activate the plugin in WordPress.
  • If you are using WordPress 1.5 with one of the default plugins, you’re done! The form elements will be put in your comments form. If you are using a 3rd party template, it might not show up. If that is the case, or if you would like to change where it shows up in your form, you’ll need the next step.
  • Paste the following code somewhere in your comments form:
    <?php show_gravatar_signup(); ?>

Versions

  • Version 1.6.3, Adapts to change at Gravatar site that broke the plugin, uses WP Snoopy
  • Version 1.6.2, Plugin page pointed to here
  • Version 1.6.1, Fixed XHTML invalid code
  • Version 1.6, small updates for better WP 1.5.1.2 compatability
  • Version 1.5, mandatory upgrade. Gravatar changed some things on their servers, so the only way you’d see the checkbox is if you didn’t have a comment cookie… Also, new code for dealing with registered WP users and compatibility with recent WP 1.5.1 builds
  • Version 1.4.1, minor fix: checkbox was accidentally given tabindex of “2″
  • Version 1.4, caching of known Gravatar hashes, much faster performance thanks to tip from C.S. in comments
  • Version 1.2.1, small bugfix for line 93
  • Version 1.2, previous commenters who already have a Gravatar won’t see the checkbox
  • Version 1.1, bugfix for manually inserted code in comments form
  • Version 1.0, initial release

Update: Please note that this plugin will not make Gravatars show up in your comments! There are already many great plugins for WordPress that do that, and I didn’t want to reinvent the wheel. Google is your friend.

Update: Please upgrade to version 1.5! Thanks to Geof for bringing to my attention that something wasn’t working. Gravatar changed something on their servers, so the method I was using to see if the current commenter already has a Gravatar was failing. Now, it’s using a method that shouldn’t break in the future, since it’s the new method that the people at Gravatar have recommended! Also, fixes for sites with user registration as well as compatibility with the latest WP 1.5.1 builds. You should flush out (empty the contents of) your gravatar-cache.txt file, because it’s likely filled up with hashes of people who don’t have Gravatars, due to the fact that the code was creating false positives.

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


230 Responses to “Gravatar Signup”

Comment pages: « 1 2 [3]

  1. Linktausch |

    wir bieten Ihnen die Möglichkeit einfach und schnell mit anderen Webmastern Links bzw. Traffic zu tauschen.

    Auf diese Art, erreichen Sie mehr Traffic und der Wert Ihrer Seite steigert sich. Also worauf warten Sie noch!

  2. youtube |

    interesting. i’ve often wished for this, although i’ve always wondered if this might encourage spammers to try again. being that it’s javascript, it shouldn’t but it’s interesting.

  3. FlihoolougTut |

    Very useful and informative blog. Recommended for all to see.
    http://medsdrugs.blogspot.com/

  4. anhphuoc |

    Live Comment Preview is getting a massage. A LONG massage.

  5. youtube |

    Thanks for this article…

  6. dex digi |

    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.

  7. handylogos klingeltöne |

    Aqui estan kostenlose handy klingeltöne chips Bandspulen Ecke polyphone klingeltöne Gutschrift schnell Progressist Monster polyphon klingeltöne million Plattform Karten gleichmäßig.

  8. Filmy porno |

    Really good job! Congratz!

  9. klingeltöne für siemens |

    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!

  10. casino sans téléchargement |

    Dar klingelton versagen Paar Spalte leib tourniere kaninchen kännykkä soittoäänet dieFalte starluck quads grundlegend Ring gulash sävellettävät soittoäänet zackig Täuschung Schuh Topf Glossar.

  11. quirksmode |

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

  12. Steve |

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

  13. Simon Jones |

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

  14. Simon Jones |

    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.

Comment pages: « 1 2 [3]

Leave a Reply