Avatar

Creator: Yuri Kobets (kobets)

Need help installing this extra?

About Avatar

Using Avatar package you can make the avatars for users profiles. Users can upload own avatars on your website. Also this package contain the Output Filter to show the avatars on your websites.

Information

Released
June 22, 2011

Supported Database
MySQL

License
GPLv2

Supported Versions
2.0 - <2.2

Downloads
2,351

Instructions

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.

New in 1.1.0-pl

version 1.1

====================================

- Fixed bug in avatar.url

version 1.0

====================================

- this is the first release

Current releases

1.1.0-pl
View | Download
June 22, 2011
2.0 - <2.2