Jump to content

Gravatar Implementation


zhangy

Recommended Posts

Hi,

 

I am trying to use gravatar on a forum but I dont know where to begin.

If anyone has experience using gravatar I would appreciate any help you can give.

 

gravatar provides the following code:

//Assume the following data:

$email = "someone@somewhere.com";
$default = "http://www.somewhere.com/homestar.jpg";
$size = 40;

//You can construct your gravatar url with the following php code:

$grav_url = "http://www.gravatar.com/avatar.php?
gravatar_id=".md5( strtolower($email) ).
"&default=".urlencode($default).
"&size=".$size; 

 

I dont know what to do with it.

I assume it goes into the form processing script but how for example to get the users email from the form entry into "$email"?

If anyone knows anything about implementing Gravatar implementation please help!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.