Hi
I'd like to put an image in one of our confluence pages, but include the confluence username of the logged in user within the URL parameters.
For example:
<img src="https://www.google.com.au/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png?user=ConfluenceUsername" alt="Google" height="44" width="120">
I don't have admin access.
Is this possible.
Cheers,
Matt
You could do this with a user macro, but it begs the question "why?". Confluence is not going to do anything with the username, as it's pointless and it already knows who the user is,
Hi Nic - thanks for answering so quickly. How my I do this via the user macro? Would I be concatenating the image url and? then the paramater and using the usermacro output for the username?
Could you describe the process?
Your user macro would construct the url from the information in the http request.
From memory, you'd need something like src="https://url?user=$req.username()"
This outputs my name on the page. I don't see what I'd replace the report info with to set the src of the image. NB: I can't edit the code.
Matt G you ever find a workable solution for this?
I need this too
It looks like you're new here. Sign in or register to get started.