User profile again

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.
10/28/2009 5:33:50 PM
Gravatar
Total Posts 37

User profile again

I have noticed several things about the extensible user profile system and have some questions about it:

  • I created a new field Phone like below in mojoProfile.config based on Signature field. Now the thing is that the field Signature is in mp_users table even thought it is declared in the same way as my field and my field is in mp_userproperties table.                                      

<add name="Phone"

type="System.String"

allowMarkup="true"

labelResourceKey="PhoneLabel"

lazyLoad="false"

requiredForRegistration="false"

allowAnonymous="true"

visibleToAnonymous="true"

visibleToAuthenticated="true"

visibleToUser="true"

editableByUser="true"

regexValidationExpression=""

regexValidationErrorResourceKey=""

maxLength="255"

rows="1"

columns="50"

onlyAvailableForRoles=""

onlyVisibleForRoles=""

includeHelpLink="true"

/>

 

  • If I can't use mojoProfile.config to create a new property in mp_users what would be the steps to create it in mp_users in code. And yes it has to be in mp_users due to performance.
  • When I added the above mentioned Phone property it was visible in "editable" user profile (/Secure/UserProfile.aspx) and it wasn't visible in public profile (strony/ProfileView.aspx?userid=xxx) either for authenticated or anonymous users even thought I set up visibleToAnonymous="true" and visibleToAuthenticated="true". Is it a bug?
  • And the last question. Is it possible to create two registration pages for two different kind of users? One user would have more input fields that the other on registration page.

I have today's code from trunk.

Thank you,

Przemek

 

 

10/29/2009 5:54:44 PM
Gravatar
Total Posts 18439

Re: User profile again

Could be a database specific bug, what db platform? I will look into it tomorrow and see if I can replicate it. For a phone number I would set allowMarkup="false" but that should not affect it being displayed I don't think.

Best,

Joe

10/29/2009 5:57:42 PM
Gravatar
Total Posts 37

Re: User profile again

DB is postgres.

 

Thanks,

P.

10/30/2009 3:07:59 PM
Gravatar
Total Posts 18439

Re: User profile again

Hi Przemek,

It is a bug, I tried adding your setting on my local machine using MS SQL (its not a db specific issue), and got the same result.

The problem was if the user property had never been saved it did not display the property, the fix was to show the default value in that case.

So, in other words if you save the user profile after adding the setting it shows up on ProfileView.aspx but if you never saved it yet then the user property is null and it was not showing anything.

I have fixed my copy and will have it fixed in svn trunk soon.

Best,

Joe

11/23/2009 7:32:39 PM
Gravatar
Total Posts 70

Re: User profile again

Hi there Przemek !!!

Just wondering if you could find a solution for having two kind of users with two different registration forms .... (I have the same issue here :)

Also, I need to create a "Default Page" for the user as soon as his registration get's validated. Any sugestion or direction? 

Thanks !!!

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