Fullscreen
[Show/Hide Right Column]

Display a user's avatar

Plugin Avatar

This Wiki Plugin displays a user's avatar and can make it a link to another page.



Usage and Parameters

To use this plugin in a wiki page, use the syntax:
Syntax for AVATAR plugin
{AVATAR(page=>SomeWikiPage, float=>left|right)}username{AVATAR}


Parameter Accepted values Default Effect Required? Since
page A wiki page name none Turns avatar into a link to this page. If the user's information is public, then the avatar will automatically be a link to the user information page for that user if this page parameter is not set. Note: This automatic link is not working properly currently - see bug reported at http://dev.tikiwiki.org/tiki-view_tracker_item.php?trackerId=5&itemId=2476. n
float right or left none Causes avatar to align right or left n
body (between the AVATAR tags) A username. Note: leave no spaces between the tags or nothing will show. none The avatar for this user will appear. If the user has no avatar, or if no username is given, then nothing will appear. y


Example

This code:
Including a page link and float left
{AVATAR(page=>"tiki-user_information.php?userId=10", float=>"left")}marclaporte{AVATAR}


Would produce on this site:

marclaporte


This code:
No page link and float right
{AVATAR(float=>right)}ricks99{AVATAR}


Would produce on this site:
ricks99




Contributors to this page: lindon5651 points  .
Page last modified on Wednesday 28 December, 2011 23:44:06 UTC by lindon5651 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki