Skip to main content

Posts

Showing posts from July, 2014

How to read DNN custom user profile properties

Dear All, here is a function for getting DNN user profile properties (Note it's only working with DNN6.0+ versions) //Import these two classes using DotNetNuke.Entities.Profile; using DotNetNuke.Entities.Users; //Place this function  protected string GetProfilePropertyValue(string propertyName)         {             string value;             ProfilePropertyDefinition ppd = UserInfo.Profile.GetProperty(propertyName);             if (ppd == null)             {                 value = "";             }             else             {                 value = ppd.PropertyValue;                 if (value == null)                 {                     if (String.IsNullOrEmpty(ppd.DefaultValue))                         value = String.Empty;                     else                         value = ppd.DefaultValue;                 }             }             return value;         } Regards Rashid Bilgrami http://www.bestvisualization.com

How to enable cotnent localization in DNN 6 & 7

Dear All,  Check out how to enable the content localization in DNN 6 and 7  Regard Rashid Imran BIlgrami http://www.bestvisualization.com

Page Setting Error in DNN with Arabic Language Error :Valid values are between 1318 and 1500, inclusive. Parameter name: year

Dear All, Today i found a solution for the problem of DNN Arabic Localization Error. In DNN 6.0 and + when we install the DNN it gives an issue under page setting the error is some thing like this InnerException:Valid values are between 1318 and 1500, inclusive. Parameter name: year Message:DotNetNuke.Services.Exceptions.PageLoadException: Valid values are between 1318 and 1500, inclusive. Parameter name: year ---> System.ArgumentOutOfRangeException: Valid values are between 1318 and 1500, inclusive. Parameter name: year etc .... you can get rid of this problem by following below steps: Step 1: Open DNN installed directory Step 2: Open following folder location : DNNDIRECTORY\DesktopModules\Admin\Tabs Step 3: Open ManageTabs.ascx  Step 4: Copy and past following line between Register controls and <Div>code  <%     startDatePicker.Culture = new System.Globalization.CultureInfo("en-US");     endDatePicker.Culture = new System.Globalization.C