i c.... thanks for the update. I need to look into this. I could not find any good link for basic information on using Membership/Role/Profile providers for Umbraco. Can you suggest any? it would of gr8 help.
I don't know any site to look for this information.
Otherwise if you want to create a typed profile I can help you but, as I said before, I highly recommend you to create profiles from Umbraco's backend.
How did you go about in displaying the member profiles ? I am looking for something like for the site i am working on, i used CMS export to export the data from excel into members but i am not sure as how to diplay them....any help would greatly be appreciated !
Umbraco Profile Provider not working.
Out of box - Umbraco Profile Provider not working. Friends, any clues or pointers on this.
Thanks in advance.
- Pinal Bhatt
Hi Pinal,
Take a look at this web.Config:
Ensure that the defaultProvider is UmbracoMemberProfileProvider and that is set to true:
HTH.
Sincere regards,
Eduardo
Eduardo, Thanks a lot for prompt response.
This is fine in my case. Below is the exact entry i have in my web.config:
<profile defaultProvider="UmbracoMemberProfileProvider" enabled="true">
<providers>
<clear />
<add name="UmbracoMemberProfileProvider" type="umbraco.providers.members.UmbracoProfileProvider, umbraco.providers" />
</providers>
<properties>
<clear />
<add name="FirstName" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="LastName" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="DisplayName" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="LoginProvider" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="LoginProviderUID" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="AuthProvider" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
<add name="ThumbnailUrl" allowAnonymous ="false" provider="UmbracoMemberProfileProvider" type="System.String" />
</properties>
</profile>
And here is the code snippet i used to access profile which is not working:
var profile = ProfileBase.Create(userName, true);
profile["FirstName"] = fName;
profile["LastName"] =lName;
profile["DisplayName"] = displayName;
profile["LoginProvider"] = CookieManager.GetCookieValue(CookieHelper.COOKIE_GIGYA_INFO, "loginProvider") ?? string.Empty; ;
profile["LoginProviderUID"] = CookieManager.GetCookieValue(CookieHelper.COOKIE_GIGYA_INFO, "loginProviderUID") ?? string.Empty; ;
profile["AuthProvider"] = "gigya";
profile["ThumbnailUrl"] = thumbnailURL;
profile.Save();
Hi Pinal,
If what you want is to add properties to your members, first you have to add those properties in Members section->memberTypes folder->[memberType]
http://es.tinypic.com/r/29dbmm9/7
Then you should fgetthis properties with the getProperty method:
var member = Member.GetMemberByName("xxx");
var name = member.getProperty("realname").Value;
HTH.
Sincere regards,
Eduardo Macho
i c.... thanks for the update. I need to look into this. I could not find any good link for basic information on using Membership/Role/Profile providers for Umbraco. Can you suggest any? it would of gr8 help.
Hi Pinal,
I don't know any site to look for this information.
Otherwise if you want to create a typed profile I can help you but, as I said before, I highly recommend you to create profiles from Umbraco's backend.
Sincere regards,
Eduardo
Thanks Eduardo. I love this community. Though Umbraco is very worst in terms of documentation... this community is great.
I will try to implement Profiles in Umbraco way and let u know.
Once again thanks a lot.
Regards,
Pinal Bhatt
Hi Pinal,
You are welcome, if you have any doubt, please ask.
Sincere regards,
Eduardo
Pinal,
Is everything ok?
If your problem is solved, plase mark the answer.
Sincere regards,
Eduardo
hi Pinal,
How did you go about in displaying the member profiles ? I am looking for something like for the site i am working on, i used CMS export to export the data from excel into members but i am not sure as how to diplay them....any help would greatly be appreciated !
ashwini kamath.
is working on a reply...