Adding properties to user profile

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/7/2010 4:06:08 PM
Gravatar
Total Posts 2

Adding properties to user profile

I've read the doc page on user profile properties, and create my own profile file and added a property to it like it says. However, my property doesn't appear anywhere in the actual site. Do i need to edit the various .aspx files to include my property, or is it supposed to appear automagically? 

The only thing I did different from the docs was where I put the config entry for the profile file... i added it to web.config instead of creating a new user.config... does this matter?

11/8/2010 1:54:10 PM
Gravatar
Total Posts 18439

Re: Adding properties to user profile

Make sure you specified the path correctly in your setting, maybe you should post what your setting looks like as well as how you declared your custom property. Without seeing it, it is difficult to diagnose whether you did it correctly or not.

You might also look in the log under Administration > System Log to see if it is logging any errors related to your custom property configuration.

Best,

Joe

11/8/2010 4:52:38 PM
Gravatar
Total Posts 2

Re: Adding properties to user profile

here's the setting:

  <add name="DeviceID1"
    type="System.String"
    allowMarkup="false"
    labelResourceKey="DeviceID 1"
    lazyLoad="false"
    requiredForRegistration="false"
    allowAnonymous="false"
    visibleToAnonymous="false"
    visibleToAuthenticated="true"
    visibleToUser="true"
    editableByUser="true"
    regexValidationExpression=""
    regexValidationErrorResourceKey=""
    maxLength="255"
    rows="1"
    columns="50"
    onlyAvailableForRoles=""
    onlyVisibleForRoles=""
    includeHelpLink="false"
      />

i added it at the end of my CustomProfile.config, after signature and before the commented samples. 

and here's my user.config:

<?xml version="1.0" encoding="utf-8"?>
<appSettings>
  <add key="mojoProfileConfigFileName" value="CustomProfile.config" />
  <add key="MySqlConnectionString" .../>
</appSettings>
 

might this have something to do with running on mono? and you don't have to repeat the reasons why not to use mono, i've read them. considering switching if i find something that fits my needs. also considering working on mojo/mono to see if i can improve things... either by fixing mojo, or contributing fixes to mono. :)

thanx for your help and for a great product. 

brian

11/9/2010 6:22:39 AM
Gravatar
Total Posts 18439

Re: Adding properties to user profile

Hi Brian,

It might be a Mono issue and I would certainly welcome any help in diagnosing and reporting Mono bugs to the Mono team. With enough help it is possible that things will get much better on Mono and I will feel better about recommending it. 

However, I'm not sure, it might also be a problem to have a space in the labelResourceKey, I would try removing the space and see if it changes anything.

The expected result is for it to show the property on the Profile Tab under My Account and also on the manage user page that admins can get to from the member list. It should also appear on the ProfileView.aspx page if the user viewing the page is authenticated.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.