Hi everyone,
I recently had to have portal wide user images added to member profiles so I added a field to the user profile to store the url of the user's image and then wrote a custom cotrol to allow user's to upload their profile image.
I then needed to display this same image inside ActiveForums where the avatar would normally be. This had me stumped for a while but was quite easy to solve in the end. I wrote a simple DNN module that retrieves the user's image based on their user id. I added the reference to this at the top of the topicview.txt tempate file:
<%@ Register TagPrefix="wf" TagName="Image" Src="~/DesktopModules/WildfireUserImage/GetUserImage.ascx" %>
I was then able to change the template for the forum to include this control on the forum, passing in the userid from the token available in the forum template.
e.g.
[DISPLAYNAME][USERSTATUS]
[USERCAPTION]
[RANKDISPLAY]
[RANKNAME]
Posts:[POSTS]
<wf:Image runat="server" id="userImage[POSTID]" maxheight="60" maxwidth="60" theuserid="[USERID]" />
Heh presto the user's image come up on the forum and is used throughout the site too...
If anyone is interested in more detail on how to do this i can post some more info...