DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:avatar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:avatar [2012-11-21 00:13] Klap-inplugin:avatar [2019-10-25 10:05] Dr-Yukon
Line 1: Line 1:
-====== Avatar plugin ======+====== Avatar Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Insert a gravatar into a wiki page, also needed by the discussion plugin. (previous authors: Esther Brunner+description: Insert a gravatar into a wiki page, also needed by the discussion plugin. 
-author     : Gina Häußge, Michael Klier +author     : Dokufreaks (previous authors: Michael Hamann, Esther BrunnerGina Häußge, Michael Klier) 
-email      : dokuwiki@chimeric.de+email      : freaks@dokuwiki.org
 type       : syntax, helper type       : syntax, helper
-lastupdate : 2009-08-22 +lastupdate : 2017-08-25 
-compatible : >rc2009-02-06+compatible : Weatherwax, "Adora Belle", Angua, Rincewind, "Greebo"
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : +similar    :
 tags       : media, images, avatar, discussion, embed tags       : media, images, avatar, discussion, embed
  
-downloadurl: http://cloud.github.com/downloads/dokufreaks/plugin-avatar/plugin-avatar.tgz +downloadurl: https://github.com/dokufreaks/plugin-avatar/zipball/master 
-bugtracker : http://github.com/dokufreaks/plugin-avatar/issues +bugtracker : https://github.com/dokufreaks/plugin-avatar/issues 
-sourcerepo : http://github.com/dokufreaks/plugin-avatar+sourcerepo : https://github.com/dokufreaks/plugin-avatar
 donationurl:  donationurl: 
 ---- ----
  
-:!: **Only upgrade the plugin if you're running the latest DokuWiki version!** :!:+Displays avatar images from [[http://www.gravatar.com|Gravatar]] when a valid email address is available (falling back to monsterid if no avatar is available) or [[#local avatars|local avatar images]] when available. When no valid mail address is provided a local monsterid implementation or if no images can be created a fixed fallback image is used.
  
 ===== Syntax ===== ===== Syntax =====
Line 25: Line 25:
   {{gravatar>[user|mail]?[size]|[title]}}   {{gravatar>[user|mail]?[size]|[title]}}
  
-^ [user]  | the registered user for which you want to display an avatar | required | +^ [user]   | the registered user for which you want to display an avatar                                                    | required                                            
-^ [mail]  | the e-mail address for which you want to display an avatar image | required | +^ [mail]   | the e-mail address for which you want to display an avatar image                                               | required FIXME                                      
-^ [size]  | either s(mall) = 20×20 pixel, m(edium) = 40×40 pixel, l(arge) = 80×80 pixel, xl (extra large) = 120×120 pixel | optional; default is medium | +^ [size]   | either s(mall) = 20×20 pixel, m(edium) = 40×40 pixel, l(arge) = 80×80 pixel, xl (extra large) = 120×120 pixel  | optional; default is medium                         
-^ [title]  | the name of the person the mail address belongs to or some other title text | optional; default is the obfuscated e-mail address |+^ [title]  | the name of the person the mail address belongs to or some other title text                                    | optional; default is the obfuscated e-mail address  |
  
 By padding the e-mail address with spaces you can define the alignment like with [[:wiki:syntax#images_and_other_files|images]]. By padding the e-mail address with spaces you can define the alignment like with [[:wiki:syntax#images_and_other_files|images]].
Line 43: Line 43:
 ===== Demo ===== ===== Demo =====
  
-You can [[http://chimeric.de/_demo/plugin:avatar|try the plugin here]] FIXME.+There is currently no demo available.
  
 ===== Changes ===== ===== Changes =====
  
-{{rss>http://github.com/feeds/dokufreaks/commits/plugin-avatar/master date}}+{{rss>https://github.com/dokufreaks/plugin-avatar/commits/master.atom date}}
  
 ===== Discussion ===== ===== Discussion =====
Line 115: Line 115:
  
 ====Using Gravatar's MonsterID...==== ====Using Gravatar's MonsterID...====
 +
 This is great plug-in but I have poor server (p4 2.8 MHz, 768Mb ram) and I am experiencing full CPU usage whenever this plug-in make the monster pictures. How about use GRAVATAR's MonsterID to reduce local server's burden??? --- //[[dryoo@live.com|SC Yoo]] 2010/09/19// This is great plug-in but I have poor server (p4 2.8 MHz, 768Mb ram) and I am experiencing full CPU usage whenever this plug-in make the monster pictures. How about use GRAVATAR's MonsterID to reduce local server's burden??? --- //[[dryoo@live.com|SC Yoo]] 2010/09/19//
  
 +==== Gravatar's alternative image types ====
 +
 +I personally prefer using the identicon vs the monsterid. I have manually made the change on my end, however it would be nice if there was an option to choose which type of image to use. Changing line 102 in the helper.php file to the following would be pretty easy. Then setting up a select box in the admin settings for this would allow users to pick what they want.
 +
 +<code php>
 +$src .= 'avatar/'.$seed.'?s='.$size.'&d='.$photoType.'&r='.$this->getConf('rating').'&.jpg';
 +</code> ---//[[shawndibble@gmail.com|Shawn]] 2014/08/18//
 +
 +
 +My example of using **mystery-man** style instead **monsterid** style:\\
 +[[https://wiki.it-kb.ru/dokuwiki/plugins/avatar-how-to-change-gravatar-monsterid-to-other-image|DokuWiki плагин Avatar - Как заменить использование изображений monsterid с сервиса gravatar.com]]
 +
 + --- [[user>Aleksey.Maksimov|aleksey.maksimov]] //2016-04-07 12:09//
 ==== Please add support Pavatar.com ==== ==== Please add support Pavatar.com ====
 +
   * http://pavatar.com/ - similar gravatar   * http://pavatar.com/ - similar gravatar
   * http://sourceforge.net/projects/pavatar/ - php lib (as examples)   * http://sourceforge.net/projects/pavatar/ - php lib (as examples)
 +
 +==== please add Support for carddav ====
 +
 +  * config carddav URL & credentials and attributes to retrieve
 +  * lookup carddav URL as you do for gravatar and Display those
 + 
 +
plugin/avatar.txt · Last modified: 2024-02-26 13:30 by nerun · Currently locked by: 209.209.9.152

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki