New registration page

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.
5/10/2011 5:53:32 AM
Gravatar
Total Posts 8

New registration page

Hi Joe, I would develop a new registration page that allow save some data in a custom table (created by me) different from mp_Users or mp_UserProperties.

Is it possibile?

Thanks in advance.

Alessandro

5/10/2011 9:38:19 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: New registration page

Yes. Clone the delivered registration page, make your custom mods to the new one, and point your site to the new page through user.config, as documented in web.config:

    <!-- this key makes the Register link point to a custom registration page. leave blank to use the built in registration page.
    <add key="CustomRegistrationPage" value="/path/to/your/customregistration.aspx"/>
    Set RedirectRegistrationPageToCustomPage to true to force a redirect from the built in registration page to the custom url
    -->
    <add key="CustomRegistrationPage" value=""/>
    <add key="RedirectRegistrationPageToCustomPage" value="false"/>
 

5/10/2011 11:05:35 AM
Gravatar
Total Posts 8

Re: New registration page

So I don't modify SiteUser class and/or DBSiteUser (mojoPortal.Data) and/or another class.

5/10/2011 11:41:09 AM
Gravatar
Total Posts 18439

Re: New registration page

No, you should not modify any mojoPortal code, you should avoid forking the code.

If you plugin your own custom registration page and you want to update your own table then you should create your own business/data classes for your custom table and store also the UserGuid or UserID to relate it to the mojoportal user. Then you retrieve both the SiteUser and your custom object based on the UserGuid or UserID and update your object separately.

5/12/2011 3:33:42 AM
Gravatar
Total Posts 8

Re: New registration page

Thank you very much, I will try

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