Pages: [1]
Print
Author Topic: Use Gravatar in your comments...  (Read 2046 times)
Phillipe Calmet Williams
Jr. Member
**
Posts: 50



View Profile WWW
« on: April 01, 2009, 04:51:48 PM »

Hello there...

I've been using an ASP code to include Gravatars in your comments.

You can find the code here

And if you do not know what a gravatar is, go to www.gravatar.com

Regards.
Logged

Tonkow
Newbie
*
Posts: 29


www.tonkow.se/eng

msn@tonkow.se
View Profile WWW Email
« Reply #1 on: April 10, 2009, 07:44:02 AM »

Hello there...

I've been using an ASP code to include Gravatars in your comments.

You can find the code here

And if you do not know what a gravatar is, go to www.gravatar.com

Regards.
This is completely awesome! :O
But, I don't know how this works!
There should I put the code?
Logged

Love it!
Phillipe Calmet Williams
Jr. Member
**
Posts: 50



View Profile WWW
« Reply #2 on: April 12, 2009, 11:21:43 PM »

You need to download the "md5.asp" file from the author's page, and then, in your "template_permalink.asp" page, you must include the code:

Code:
<!--#include file="md5.asp"-->
<%
'create an instance of our MD5 class
set h = new MD5
'hash the email address we want the gravatar for
hash = h.hash("someemail@somehost.com")
'provide an alternative image if no gravatar is available
noPicUrl = server.urlEncode("http://yourhost.com/no_gravatar.gif")
%>
<img src="http://www.gravatar.com/avatar.php?gravatar_id=<%= hash %>&default=<%= noPicUrl %>" />

And there you have it... it will show the gravatars, and if the user has no gravatar, it will show the default one.

Regards.
Logged

Matt
BP Blog Developer/Musician
Administrator
Newbie
*****
Posts: 36



View Profile WWW Email
« Reply #3 on: April 14, 2009, 09:01:28 PM »

Hello there...

I've been using an ASP code to include Gravatars in your comments.

You can find the code here

And if you do not know what a gravatar is, go to www.gravatar.com

Regards.
This is completely awesome! :O
But, I don't know how this works!
There should I put the code?

Here is the complete download for this plus instructions:

http://blog.betaparticle.com/template_permalink.asp?id=172
Logged

Phillipe Calmet Williams
Jr. Member
**
Posts: 50



View Profile WWW
« Reply #4 on: April 15, 2009, 04:44:31 PM »

It is nice to see that you find it useful...  Tongue

Regards.
Logged

Tonkow
Newbie
*
Posts: 29


www.tonkow.se/eng

msn@tonkow.se
View Profile WWW Email
« Reply #5 on: April 17, 2009, 02:58:03 AM »

I found it funny that he used my comment as an example.
http://blog.betaparticle.com/template_permalink.asp?id=170#comments
Logged

Love it!
Pages: [1]
Print
Jump to: