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-signupfolder to your site’s/wp-content/plugins/folder. - New in version 1.4: make
/gravatar-signup/gravatar-cache.txtwritable - 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.


zxzxz
متقدمة تقوم بإستبدال نظام التعليقات كلية لتجعله أشبه بنظام المشاركات ÙÙŠ المدونات، وتستطيعون مشاهدة مثال عليها ÙÙŠ موقع مطور Ø§Ù„Ø¥Ø¶Ø§ÙØ©.Gravatar Signup: وهي لا تقوم بإظهار الصور الرمزية ولكنها، تقوم بإظهار خيار التسجيل ÙÙŠ الخدمة لزوار مدونتك.
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.
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!
This looks ace, but it doesnt seem to send an email? A few people have tried on my site with no luck. Any ideas?
Really hoping for an update to this plugin so it will work.
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
I’m curious as to why you don’t appear to use your own plugin?
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.
I this plugin going to be updated to work with gravatar.com?
WOO
[...] 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!” [...]
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’ )
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.
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.
Folks
Has anyone managed to get this working? Great idea…
Thx
How annoying.
Gravatars desperately need this plugin.
[...] Gravatar Signup (in comments.php) [...]
我看看那······················
[...] des Gravatar Signup Plugins von Mark Jaquith kann ein Kommentator sich direkt im Blog bei gravatar.com anmelden und [...]
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.
6mo1cm55d4v7gz77
我看看那
testing
Testing…
Hmmmm another one…
[...] [...]