]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/avatar.mdwn
Merge branch 'master' into dependency-types
[ikiwiki.git] / doc / todo / avatar.mdwn
1 [[!tag wishlist]]
2
3 It would be nice if ikiwiki, particularly [[plugins/comments]]
4 supported user avatar icons. I was considering adding a directive for this,
5 as designed below.
6
7 However, there is no *good* service for mapping openids to avatars --
8 openavatar has many issues, including not supporting delegated openids, and
9 after trying it, I don't trust it to push users toward. 
10 Perhaps instead ikiwiki could get the email address from the openid
11 provider, though I think the perl openid modules don't support the openid
12 2.x feature that allows that.
13
14 At the moment, working on this doesn't feel like a good use of my time.
15 --[[Joey]]
16
17 Hmm.. unless is just always used a single provider (gravatar) and hashed
18 the openid. Then wavatars could be used to get a unique avatar per openid
19 at least. --[[Joey]] 
20
21 ----
22
23 The directive displays a small avatar image for a user. Pass it the
24 email address, openid, or wiki username of the user.
25
26         \[[!avatar user@example.com]]
27         \[[!avatar http://joey.kitenet.net/]]
28         \[[!avatar user]]
29
30 The avatars are provided by various sites. For email addresses, it uses a
31 [gravatar](http://gravatar.com/). For openid,
32 [openavatar](http://www.openvatar.com/) is used. For a wiki username, the
33 user's email address is looked up and the gravatar for that user is
34 displayed. (Of course, the user has to have filled in their email address
35 on their Preferences page for that to work.)
36
37 An optional second parameter can be included, containing additional
38 options to pass in the 
39 [gravatar url](http://en.gravatar.com/site/implement/url).
40 For example, this asks for a smaller gravatar, and if a user does
41 not have a gravatar, uses a cute auto-generated "wavatar" avatar.
42
43         \[[!gravatar user@example.com "size=40&default=wavatar"]]
44
45 The `gravitar_options` setting in the setup file can be used to
46 specify additional options to pass. So for example if you want
47 to use wavatars everywhere, set it to "default=wavatar".