Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Profile Picture on Dashboard

Ramin Schadmehri May 7, 2013

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

6 answers

1 accepted

1 vote
Answer accepted
Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2013

Writing user macros is no sorcery. Look here for more information: https://confluence.atlassian.com/display/DOC/Writing+User+Macros

1 vote
Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2013

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

<ac:macro ac:name="profile-picture">
    <ac:parameter ac:name="User">$paramUser</ac:parameter>
</ac:macro>

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

{own-profile-picture-macro:User=<confluence user name>}

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

Cheers,
Kirstin

Ramin Schadmehri May 13, 2013

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


0 votes
Ramin Schadmehri June 26, 2013

Hi Kirstin,

with your help i created a user macro:

    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
Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2013

Nice to hear, you were successful, Ramin. :)

0 votes
Ramin Schadmehri May 12, 2013

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

0 votes
Ramin Schadmehri May 12, 2013

The informations in the Profile Picture Macro documentations doesn't have any solution for my problem.

Chung Park Chan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2013

I'm sorry if it doesn't helped. You were saying that you want to edit the Welcome Message on dashboard, no?

Ramin Schadmehri May 12, 2013

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

Chung Park Chan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2013
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 ?

Ramin Schadmehri May 12, 2013

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

0 votes
Chung Park Chan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2013

Are you referring to Profile Picture Macro?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events