habi.gna.ch

Jump to content

Additional information

Categories

Recent Comments

Meta


this blog is now gravatar enabled

Apr 2005
17

to make post­ing com­ments a lit­tle bit more reward­ing i imple­mented gra­vatars on this blog.

two days ago i com­mented on an entry over at urs’ blog and some fancy image turned up next to my com­ment. i’ve seen that already turn­ing up on dif­fer­ent blogs (e.g. moblg.uk and blog.ch).

the code with which i imple­mented it is shown below for your abuse and modification.

<MTComments>

<div class=“comments-body”>

<$MTCom­ment­Body$>

<span class=“comments-post”>

<a href=”<$MTCommentURL$>”>

<img src=”<$MTGravatar default=“http://habi.gna.ch/blank.jpg” size=“40”$>” alt=“gravatar” align=“left” />

</a>

posted by: <$MTCom­men­tAu­thor­Link spam_protect=“1”$><br />

on <$MTCommentDate$><br clear=“all”>

</span>

</div>

</MTComments>

i made it so that every per­son gets a gra­vatar, even it there’s none reg­is­tered (for exam­ple, see peters com­ment here). if your gra­vatar is miss­ing the pic­tures gets replaced by blank.jpg. the gra­vatar is linked with the url or the (spam­safe) email link of the per­son that left a com­ment.

so, ladies and gents, if you want your pic­ture to show up in the com­ments, then step over to gra­vatar and reg­is­ter yours.

thanks, good­bye.


6 Comments

  1. # christian on April 17th, 2005

    Which makes me think: One could decen­tral­ize this func­tion­al­ity, so we don’t depend on Gravatar’s ser­vices. Every­one places his gra­vatar saved as ‘gravatar.jpg’ in the root of the URL he leaves with his com­ment. (Sim­i­lar to the Favorites-icons for bookmarks.)

    The blog-software would only have to link to the image if it exists. Or cache it on his webserver.

  2. # Guido on April 17th, 2005

    This idea is not bad, really. It makes Gra­vatar no longer nec­es­sary. But the prob­lem is that peo­ple who don’t have a home­page, or have a home­page some­where else in a sub­di­rec­tory can’t have an avatar of their own…

    Other than that, I think I’ll have to Gravatar-enably my Blog soon, too :-P

  3. # nchenga on April 17th, 2005

    to gra­vatar or not to gra­vatar that is the question…

    how do i set this up in wordpress?

  4. # Matthias on April 17th, 2005

    nchenga, here’s a handy doc­u­men­ta­tion: http://gravatar.com/implement.php#section_2_2

    Even I man­aged to do it, so it can’t be very difficult :-).

  5. # habi on April 18th, 2005

    i’ve also read that the gra­vatas can be used to pre­vent com­m­ment spam, e.g. can be used to help build a trusted com­mu­nity. i’ll have to look into this, for now it’s just nice…

  6. # brandon on July 27th, 2005

    Pretty Sweet Stuff


Your Comment

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




Tags

Archives

Credits

Template designed by praegnanz.de.