Profile Picture on Dashboard
Asked by Ramin Schadmehri:

Hi,

maybe it's an little problem, but i cant't find a beautyful solution.

We decide to show !only! the profile pictures of our administrators on the left side of the dashboard in confluence. There is an text area (welcome message) in den *Administration Console / General Configurations* . The *user profile Plugin* (syntax={profile:user=mrtest\|}) works fine on the dashboard, but we won't show all the informations about the profile. We want to insert the *profile picture Plugin* with it's hover-function on dashboard. Does anybody knows the right syntax to insert this plugin in the *welcome message area* on dashboard???

Thanks for all answers


Answers:
author: Kirstin Seidel-Gebert
body: Writing user macros is no sorcery. Look here for more information: <https://confluence.atlassian.com/display/DOC/Writing+User+Macros>


author: Kirstin Seidel-Gebert
body: Hi,

I haven't found anything on how to access the profile-picture macro directly via wiki markup. But I succeeded in writing a user macro, that inserts the profile picture of a selected user using the profile-picture macro.

```
## @param User:title=User Name|type=string|desc=Specify the Confluence User Name.|required=true&lt;ac:macro ac:name="profile-picture"&gt;    &lt;ac:parameter ac:name="User"&gt;$paramUser&lt;/ac:parameter&gt;&lt;/ac:macro&gt;
```

On the dashboard, I inserted this self-made macro using wiki-markup as follows:

```
{own-profile-picture-macro:User=&lt;confluence user name&gt;}
```

This worked with our Confluence installation - the picture was displayed.

Cheers,  
Kirstin

comments: author: Ramin Schadmehri
body: Hi Kirstin,

thank you for posting your user macro code + syntax. Maybe we going to try your user-macro, but its the first time we use a user-marco and i have to inform myself how i create a user macro ;)...

I got an answer from atlassian support why "profile-picture-macro" doesn't work on dashboard:

*I'm sorry to inform you that it is currently not possible to add profile picture macro into the "welcome message". This is because the "welcome message" still uses wiki-markup storage format which is no longer supported by new macro created after Confluence 4.1. New macro such as profile picture uses XHTML storage format. I will raise a feature request to developer that suggest them to allow "welcome message" to support the XHTML format if that is fine with you.*

Kind regards,

Ramin


author: Ramin Schadmehri
body: Hi Kirstin,

with your help i created a user macro:

1.
   1. Picture Macro for Dashboard
   2. @param User:title=User Name\|type=string\|desc=Specify the Confluence User Name.\|required=true

\<ac:macro ac:name="profile-picture"\>  
\<ac:parameter ac:name="User"\>$paramUser\</ac:parameter\>  
\</ac:macro\>  
Works fine  
Best Regards  
Ramin

comments: author: Kirstin Seidel-Gebert
body: Nice to hear, you were successful, Ramin. :)


author: Ramin Schadmehri
body: Sorry, can't share it. But maybe i can explain it in a way better than my last description: You know the Welcome Message Area in Administration Configuaration Settings? When you start typing {profile... there isn't a popup (autocompletefunction) for plugin or macro selection avaible.

So what i really want to know is the right name of the "Profile Picture macro" to insert it manually like {\<macroname\>:user=\<name\>}

Thanks


author: Ramin Schadmehri
body: The informations in the [Profile Picture Macro](https://confluence.atlassian.com/display/DOC/Profile+Picture+Macro) documentations doesn't have any solution for my problem.

comments: author: Chung Park Chan
body: I'm sorry if it doesn't helped. You were saying that you want to [edit the Welcome Message](https://confluence.atlassian.com/display/DOC/Editing+the+Site+Welcome+Message) on dashboard, no?


author: Ramin Schadmehri
body: First of all.. Thank you for helping me to find a solution...

It's correct, we want to edit the Welcome Message on Dashboard. We inserted teh "Profile marco" and it works fine, but it shows too much infortmations about any user. We want to insert the "Profile Picture macro" on dashboard, but can't find the right syntax for it (because the welcome-message-editor doesn't support macro/plugin-autocomplete-function like the normal confluence page-editor).

Maybe you know the right syntax for "Profile Picture macro" to insert it on dashboard/welcome message area.

Thanks


author: Chung Park Chan
body: ```
because the welcome-message-editor doesn't support macro/plugin-autocomplete-function like the normal confluence page-editor
```

I am curious on why this could happen. Perhaps you can share ?


author: Ramin Schadmehri
body: Sorry, can't share it. But maybe i can explain it in a way better than my last description: You know the Welcome Message Area in Administration Configuaration Settings? When you start typing {profile... there isn't a popup (autocompletefunction) for plugin or macro selection avaible.

So what i really want to know is the right name of the "Profile Picture macro" to insert it manually like {\<macroname\>:user=\<name\>}

Thanks


author: Chung Park Chan
body: Are you referring to [Profile Picture Macro](https://confluence.atlassian.com/display/DOC/Profile+Picture+Macro)?


Tags: confluence-administration

dashboard