plainblack.com
Username Password
search
Bookmark and Share

Avatar macro

Macro for displaying a users avatar, photo or other image.

       #-------------------------------------------------------------------

       process ( userId, fieldName, alt1, [altImage], [alt2] )

       Returns an XHTML 1.0 strict and WAI compliant image tag including alternate text. Optionally you can provide a url of an image that should be
       displayed if the user has no image in his profile. And an alternate text belonging to that image.

       userId

       The id of the user in whose profile the image’s storageId can be found.

       fieldName

       The fieldName in the user profiling system in which the image’s storageId can be found.

       alt1

       The alternate text describing the image. You can use other macro’s here, as long as they don’t contain quotes. If no alternate text is given
       the macro will look in the profile for firstName, middleName and lastName.

       altImage

       If there is no image in the users profile, display this image.

       alt2

       Of course the alternate image has a different alternate text, describing the image. Such as "no image found".

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
DownloadAvatar.pm.txt Avatar.pm.txt
LinksNo Support Offered
Statistics Downloads: 524
Views: 2771
Rating: 0
Updated: 10/19/2007
Keywords macros
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved