Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Bardi 927 posts 2562 karma points
    Aug 16, 2010 @ 07:05
    Daniel Bardi
    0

    Just released the Profile Editor Macro. Please test on your site!

    EVERYONE!

    Please try the macro and let me know if it works for you.

    Thanks

  • Barry Fogarty 493 posts 1129 karma points
    Aug 24, 2010 @ 01:19
    Barry Fogarty
    0

    Hi Daniel,

    This is just what I am looking for for my project.  However I could not get the control to render any profile properties:

    • I have created firstName and lastName textstring properties in my default MemberType (they are in a custom tab I created called "Profile")
    • I created a profile section in my web.config which matches your example (the key names are the same as my property aliases above)
    • I installed the package and created a template which included your Edit Member Profile macro
    • I created a "My Profile" page based on this template

    However when I log in and visit this page, I only get the "Update Profile" button on the page, no form controls are being rendered.  Is there something I am missing?   If I click the button, I get "Profile update failed".

    web.config membership/profile code:

    Snippet

        <!-- Membership Provider -->
        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="WebsiteUser" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>

        <!-- added by BF to enable custom profile fields -->
        <profile>
          <properties>
            <clear />
              <add name="firstName" allowAnonymous="false" provider="UmbracoMemberProfileProvider" type="System.String" />
              <add name="lastName" allowAnonymous="false" provider="UmbracoMemberProfileProvider" type="System.String" />
          </properties>
        </profile>

     

  • BK 7 posts 27 karma points
    Aug 24, 2010 @ 23:52
    BK
    0

    Same issue here, same install as above poster.

  • Daniel Bardi 927 posts 2562 karma points
    Aug 24, 2010 @ 23:57
    Daniel Bardi
    0

    I'll take a look at it later today... I'm sure it's just a mistake in my install process.

    Thanks for the updates!

  • Daniel Bardi 927 posts 2562 karma points
    Aug 25, 2010 @ 02:43
    Daniel Bardi
    0

    I didn't past the proper web.config settings:

    Here's the fix!

        <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" />
            </properties>
        </profile>
    

     

  • Andrew Waegel 126 posts 126 karma points
    Sep 17, 2010 @ 23:27
    Andrew Waegel
    0

    Same problem for me - I have this in web.config, and I'm sure the property names match the property aliases.

            <profile defaultProvider="UmbracoMemberProfileProvider" enabled="true">
                <providers>
                    <clear/>
                    <add name="UmbracoMemberProfileProvider" type="umbraco.providers.members.UmbracoProfileProvider, umbraco.providers"/>
                </providers>
                <properties>
                    <clear/>
                    <add name="auth_guid" allowAnonymous="false" provider="UmbracoMemberProfileProvider" type="System.String"/>
                    <add name="first_name" allowAnonymous="false" provider="UmbracoMemberProfileProvider" type="System.String"/>
                    <add name="last_name" allowAnonymous="false" provider="UmbracoMemberProfileProvider" type="System.String"/>
                </properties>
            </profile>

    When I click 'update profile' I do get an 'update succesful' message. Using a clean Umbraco 4.5.2.

  • Daniel Bardi 927 posts 2562 karma points
    Sep 18, 2010 @ 01:52
    Daniel Bardi
    0

    Just tested a clean install .. no issues... can you explain your setup?

  • Rik Helsen 670 posts 873 karma points
    Sep 21, 2010 @ 10:30
    Rik Helsen
    0

    I'm testing on Umbraco 4.5.1 and am also not getting and fields to display :/ most likely user error since this is the first time i'm working with members...

     

  • Andrew Waegel 126 posts 126 karma points
    Sep 21, 2010 @ 19:22
    Andrew Waegel
    0

    There's nothing special about my installation; it's a clean Umbraco 4.5.2, and I'm using standard ASP.NET membership controls. There seems to be some setting or configuration keeping the fields from the editor. Not a big deal to resolve for me; I've made a custom profile editor, which we needed anyway.

  • Rik Helsen 670 posts 873 karma points
    Sep 28, 2010 @ 14:22
    Rik Helsen
    1

    To what extent is this important? i didn't notice it before...

  • Daniel Bardi 927 posts 2562 karma points
    Sep 28, 2010 @ 15:02
    Daniel Bardi
    0

    Very important.. You must check the "Show on profile" for it to display... if the "Member can edit" is not checked.. the control with be diabled.

    Good catch... I assumed that was a given.

     

  • Rik Helsen 670 posts 873 karma points
    Sep 30, 2010 @ 09:52
    Rik Helsen
    0

    Daniel: many of us are using "members" for the very first time when we try out this package ;)

    I tried some more but i still didn't get this to work...

    How i configured the Membertype:

     

    The page template:

    And the web.config:

    The rendered page:

    and the rendered source html:

    <form method="post" action="/nl/page2?" id="ctl00">
    <div class="aspNetHidden">
    <input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
    <input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
    <input name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MWRkvm1vVPcGnAQeT6e9HQ7VyfUENNU/J5RSBTR288AUdgM=" type="hidden">
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['ctl00'];
    if (!theForm) {
        theForm = document.ctl00;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <script src="/WebResource.axd?d=oaf3Zy88k1jE0PHTx33FaA2&amp;t=634133345379034695" type="text/javascript"></script>
    
    
    <script src="/ScriptResource.axd?d=OFs6IYo4gMArtx4XB2Qj3ju_s6MxJH7A98cZEjbSFkCwjstoJgJ26AssjZC9nWmNXSlbNIedg8I8ztFfFOZxv0a6O9oj1x7woqe6ItWDiyc1&amp;t=16ab2387" type="text/javascript"></script>
    <script src="/ScriptResource.axd?d=OFs6IYo4gMArtx4XB2Qj3ju_s6MxJH7A98cZEjbSFkCwjstoJgJ26AssjZC9nWmN_Uh-ax306gohdFG-aQW5DPr8_SEXukoEGebeUIBvEY01&amp;t=16ab2387" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    Sys.WebForms.PageRequestManager._initialize('ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ContentArea$ProfileEditor_3$ScriptManager1', 'ctl00', [], [], [], 90, 'ctl00$ctl00$ctl00');
    //]]>
    </script>
    
    <link rel="stylesheet" href="/umbraco_client/propertypane/style.css">
    <p>
        <input name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ContentArea$ProfileEditor_3$UpdateButton" value="Update Profile" onclick="javascript:return confirm('Are you sure you wish to update your profile?');" id="ContentPlaceHolderDefault_ContentArea_ProfileEditor_3_UpdateButton" type="submit">
    
    </p>
    <div id="ContentPlaceHolderDefault_ContentArea_ProfileEditor_3_tabpagecontainer" class="tabpagecontainer">
        There are no settings available for your profile
    </div>
    
    </form>
    
    

    Can you spot any more errors ?

  • Daniel Bardi 927 posts 2562 karma points
    Sep 30, 2010 @ 11:42
    Daniel Bardi
    0

    Is the node secured?

    Here's my web.config:

        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">

          <providers>

            <clear />

            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />

            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />

          </providers>

        </membership>

        <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" />

          </properties>

        </profile>

  • Daniel Bardi 927 posts 2562 karma points
    Jan 19, 2011 @ 12:14
    Daniel Bardi
    0

    Currently properties need to be on a tab other than General Properties.

    Create a new tab and move properties to it, then try again.

    Be sure to check to show properties.

  • Robert 1 post 21 karma points
    Jul 31, 2012 @ 18:39
    Robert
    0
    Dear Daniel,
    I am using Profile Editor Macro to create members with details like first name,second name email etc.
    I am experienced 2 problems.
    1)First name and second name fields get cleared once Update Profile button is pressed.I have  checked out the "Member can edit" option and I know  from your comments in our.umbraco.org that this is the reason of the problem ,but I do not want the users to change these fields.
    2.No change of fields content in Properties tab is reflected nor on Profile tab in Umbraco nor on website.
    Could you please tell me how to fix these problems?
    kind regards
    Robert
Please Sign in or register to post replies

Write your reply to:

Draft