Add/Change user information

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.
3/31/2010 4:04:05 PM
Gravatar
Total Posts 8

Add/Change user information

Hi All

I'm quite new using MojoPortal, but from what I've seen, this tool is amazing, even better than WordPress.

Now, I'm using MojoPortal to rebuild the company Intranet, starting from HR.

The biggest problem I'm having right now is that I need to change/add new information fields for each user.

Can somebody tell me which classes I need to modify in order to change/add new user information fields?

 

Thanks in advance

 

David E.

3/31/2010 4:09:37 PM
Gravatar
Total Posts 18439

Re: Add/Change user information

Hi David,

I recommend you never modify any mojoportal code, if you do that you will be creating a fork and it will be difficult to ever upgrade without losing your changes.

We do have a customizable user profile system that allows defining user properties with xml configuration

http://www.mojoportal.com/userprofileconfiguration.aspx

Hope it helps,

Joe

3/31/2010 4:46:01 PM
Gravatar
Total Posts 8

Re: Add/Change user information

Hi Joe

Thanks for the quick response. I've checked the URL you gave me, and seems of great help, but, what about the DB fields of the User table? will it add the new rows on the table?

Also, I know that doing a change on the code will create a fork, but in my case, I think there's no way to avoid that (still I'll do my very best of avoiding that).

For the work I need to do, I need to create a separate DB, and one of the tables will contain the employee information of the company, that table will be linked to other tables, and all that information needs to be displayed as part of the employee information in the Users window.

What would be your recomentation for this, do you think there's a way of doing that without doing major changes on the source code?

 

Thanks

 

David E.

 

4/1/2010 9:53:02 AM
Gravatar
Total Posts 18439

Re: Add/Change user information

Hi David,

Custom profile properties are stored as key value pairs in the mp_UserProperties table except for some that are mapped to the mp_Users table because they existed there before we implemented the user profile system.

All your custom code, pages, user controls should exist in your own custom projects, and use post build events to copy them up to Web.

I recommend watching my in progress series of developer training videos.

The most drastic solution would be to implement your own profile page and overwrite the existing one on post build with your custom one, but then the burden would be on you to maintain it.

Probably what I would do is either encapsulate the employee info in a UserControl that implements ISettingControl or make a separate page for your employee info and just link to it from the user profile using a UserControl. The ISettingControl interface has a very simple implementation and allows you to add the control to the page even if you are not really using the simple setting, you could just hard code a string for the get and set of the setting and just use it as way to get your control onto the profile page.

You should store your employee data in your own table and store either UserID or UserGuid or both in your table along with your other fields and encapsulate the whole thing as an EmployeeInfo class/object that you can retireve from code using the UserId or UserGuid

Hope it helps,

Joe

4/1/2010 10:04:14 AM
Gravatar
Total Posts 8

Re: Add/Change user information

Hi Joe

Thanks a lot for those GREAT pointers you gave me, I'll give it a try, and hope it works for the best! :D

 

Thanks for the help

 

David E.

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