Avatar

avatar

  • By kobets
  • Latest release June 22, 2011 (15 years ago)

About

This version fixes bug in avatar.url output filter

Installation & usage

Snippet: avatar.upload

With this snippet your users can upload avatars for the profile

@property textfield defavatar: the url to the default avatar.

@property textfield maxwidth: the maximum width of the avatar.

@property textfield maxheight: the maximum height of the avatar.

Snippet sets the placeholders:

uploadavatar.update_error: 1 if there is an error 0 if successfully updated

uploadavatar.error: error text

uploadavatar.avatarurl: url to the avatar. You can use this url in the img src

Output Filter: avatar.url

This Output Filter can be used to show the user avatar

Usage:

<img src="[[+createdby:avatar.url=`assets/images/defavatar.png`]]">

input string is the default avatar url.

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer kobets
  • Latest release June 22, 2011 (15 years ago)
  • First seen in SiteDash June 15, 2011 (15 years ago)
  • License GPLv2
  • MODX support 2 – 2.2
  • Databases MySQL

Releases 1 indexed release

Changelog
MODX.com

1.1.0-pl1

June 22, 2011

15 years ago

<p>version 1.1</p><p>====================================</p><p>- Fixed bug in avatar.url</p><p>version 1.0</p><p>====================================</p><p>- this is the first release</p>