Does the DnnImageHandler work with profilepic mode with no supplied userid? Specifically, I want to use
src="/DnnImageHandler.ashx?mode=profilepic"
In an image tag in an HTML module, and it doesn't seem to work. Can I put an image of the logged in user's profile picture into an HTML Module with the image handler? If so, how? Thanks!
I have this on one of my test pages
<img src="/dnnimagehandler.ashx?mode=profilepic&w=120" />
And this was from the DNN tutorial
ID of user whose profile image should be shown. If omitted, the profile pic of the current user is generated. If no user is logged in or the profile pic is not allowed to show, a generic avatar image is generated
It shows the default avatar if no profile ID is given or the user is not allowed to see it.
Ahh! I get what your asking.....a little slow on a Monday after the long holiday :-) Yeah according to the instructions it should show my profile pic but insteaad it's showing the default avatar
Joe, You can add the userid and use the DNN userid token
mode=profilepic&userid=[user:userid]
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.