public static string Getprofileimage (int userId, int width, int height)
{
Return "~/profilepic.ashx?userid=" + userid.tostring () + "&w=" + width. ToString () + "&h=" + height. ToString ();
}
Participating sites
Http://www.ventrian.com/blog/getting-user-profile-image-paths-in-dotnetnuke
Luckily, a fairly trivial task with DotNetNuke:
String getprofileimage (int userId) { return Page.resolveurl ("~/profilepic.ashx?userid=" + Userid.tostring ());}
By default, it looks to is restricted to a maximum width and height of 55px . However, you can pass in parameters to control the width & height.
protected string getprofileimage ( int userId, int width, int height) { Return Page.resolveurl ( "~/profilepic.ashx?userid=" + userid.tostring () & " &w= "& width. ToString () & "&h=" & height. ToString ());}
Http://www.ventrian.com/blog/better-profile-pictures-in-dotnetnuke
<img alt= "Profile Avatar" src = "/profilepic.ashx?userid=[user:userid]&h=64&w=64" width = "Up" height= "Up" >
DotNetNuke Avatar calls Avatar zoom