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 [2016-05-22 06:20] – [A bit more control] 85.9.60.46plugin:avatar [2024-02-26 13:30] (current) – [Avatar Plugin] nerun
Line 3: Line 3:
 ---- plugin ---- ---- plugin ----
 description: Insert a gravatar into a wiki page, also needed by the discussion plugin. description: Insert a gravatar into a wiki page, also needed by the discussion plugin.
-author     : Dokufreaks (previous authors: Michael Hamann, Esther Brunner, Gina Häußge, Michael Klier) +author     : Daniel "Nerun" Rodrigues (previous authors: Dokufreaks, Michael Hamann, Esther Brunner, Gina Häußge, Michael Klier) 
-email      : freaks@dokuwiki.org+email      : danieldiasr@gmail.com
 type       : syntax, helper type       : syntax, helper
-lastupdate : 2016-01-16 +lastupdate : 2023-12-04 
-compatible : Weatherwax, "Adora Belle", Angua, Rincewind+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: https://github.com/dokufreaks/plugin-avatar/archive/master.zip 
-bugtracker : https://github.com/dokufreaks/plugin-avatar/issues 
-sourcerepo : https://github.com/dokufreaks/plugin-avatar 
-donationurl:  
 ---- ----
  
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 FIXME| +^ [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 ===== 
- 
-There is currently no demo available. 
  
 ===== Changes ===== ===== Changes =====
- +{{rss>https://github.com/nerun/dokuwiki-plugin-avatar/commits/master.atom date}}
-{{rss>https://github.com/dokufreaks/plugin-avatar/commits/master.atom date}} +
 ===== Discussion ===== ===== Discussion =====
  
Line 59: Line 55:
 Instead of avatars coming from a fixed namespace, I would like to be able to specify a tokenized filename for the avatar.  For example, I have my DW set up so that each user has a "user namespace" in which they have full permissions, and I would like that avatar to come from that namespace.   Instead of avatars coming from a fixed namespace, I would like to be able to specify a tokenized filename for the avatar.  For example, I have my DW set up so that each user has a "user namespace" in which they have full permissions, and I would like that avatar to come from that namespace.  
  
-This is a lot easier to manage since there is no a-priori avatar, and thus ACL permission cannot be granted to upload the file - I want users to be able to change their own avatars without other users being able to; since you can't grant ''delete'' permission to a namespace, there is no way to stop users jhoverwriting each others' avatars unless they are in separate protected namespaces.+This is a lot easier to manage since there is no a-priori avatar, and thus ACL permission cannot be granted to upload the file - I want users to be able to change their own avatars without other users being able to; since you can't grant ''delete'' permission to a namespace, there is no way to stop users overwriting each others' avatars unless they are in separate protected namespaces.
  
 This can be achieved by changing the ''namespace'' conf setting so that it looks something like ''user/@USER@/avatar'' (perhaps even renaming so that it is called ''filename'', since that is a more meaningful description of the setting under this proposal).  This is then resolved in ''_getAvatarURL'' into the right form, e.g. ''user/my_user_name/avatar'', and then the files ''user/my_user_name/avatar.jpg'' etc are searched for. This can be achieved by changing the ''namespace'' conf setting so that it looks something like ''user/@USER@/avatar'' (perhaps even renaming so that it is called ''filename'', since that is a more meaningful description of the setting under this proposal).  This is then resolved in ''_getAvatarURL'' into the right form, e.g. ''user/my_user_name/avatar'', and then the files ''user/my_user_name/avatar.jpg'' etc are searched for.
plugin/avatar.1463890848.txt.gz · Last modified: 2016-05-22 06:20 by 85.9.60.46

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