mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
[libravatar] Add addon config
- Update mentions of .htconfig.php
This commit is contained in:
parent
858d09e865
commit
8220a78a71
3 changed files with 35 additions and 16 deletions
|
@ -9,8 +9,6 @@ This addon allows you to look up an avatar image for new users and contacts at [
|
|||
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](http://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.)
|
||||
|
||||
PHP >= 5.3 is required for this addon!
|
||||
|
||||
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.
|
||||
|
||||
* * *
|
||||
|
@ -28,12 +26,14 @@ If no avatar was found for an email Libravatar can create some pseudo-random gen
|
|||
See examples at [Libravatar][1].
|
||||
|
||||
## Alternative Configuration
|
||||
Open the .htconfig.php file and add "libravatar" to the list of activated addons:
|
||||
Open the config/local.ini.php file and add "libravatar" to the list of activated addons:
|
||||
|
||||
$a->config['system']['addon'] = "..., libravatar";
|
||||
[system]
|
||||
addon = ...,libravatar
|
||||
|
||||
You can add one configuration variable for the addon:
|
||||
You can add one configuration variables for the addon:
|
||||
|
||||
$a->config['libravatar']['default_avatar'] = "identicon";
|
||||
[libravatar]
|
||||
default_avatar = identicon
|
||||
|
||||
[1]: http://wiki.libravatar.org/api/ "See API documentation at Libravatar for more information"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue