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

Forums / Security / Allow users to edit their profile?

Allow users to edit their profile?

17 posts, 0 answered
  1. Simon
    Simon avatar
    2 posts
    Registered:
    05 Mar 2008
    07 Aug 2009
    Link to this post
    Hi,

    I've just started playing with Sitefinity, I've completed most of our proof of concept work, but one thing that not jumping out at me is user managment.

    I want users to be able to create there own accounts and edit these details. The "My Profile" page seems to allow this, i've been able to add my own properties and it all looks fine.

    But in order for a user to see this they need the cmsAccess permission, which allows them to see way to much of the site finity internals. Also I can't find a create user page that forces the capture of some/all of this additional information.

    Thanks 
        Simon
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    21 Nov 2016
    10 Aug 2009
    Link to this post
    Hi Simon,

    You can use - ManageProfile and CreateUserWizard public controls, located under "Login" section in the controls toolbox, to control your user without giving them access to the admin section. You can also extend these controls to provide any additional functionality you might need.

    Hope this helps.

    All the best,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Jason
    Jason avatar
    9 posts
    Registered:
    23 Mar 2009
    20 Aug 2009
    Link to this post

    Is there a way to use the “myprofile” page in sitefinity without creating a new page from scratch for users to be able to edit their information and picture without admin CMS?  I’ve created a new master page and trying to use the myprofile.aspx page in it but getting may errors.  Is there a simpler way?  Under login in the visual studio 2008 toolbox there is a CreateUserWizard tool but I don’t see a ManageProfile tool.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Aug 2009
    Link to this post
    Hi Adisa,

    Manage profile control is located under Sitefinity's toolbox, Login section. There you can find Manage Profile control with simple interface. I suggest that you should create your own custom control.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Jason
    Jason avatar
    9 posts
    Registered:
    23 Mar 2009
    25 Aug 2009
    Link to this post
    The manage profile control that is located under Sitefinity's toolbox only has a input for first name and last name and none of the options in the admin CMS profile manager.  I don't understand how that works or how users will be able to update their profile with this control.  Please advise.

    Adisa
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Aug 2009
    Link to this post
    Hello Adisa,

    You can create a custom template and set its path to EditTemplateUrl property of the control. Below is a sample template:

    <asp:TextBox ID="FirstName" runat="server" /> 
    <asp:TextBox ID="LastName" runat="server" /> 
    <asp:TextBox ID="Position" runat="server" /> 
    <asp:Button ID="submitButton" runat="server" Text="test" /> 

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. homepagedigital
    homepagedigital avatar
    13 posts
    Registered:
    06 Jul 2009
    28 Oct 2009
    Link to this post
    Hi Telerik support,

    User Details Section on MyProfile Page,
    where does it read and write the Firstname and Lastname ?
    which table in the database ?

    Regards
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Oct 2009
    Link to this post
    Hello homepagedigital,

    Please take a look at [telerik_UserMetaInfo] table of your project database.

    Greetings,
    Ivan Dimitrov
    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.
  9. Peter Huisman
    Peter Huisman avatar
    1 posts
    Registered:
    15 Dec 2004
    18 Jun 2010
    Link to this post
    Must say I'm a little disappointed that no real example is given or that there is no clear cut toolbox-item with its own template possibities, while this is such a basic functionality. Finding a working example is quite difficult.
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Jun 2010
    Link to this post
    Hi Peter Huisman,

    By default the control generates its own template only with two profile fields - FirstName and LastName. If you want to extend the template you should create a custom template and map it through InsertTemplateUrl( this is for inserting data - Insert mode) or EditTemplateUrl( this is for editing data - Edit mode)

    So you could create a simple template that has the same TextBox controls as you have for the Profile data. For instance - FirstName. LastName, Company, JobPosition. The IDs of the text boxes should be the same as the name of your Profile properties.
    You can set your template when you open ManageProfile control in Edit mode, set Mode enum to Edit and EditTemplateUrl to your template path. Here the important thing is that you should have a Button control with ID="Submit"

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. John White
    John White avatar
    20 posts
    Registered:
    29 May 2010
    22 Jun 2010
    Link to this post
    Since I'm wrestling with this, I can help a little.  You already have at least one master page template set up.  Creating a new template and them is another topic (which I may post my experiences when I'm done).

    When creating a page in SiteFinity, the first step is always to choose the Template.  Then you drag and drop controls and fill in the content.  To replace the ManageProfile control you will be using the "Upload a control" and "Add" buttons in the lower right corner.

    First, in VS, you will be creating a "Web User Control", which is an .ASCX and not an .ASPX.  I am using VS2008 so if you're using 2005 or 2010, there may be some differences.

    I'm creating one a little later today for my project.  I'll post the code in the code area and on this post.  So there should be a concrete example in a couple hours, ok?
  12. Johar Iqbal
    Johar  Iqbal avatar
    10 posts
    Registered:
    20 Aug 2009
    04 Nov 2010
    Link to this post
    Hi,

    I also need a working example, waiting for the code.

    thanks
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Nov 2010
    Link to this post
    Hi Johar ,

    You will find a sample code in this post.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  14. samuel
    samuel avatar
    5 posts
    Registered:
    01 Nov 2010
    11 Nov 2010
    Link to this post
    Hi , I am Samuel And new here .. I glad to join this forum .. I would like to know How I manage my profile ?? Help me please Because i will add my personal information and update my profile .. Thanks for help in advance ..  
  15. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Nov 2010
    Link to this post
    Hi samuel,

    Is there any particular issue that you have, so I could be more concrete?

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. samuel
    samuel avatar
    5 posts
    Registered:
    01 Nov 2010
    15 Nov 2010
    Link to this post
    Hi Admin,
                  Yeah i have particular problem this is for me because i am new here and not for you i hope .. I would like to change my photo so what i will do ?? Thanks ....
  17. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Nov 2010
    Link to this post
    Hello samuel,

    Go to Administration >> Users, select a user for editing and click "More options". Form there you can change your picture. If you work programmatically you can use GetPropertyValue and SetPropertyValue for Photo_Hidden and Photo property fields.

    You can use ManageProfile class and call SetProfileProperties public method. To add an image you can use ButtonSelector control. For a sample implementation you can check \Sitefinity\Admin\CmsAdmin\Users.aspx and its code behind.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
17 posts, 0 answered