This topic is locked

Custom Registration Pages

5/28/2013 2:02:13 PM
PHPRunner General questions
D
DouglasB author

I need 3 different registrations. One for the general public, one for current contractors and one for new contractors. phpRunner it seems can only support 1 registration page (http://www.asprunner.com/forums/topic/20823-custom-view-of-registration-page/pagehlregistration%20pagesfromsearch1). Has anyone come up with a usable work around for this? I'm thinking perhaps, 3 different projects each with their own registration page but all attached to the same DB?

  1. People go to a webpage and click a button for the type of registrant they are: General Public | Current Contractor | New Contractor

    General Public takes them to a separate phpRunner project attached to the main DB and collects the bear minimum info.

    Current Contractor takes them to a separate phpRunner project attached to the main DB and collects the contractor's current info.

    New Contractor takes them to a separate phpRunner project attached to the main DB and collects the full contractor info.
    General Public would allow immediate access to the Project show limited views.

    Current Contractor would general an email to the ADMIN who would approve the registration, assign a user group for permissions and send an email to the Registrant with a link to access the Project with access to full views and reporting.

    New Contractor would general an email to the ADMIN who would approve the registration, assign a user group for permissions and send an email to the Registrant with a link to access the Project with access to full views and reporting.
    Does this make sense or am I making it too complex.
    DouglasB

C
cgphp 5/28/2013

You could use a single registration page with a dropdown field with the "General Public", "Current Contractor" and "New Contractor" values. As Sergey said in the thread above, if your registration forms are similar and the only difference is the number of fields to fill you can get away with a single registration form hiding some fields when necessary.

D
DouglasB author 5/28/2013



You could use a single registration page with a dropdown field with the "General Public", "Current Contractor" and "New Contractor" values. As Sergey said in the thread above, if your registration forms are similar and the only difference is the number of fields to fill you can get away with a single registration form hiding some fields when necessary.


Cristian,
I did look at that but was unable to get it to work. Will contact you via PM.

Sergey Kornilov admin 5/28/2013

Just wanted to point that the matter of hiding certain fields on Register page is a relatively simple topic:

http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm

D
DouglasB author 5/28/2013



Just wanted to point that the matter of hiding certain fields on Register page is a relatively simple topic:

http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm


Absolute Sergey. And this works BTW. Remember we use it extensively for the Gainco Calendar and Scheduler projects. BUT I can not seem to make it work with a registration page. On the registration page the user level is not yet set nor do they have a login yet. In order to hide the fields the user level and id need to be called but in registration these are not yet set. Or am I being an idiot again?

Sergey Kornilov admin 5/28/2013

Of course user level is not defined there, this is just an example of how you can hide controls. It's up to you what sort of logic to use in order to hide controls.
You can, for instance, pass some sort of parameter via URL, each registration page will have it's own parameter like register.php?param=public or register.php?param=new. Then in your code you can use something like

$xt->assign("Horsepower_fieldblock", $_GET["param"]=="new");