8000 GitHub - zoglun/MW-Avatar: Yet another avatar architecture for MediaWiki
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zoglun/MW-Avatar

 
 

Repository files navigation

Avatar

Yet another avatar architecture for MediaWiki

Install

  • Install php-gd, which is a dependency of this extension
  • Clone the respository, rename it to Avatar and copy to extensions folder
  • Add wfLoadExtension('Avatar'); to your LocalSettings.php
  • You are done!

Configuration

  • $wgDefaultAvatar (string), should be set to the URL of the default avatar.
  • $wgAllowedAvatarRes (array), default value is array(64, 128). Thumbnails will be created upon request when their size is in this list.
  • $wgMaxAvatarResolution (integer), default value is 256. This limits maximum resolution of image to be uploaded.
  • $wgDefaultAvatarRes (integer), default value is 128. This is the fallback option if resolution is not specified.
  • You can set user rights:
    • avatarupload: User need this right to upload ones' own avatar.
    • avataradmin: User need this right to delete others' avatars.

How to use

  • Set avatar in user preference, and then $wgScriptPath/extensions/Avatar/avatar.php?username will be redirected to your avatar.
  • You can set alias for this php to make it shorter.

Extra resources

  • If you are using Gadgets
    • If you want to display the avatar on the top-right navigation bar, you may find Gadget-ShowAvatar in example folder useful.
    • If you want to display avatars before user link, you may find Gadget-UserLinkAvatar in example folder useful.

About

Yet another avatar architecture for MediaWiki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 54.9%
  • JavaScript 38.9%
  • CSS 6.2%
0