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
plugin:avatar [2012-11-21 00:13] Klap-inplugin:avatar [2024-02-26 13:30] (current) – [Avatar Plugin] nerun
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     : Daniel "Nerun" Rodrigues (previous authors: Dokufreaks, Michael Hamann, Esther BrunnerGina Häußge, Michael Klier) 
-email      : dokuwiki@chimeric.de+email      : danieldiasr@gmail.com
 type       : syntax, helper type       : syntax, helper
-lastupdate : 2009-08-22 +lastupdate : 2023-12-04 
-compatible : >rc2009-02-06+compatible : Weatherwax, Adora Belle, Angua, Rincewind, Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : 
-tags       : media, images, avatar, discussion, embed+tags       : media, images, avatar, discussion, embed, !discontinued 
 +screenshot_img : https://i.imgur.com/W9RamwF.png 
 + 
 +downloadurl: https://github.com/nerun/dokuwiki-plugin-avatar/tarball/master 
 +bugtracker : https://github.com/nerun/dokuwiki-plugin-avatar/issues 
 +sourcerepo : https://github.com/nerun/dokuwiki-plugin-avatar 
 +donationurl: https://www.paypal.com/donate/?hosted_button_id=T95ZWHGTG2GT2
  
-downloadurl: http://cloud.github.com/downloads/dokufreaks/plugin-avatar/plugin-avatar.tgz 
-bugtracker : http://github.com/dokufreaks/plugin-avatar/issues 
-sourcerepo : http://github.com/dokufreaks/plugin-avatar 
-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 27:
   {{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 40: Line 42:
  
 The username has to be lowercase and follow the pagename naming rules. If unsure, you get your username for example the recent changes log etc.. Supported image types are jpg/png/gif. The username has to be lowercase and follow the pagename naming rules. If unsure, you get your username for example the recent changes log etc.. Supported image types are jpg/png/gif.
- 
-===== Demo ===== 
- 
-You can [[http://chimeric.de/_demo/plugin:avatar|try the plugin here]] FIXME. 
  
 ===== Changes ===== ===== Changes =====
- +{{rss>https://github.com/nerun/dokuwiki-plugin-avatar/commits/master.atom date}}
-{{rss>http://github.com/feeds/dokufreaks/commits/plugin-avatar/master date}} +
 ===== Discussion ===== ===== Discussion =====
  
Line 115: Line 111:
  
 ====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.1353453186.txt.gz · Last modified: 2012-11-21 00:13 by Klap-in

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