Adding Custom Profile Properties to Active Social
11 Feb 2010 04:58 PM

    Adding Profile Properties

    A lot of sites require custom profile properties. Active Social will automatically detect new entries in the DNN profile properties, and display them in profiles and the sign up wizard. This guide assumes you have read the entire Active Social administration document.

    1. In this example I will add two different types of properties to the profile. One will be a required check box, making sure that a person agrees to the site terms. The other will be a text box to display a persons favorite drink.
    2. Adding profile properties to DNN is a very easy process. Go to the Admin -> Users page and click Manage Profile Properties.
    3. Here you will see a list of all the profile properties. Click Add New Profile Property.
    4. First we will add the text field.
      • The name should be a description of the property.
      • The data type will be Text in this example. You can choose a different data type for different properties. Obviously some data types do not make sense for certain properties. The Unknown data type is not supported.
      • The Property Category can be any value you choose, however if you enter a preexisting category, it will be added to the profile and sign-up wizard automatically.
      Click Next when you are finished.
    5. This page allows you to enter a localized name for the property. It allows you to format the text with spaces. Make sure you click Save Localized Text, and then click Return to Profile Properties List.
    6. You can now see the new property in the list. You can use the orange arrow to change the order of the list, moving the new property down. It is best if you group all the properties of the same category together. In this example, I clicked the arrow until FavoriteDrink was down with the other "About Me" properties.
    7. Now we will add our checkbox to ensure that users have read the site terms of agreement. Click Add New Profile Property again.
    8. This step is just like before, except I have checked the "Required" box. This means that the user has to check the box before the can continue to the next step of the registration wizard. Notice I have also entered a verification value, this means that the checkbox will have to be checked in order to save the profile or register for the site.
    9. Click Next, then enter the localized information. Make sure you click Save Localized Text, then click return.
    10. The Active Social sign up wizard will display the new profile field automatically for properties in a pre-existing category. You can also see the catagory in the user's profile.
    11. To get the new required property to be displayed will take a bit more work. Since it belongs to a category that we just created. We will need to edit the Sign Up template. Before you attempte this step you must read the guide on creating a custom theme. It is located in the knowledge base. You will need to create a new theme with a copy of the SignUp.ascx template. After you have done that, add the code I have highlighted here.
    12. After you save and apply the new theme, the Sign Up view will display the new check box. This example assumes that you have actually provided another method to display the site terms of agreement to the user.
    13. If the new user tries to click Next without checking the box, it displays an alert.
    14. Use the same process to add other profile properties. If you need to create a new category of properties, you can add it to the custom theme's sign up template. I would suggest adding it to one of the other steps, not to the first page.
    You are not authorized to post a reply.
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy