Project:Gravatar integration
Version:7.x-1.1
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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

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

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

Thank you thank you thank you!

#5

Status:fixed» closed (fixed)

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

#6

Version:6.x-1.7» 7.x-1.1
Status:closed (fixed)» active

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

Could you give the code to do this in drupal 7 with Gravatar 7.x-1.1

Thanks in advance.

#7

Status:active» fixed

Gravatar 7.X:

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

#8

Status:fixed» closed (fixed)

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

nobody click here