Display Gravatar Code Documentation

unrealnighthawk - July 7, 2009 - 14:15
Project:Gravatar integration
Version:6.x-1.7
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

It'd be really handy if there was a section in the readme that mentions what code we should use in order to display a gravatar in a block or custom module.

#1

unrealnighthawk - July 7, 2009 - 14:35

I say that because it'd save me the last hour of trying to figure out how to call it... and I'm still not having any luck. Any tips? I basically just want to display the user's avatar, be it gravatar or one they uploaded in a block.

Thanks in advance!

#2

unrealnighthawk - July 21, 2009 - 01:52

I'm still trying to figure this out.

How do I display the user's gravitar image? I just need to put it in a block with other code.

#3

Dave Reid - July 21, 2009 - 03:00
Status:active» fixed

Sorry I hadn't responded sooner. WIth 6.x-1.7, here's how you get a Gravatar:

<?php
_gravatar_get_gravatar
(array('mail' => 'example@example.com'));
?>

The current code that will be 6.x-1.8:

<?php
gravatar_get_gravatar
('example@example.com');
?>

#4

unrealnighthawk - July 21, 2009 - 03:03

Thank you thank you thank you!

#5

System Message - August 4, 2009 - 03:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.