2017 © Pedro Peláez
 

elgg-plugin avatar_service

Provides a service to get an Elgg avatar in a Gravatar like way

image

coldtrick/avatar_service

Provides a service to get an Elgg avatar in a Gravatar like way

  • Thursday, April 12, 2018
  • by jeabakker
  • Repository
  • 0 Watchers
  • 1 Stars
  • 747 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

Avatar Service

Elgg 3.0 Build Status Scrutinizer Code Quality Latest Stable Version License, (*1)

Provides a service to get an Elgg avatar in a Gravatar like way, (*2)

How to use

Base Request

Avatar images may be requested just like a normal image, using an IMG tag. To get an image specific to a user, you must first calculate their email hash., (*3)

The most basic image request URL looks like this:, (*4)

http://www.yoursite.com/avatar_service/HASH, (*5)

where HASH is replaced with the calculated hash for the specific email address you are requesting. The hash is an md5 of the lowercased version of an emailaddress., (*6)

For example, here is the base URL for the info@domain.com emailaddress:, (*7)

http://www.yoursite.com/avatar_service/dfb0624735f6756ede0693f1c8e94a8c, (*8)

If you require a file-type extension (some places do) then you may also add an (optional) .jpg extension to that URL:, (*9)

http://www.yoursite.com/avatar_service/dfb0624735f6756ede0693f1c8e94a8c.jpg, (*10)

Size

By default, images are presented at 80px by 80px if no size parameter is supplied. You may request a specific image size, which will be dynamically delivered by using the s= or size= parameter and passing a single pixel dimension (since the images are square):, (*11)

http://www.yoursite.com/avatar_service/dfb0624735f6756ede0693f1c8e94a8c?s=200, (*12)

You may request images anywhere from 1px up to 2048px, however note that many users have lower resolution images, so requesting larger sizes may result in pixelation/low-quality images., (*13)

Default Image

What happens when an email address has no matching user or user avatar? You will get the default user icon of the community., (*14)

The Versions

12/04 2018

dev-master

9999999-dev

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

The Development Requires

plugin avatar elgg

30/05 2017

v2.1

2.1.0.0

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin avatar elgg

24/03 2017

v2.0.1

2.0.1.0

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin avatar elgg

26/01 2017

v2.0

2.0.0.0

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin avatar elgg

15/09 2016

v1.0

1.0.0.0

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin avatar elgg

10/03 2016

v0.1

0.1.0.0

Provides a service to get an Elgg avatar in a Gravatar like way

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin avatar elgg