Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Gravatar Snippet for WordPress
Saturday, October 20th, 2007 at 11:28:21pm UTC 

This post has 1 comment thread shown at the end of this page.

  1. <?php
  2. if ( !empty( $comment->comment_author_email ) ) {
  3.         $md5 = md5( $comment->comment_author_email );
  4.         $default = urlencode( 'http://use.perl.org/images/pix.gif' );
  5.         echo "<img style='float: right; margin-left: 10px;' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&amp;size=60&amp;default=$default' alt='' />";
  6. }
  7. ?>

Paste Details

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus

comments on this paste

Gravatar Snippet for WordPress (#743979)

Posted By: ravishankar

Posted: November 15th, 2007 at 11:58am UTC

thanks for the code. it was so easy

worth-right
worth-right
worth-right