+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Social networking (again)

Social networking (again)

2 posts, 0 answered
  1. Jason
    Jason avatar
    3 posts
    Registered:
    27 May 2009
    04 Nov 2009
    Link to this post
    Hi,

    Just checking...  This website -> is it using SiteFinity to achieve the login, My Account features etc

    i.e.  http://www.sitefinity.com/account.aspx etc.

    An can I achieve this out of the box?
     
    The reason I ask is that this could be a good starting point for a socal netorking site whereas I have membership with a login area and only need to start writing some new controls to support the interactive side of things?

    welcome your thoughts.

    ta,
    Jason
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 Nov 2009
    Link to this post
    Hi Jason,

    Thank you for using our services.

    While we provide the tools for user management (membership providers, controls for registration, profile management, etc) we do not provide pre-made pages for this. You will have to create those pages on your own and add whichever controls suit your needs.

    For login controls we use the standard ASP.NET Login Controls which are wrapped in user controls with predifined templates. You can easily extend their look and feel by modifying their markup. Login controls are located in ~/Sitefinity/UserControls/Login/

    It will be also good to extend the CreateUserWizardControl to enable users to add more information to their profiles. In order to add more fields to user's profiles, you will need to modify the configuration of the profile provider in the web.config file. We do have a webinar that you can take a look in order to expand your knowledge about working with membership & role providers in Sitefinity - Sitefinity Membership & Role Providers.

    In order to add the new profile properties, open your web.config and add them to the <properties> section of the profile provider configuration:
    <profile defaultProvider="Sitefinity">
        <providers>
        <clear/>
        <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess"/>
        </providers>
            <properties>
                <add name="FirstName"/>
                <add name="LastName"/>
                <add name="Position"/>
           <add name="MyField"/>

    Then after you have added those, go to the markup of the CreateUserWizzardControl and add the fields you want to be available in the user to the ManageProfile item template. The file that contains markup is ~/Sitefinity/UserControls/Login/CreateUserWizardControl.ascx:
    <sec:ManageProfile ID="ManageProfile" runat="server" Mode="Insert" GenerateButtonsInDefaultTemplate="false" >
        <InsertTemplate>
            <fieldset>
                <ul>
                    <li>
                        <asp:Label AssociatedControlID="FirstName" ID="FirstNameLabel" runat="server" Text="First name <em>(optional)</em> :" />
                        <asp:TextBox ID="FirstName" runat="server" />
                    </li>
                    <li>
                        <asp:Label AssociatedControlID="LastName" ID="LastNameLabel" runat="server" Text="Last name <em>(optional)</em> :" />
                        <asp:TextBox ID="LastName" runat="server" />
                    </li>
                    <li>
                        <asp:Label AssociatedControlID="MyField" ID="MyFieldLabel" runat="server" Text="My Field :" />
                        <asp:TextBox ID="MyField" runat="server" />
                    </li>
                </ul>
            </fieldset>
        </InsertTemplate>
    </sec:ManageProfile>

    You just need to add a texbox with ID the same as the field name you have added to the web.config.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered