This topic is locked

Custom View Of Registration Page

3/24/2013 2:24:46 PM
PHPRunner General questions
T
Tayyab Ilyas author

Hi,
I have a registration table where agents & clients register using same information accept 2-3 fields.

My user name and password is in same table.
Now i dont want to show 2-3 fields to agent but want to show those fields to client. How can i achieve this using PHPRunnger registration form.
Is there any way to create a custom view of registration form?
Thanks in advance.

Sergey Kornilov admin 3/25/2013

Yes, you can create a custom view of the login table and point your users there.

T
Tayyab Ilyas author 3/26/2013

But this will not resolve my issues, i want to use registration features i.e password reconfirmation, email sending once new user get registration, password forget option etc.

Sergey Kornilov admin 3/26/2013

PHPRunner is only allows you to have one registration page per project. If you want to add second, custom registration page you need to implement those features manually. Password reminder will work the same way though as both registration pages use the same login table.
Just a thought - 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. Take a look at this example for inspiration:

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

T
Tayyab Ilyas author 4/16/2013

Hi Thanks for your support.
I have reviewed the given link but the problem is that hide control will work after the user login so that we can use if statement to check the user type but here i want to get user registered...
I want to achieve following:
I have a role column in user table which defines access of agent and client users.
When some register as agent it should save agent in the role field
When some register as client it should save client in the role field and for client users i need a checkbox to agree terms and condition and the can only create account if they agree with terms.
Can you please guide me how to achieve this ...
Thanks in advance