View Single Post
Old 06-16-2008, 10:18 PM   #17 (permalink)
ryanmr
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

PHP Code:
  require_once("PHPGravatar4.class.php");
  
  
$Gravatar = new PHPGravatar();
  
  
$Gravatar->disableCache();
  
  
$Gravatar->setEmail("oh.nobody@gmail.com");
  
  
$Gravatar->setSize(100);
  
$Gravatar->setDefault("http://img0.gmodules.com/ig/images/sprite_arrow_enlarge_max_min_shrink_x_blue.gif");
  
$Gravatar->setRating("pg");

  echo( 
$Gravatar->get() ); 
That is the code I tested with, and it appears to return the proper gravatar url.
ryanmr is offline  
Reply With Quote
The Following User Says Thank You to ryanmr For This Useful Post:
ciprianmp (06-17-2008)