Yii 1.1: yii-gravatar

Yii Gravatar Widget
12 followers

Yii Gravatar

Yii Gravatar is simple widget allows you to display a Gravatar images on your web sites

Installation

Extract the yii-gravatar from archive under protected/extensions

To use this widget, you may insert the following code in a view:

<?php $this->widget('ext.yii-gravatar.YiiGravatar', array(
    'email'=>'malyshev.php@gmail.com',
    'size'=>80,
    'defaultImage'=>'http://www.amsn-project.net/images/download-linux.png',
    'secure'=>false,
    'rating'=>'r',
    'emailHashed'=>false,
    'htmlOptions'=>array(
        'alt'=>'Gravatar image',
        'title'=>'Gravatar image',
    )
)); ?>

Resources

Gravatar images API documentation

Project on Git Hub

TODOs and BUGS

Change Log

July 19, 2011

  • Initial release;

Total 3 comments

#4730 report it
Jgsaw at 2011/08/09 09:30am
CGridview

Can this be used in a CGridView and if so how?

#4562 report it
Skinner at 2011/07/20 04:46pm
@samdark
  • More clear code
  • Suport for SSL
  • Prevent using parameters that not supported by Gravatar API
#4561 report it
samdark at 2011/07/20 04:25pm
Duplicate?

Any advantages over this extension?

Leave a comment

Please to leave your comment.

Create extension