Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

hypeJunction/Elgg-avatars

Repository files navigation

Entity Avatars for Elgg

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');