You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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 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 the configuration setting 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.
"i.e. changing the line $avatar = $this→getConf('namespace').':'.$user; to read
(Taken from the discussion at https://www.dokuwiki.org/plugin:avatar)
"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 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 the configuration setting so that it is calledfilename
, 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 filesuser/my_user_name/avatar.jpg
etc are searched for."i.e. changing the line
$avatar = $this→getConf('namespace').':'.$user;
to read"Of course, the status quo can be achieved through this new system also, by setting the namespace/filename conf setting to
user/@USER@
."– Andy Turner 2009-07-14 15:10
The text was updated successfully, but these errors were encountered: