friendica-addons/libravatar
Art4 84659fc1ad Replace DI::app() with DI::appHelper() 2024-12-11 21:47:10 +00:00
..
Services Fix errors in libravatar addon 2024-12-12 22:37:42 +01:00
config [various] Remove config/addon.config.php in favor of per-addon configuration file 2022-11-20 11:43:42 -05:00
lang HU and IT translation updates 2023-04-21 21:41:23 +02:00
templates update addons template dir layout 2013-04-23 08:48:19 -04:00
README.md [various] adapt README.md 2023-01-05 02:38:54 +01:00
libravatar.php Replace DI::app() with DI::appHelper() 2024-12-11 21:47:10 +00:00

README.md

Libravatar Addon

by Klaus Weidenbach

This addon allows you to look up an avatar image for new users and contacts at Libravatar. It will be used if there have not been found any other avatar images yet for example through OpenID.

Libravatar is a free and open replacement for Gravatar. It is a service where people can store an avatar image for their email-addresses. These avatar images can get looked up for example in comment functions, profile pages, etc. on other sites. There exists a central installation at www.libravatar.com, but you can also host it on your own server. If no avatar was found Libravatar will look up at Gravatar as a fallback. There is no rating available, as it is on Gravatar, so all avatar lookups are g-rated. (Suitable for all audiences.)

You can not use the Libravatar and Gravatar addon at the same time. You need to choose one. If you need other ratings than g you better stay with Gravatar, otherwise it is safe to use Libravatar, because it will fall back to Gravatar if nothing was found at Libravatar.


Configuration

Default Avatar Image

If no avatar was found for an email Libravatar can create some pseudo-random generated avatars based on an email hash. You can choose between these presets:

  • MM: (mystery-man) a static image
  • Identicon: a generated geometric pattern based on email hash
  • Monsterid: a generated 'monster' with different colors, faces, etc. based on email hash
  • Wavatar: faces with different features and backgrounds based on email hash
  • Retro: 8-bit arcade-styled pixelated faces based on email hash

See examples at Libravatar.

Alternative Configuration

Open the config/node.config.php file and add "libravatar" to the list of activated addons:

'addons' => [
	...
	'libravatar' => [
		admin => true,			
	],
]

You can add one configuration variables for the addon to the config/libravatar.config.php file:

return [
	'libravatar' => [
		'default_avatar' => 'identicon',
	],
];