Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CSBlogs : Disabling registration

I read a post recently where the author mentioned how he disabled registration in CS.  Until I work through CS User handling issues and my own approach to site registration (a post-release todo), disabling CS registration sounded like a good idea to me!  So I searched high and low in the admin area and sure as heck didn't find an Enable/Disable Registration option. Time to turn it off in the source, deciding on the quick fix of hiding the login/registration hyperlink in the CommunityServer.Controls.DisplayUserWelcome class. 

The DisplayUserWelcome class contains a public boolean EnableRegistration property.  I haven't seen the ability to set this property from outside of the class, but it does determine the visible property of the login hyperlink.  This is set out-of-the-box to true.  Change it to false and you've more or less disabled CS registration.

private bool _enableRegistration = false;  // DBVT Changed from enableRegistration from true to false
public bool EnableRegistration
{
      get{return _enableRegistration;}
      set{_enableRegistration = value;}
}

 

Comments (3) | Post RSS RSS comment feed

Posted on 3/28/2005 1:46:00 PM by Dave Burke
Categories: Community Server
Tags: No tags for this post

Related posts

Comments

3/29/2005 11:01:12 AM Permalink

I should probably post an update to the original post, but instead I'll just say that there IS a registration enable/disable function in CS admin.  Its under "Members and Roles-->Member Settings."  So please ignore this post... Smile

daveburke |

4/9/2005 6:23:54 PM Permalink

also...
in Skin-DisplayTitle.ascx you can modify the welcome control as
isplayUserWelcome EnableRegistration="False" runat="server" />

iso3200 |

4/9/2005 8:54:22 PM Permalink

iso3200, That's a great tip and a good reminder to look at the control public properties in CS, which are used quite often.  Thanks!

daveburke |

Comments are closed

This site was built with the Sueetie .NET Online Community Framework. Learn more about Sueetie at Sueetie.com.