Adding new profile fields / Membership questions

This post has 2 Replies | 1 Follower

Not Ranked
Posts 1
Points 20
AlexiaSerinde Posted: Fri, Feb 9 2007 6:13 AM

Hiya,

I'm using CS Personal Edition and I'm trying to integrate it with a site I have started to develop. Basically, it's going to be a Cheerleading community, and I will be using only the Forums application of CS. Obviously, I am going to need some sort of Single Sign On, but I cannot afford Standard edition just yet. Seeing as I've barely started the rest of the site, I was wondering if I could base my own ASP.NET site on CS's membership, maybe by using CommunityServer.SqlDataProvider.dll in my web.config and pointing it to the CS Database? (Or could I just use the default .NET SqlMembershipProvider?)

Secondly, I'd like to add some fields to the profile, for example, which squad the member is from. I'd also like to add this to the sidebar of any posts the member makes - under the avatar along with the post count, etc. Is that possible in CS Personal Edition?

Many thanks,

Alexia

Not Ranked
Posts 2
Points 40
CookMan replied on Fri, Feb 16 2007 6:36 PM
I think we're trying to do the same thing, but I'm also having problems. I will let you know if I find any solution.
  • | Post Points: 20
Top 10 Contributor
Posts 2,423
Points 19,635
MVPs
Nick replied on Sat, Feb 17 2007 6:03 AM

You can use the CSContext.User.GetExtendedAttribute and User.SetExtendedAttribute.  If you put a form field on the form with a name, and that name isn't in the default profile set, it will save the user data using these functions.

You then user CommunityServer.Users.UpdateUser(CSContext.User); to save the extrended attributes 

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com