aaronkjackson.com

Life is simple and so is web development.

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About

Monthly Archives: March 2011

Using the DotNetNuke Profile Photo in a Custom Module

Posted on March 12, 2011 by aaron
Reply

no_avatar dnnprofilephoto

 private string GetUserPhotoUrl(UserInfo user)
 {
        if (user.Profile.Photo == null || user.Profile.Photo == "-1")
            return user.Profile.PhotoURL;
        else
            return VirtualPathUtility.ToAbsolute("~/LinkClick.aspx") + "?fileticket=" + user.Profile.Photo;
 }

An anonymous user or a user without a profile photo will always get the default no_avatar.gif image.

Posted in Development, DotNetNuke | Leave a reply

Tags

5.5 64bit ASP.NET BIDS BOI2REX C# Cool CSS Cycling design dialog DotNetNuke gimp Google Maps Idaho JavaScript jQuery Knockout module MVP NAnt Nutrition patterns Quick Tip Silverlight SQL SSIS tab Text/HTML timberline time zone Tip Tools Web Forms WebFormsMVP Web Forms MVP wolves
View Aaron Jackson's profile on LinkedIn
Aaron Jackson's Profile
Aaron Jackson's Facebook Profile
Create Your Badge

Pages

  • About

Categories

  • AthleticHost
  • Cycling
  • Development
  • DotNetNuke
  • MidField
  • Uncategorized
  • Web Development
Proudly powered by WordPress