Skip to end of metadata
Go to start of metadata

Overview

Displays the user picture of either the person who created the page or another specified user.

Usage

{my-picture:username}

Parameters

Parameter

Required

Default

Notes

Bubbles Version

default

(error)

@creator

The username of the person whose picture is to be displayed.

  • username - specify the username of a user.
  • @self - the logged in user
  • @creator - the user that created the page
  • @owner - ther user that created the space

1.0
(meta params 1.4)

size

(error)

48px

The size of the picture displayed.

1.0

showName

(error)

true

Whether the user's name should be shown.

1.0

showControls

(error)

false

Show icons below the image that link to functions related to the user being displayed.

1.0

4 Comments

  1. Unknown User (juhalindfors)

    Is there a way to get just the image, without the decorations?

    1. Unknown User (skrebs)

      not currently, although that does sound like something we should look at adding.

      1. Unknown User (juhalindfors)

        I'm currently using {report-image:content:creator > user:picture} as a work-around (from Reporting plugin).

    2. Apply a classname (eg user-picture) to the widget that contains the my-picture macro (or wrap it in a div that adds a classname) then remove the base styling using css like this:

      div.user-picture div.my-picture, 
      div.user-picture div.my-picture div.picture-picture {
       float:none;
       background-color:transparent;
       border:0px none;
       width:auto;
       height:auto;
      }
      

      eg:

       

      {style}
      div.user-picture div.my-picture, 
      div.user-picture div.my-picture div.picture-picture {
       float:none;
       background-color:transparent;
       border:0px none;
       width:auto;
       height:auto;
      }
      {style}
      
      {div:class=user-picture}{my-picture:amoran|showName=false}{div}