hypejunction/avatars

This package is abandoned and no longer maintained. The author suggests using the hypejunction/hypeicons package instead.

Avatar API

1.1.1 2016-02-24 18:54 UTC

This package is auto-updated.

Last update: 2022-02-01 12:53:44 UTC


README

Elgg 1.11 Elgg 1.12 Elgg 2.0

ABANDONED The plugin had a serious negative impact on performance, so I have abandoned it. Use https://github.com/hypeJunction/hypeLists

Features

  • Generic API and UI for uploading, handling and cropping entity avatars

Avatar UI

Usage

Allow avatars

To allow entities to have avatars, use 'avatars:enabled', "$type:$subtype" hook.

Input Field

echo elgg_view('input/avatar', array(
	'entity' => $entity,
	'name' => 'upload',
));

Action

avatars_create_avatar_from_upload($entity, 'upload');