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 = "[email protected]";
$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
https://forums.phpfreaks.com/topic/138472-gravatar-implementation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.