harsh deshmukh
asked 10 years ago

Hi There,
I am running a health care website. where both patient and doctors are allowed to register.
Here I want to register doctors by special link and should be available with different role.
Patients can use default registration and login pages/links.
Is this possible to achieve using any technique. However I went through below. But I did not find a great way to achieve my requirements. 
http://wordpress.stackexchange.com/questions/15954/separate-registration-and-login-for-different-roles
http://wordpress.org/support/topic/wp-members-different-registration-forms-profiles-fields-for-different-roles?replies=4

Regards,
Harsh

harsh deshmukh
replied 10 years ago

I have come across below plugin as well.

http://wordpress.org/plugins/reglevel/

Regards,
Harsh

well wisher
replied 10 years ago

this seems a great option.

well wisher
replied 10 years ago

however i am afraid none of them do exactly what you want but you can create different registration forms by using these plugins and place them on two different pages using shorcodes then set up a page for registration with two columns one asking are you a doctor? and other are you a patient? and drop links to the respective user registration pages you set earlier

Adi Spiac
replied 10 years ago

Have a look into the Multiple Registration Forms module from Profile Builder, it’s can help with all your requirements: http://www.cozmoslabs.com/docs/profile-builder-2/modules/multiple-registration-forms/

mark De Agrella
replied 9 years ago

Too Expensive

5 Answers
well wisher
answered 10 years ago

Hi harsh i see your requirement its like job portal thing different logins and registrations for recruiters and job seekers i think you should try this http://wordpress.org/plugins/membership/ and premium for the same https://premium.wpmudev.org/project/membership/ and this one seems much closer to your reqirement http://wordpress.org/plugins/s2member/ 

harsh deshmukh
answered 10 years ago

Hi All,
 
Thanks for looking into my issue. I am going for wp-members plugin.
I am trying to use defaut login/sign up for patients and wp-members sign up and login for Doctors.
Thanks.
 
 

well wisher
replied 10 years ago

thats great please do provide info after testing and using the same whether it resolved your issue or not coz i am myself very keen to have this kinda feature with simple installation thanks

harsh deshmukh
replied 10 years ago

Hi Well wisher,

Here we go 🙂

Please check below ink of my test site.

Doctor’s Sign Up.
http://harsh031.0fees.net/doctors-sign-up/

Doctor’s Login.
http://harsh031.0fees.net/profie/

But I am not happy with the appearance of each fields i.e username in registration form. I want to see it bit longer. Any one out there who can work upon If I provide them them the css file.

Regards,
Harsh

harsh deshmukh
replied 10 years ago

One more thing. Here both users Doctor's and Patients Login and registration details are going in same table.

For better distinction it should store in another table so that we can distinguish among the doctor and patients for better login and password reset feature.

I have started a thread here on plugin support forum.

well wisher
replied 10 years ago

Hi harsh the work seems to look fine plus regarding the size of the username box the size can be changed by twi ways have a look here http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_size just change the value in size field and click submit to have an idea
The other way is set the width in css inspect the class of the element and add width=whatever_value px; this will change the size of the username filed

harsh deshmukh
replied 10 years ago

We have below details can you please give a idea how we can add the custom CSS in my theme to increase the length of username field.

below is the source code of harsh031.0fees.net/doctors-sign-up/

<div id="wpmem_reg"><a name="register"></a><form name="form" method="post" action="http://harsh031.0fees.net/doctors-sign-up/&quot; id="" class="form"><fieldset><legend>New User Registration</legend><label for="username" class="text">Choose a Username<font class="req">*</font></label><div class="div_text"><input name="log" type="text" id="log" value="" class="username" /></div>

Regards,
Harsh

well wisher
replied 10 years ago

its the last one: <input name="log" type="text" id="log" value="" class="username" /> add an "size" attribute to it should then look like this
<input name="log" type="text" id="log" value="" class="username" size="n"/>
where n can be any numerical value like for eg: id you want n=100 then do this
<input name="log" type="text" id="log" value="" class="username" size="100"/>

harsh deshmukh
replied 10 years ago

Thanks A lot well wisher.

I added below codes in my theme CSS.

#wpmem_reg .username{
margin: 6px 0 0 0;
width: 30%;
}
#wpmem_reg .textbox{
margin: 6px 0 0 0;
width: 30%;
}

Regards,
Harsh

harsh deshmukh
replied 10 years ago

But My New Milestone is..

I want to give author role to all my doctor's. And Only doctors are supposed to login through this login page.

To achieve it I need to validate the username's whether they are author are not, for each entry in the login form. If Not we should get an pop up message.

Please suggest if you have any idea how we can achieve this…???

we have wp_authenticate_username_password function.

well wisher
replied 10 years ago

i think assigning the role alone should solve your problem as when a user is singing in he/she is using the username ans pass combo if the logged in member is doctor he will have the permissions else he/she will have the default user role,until and unless you need to assign the role at the time of signup by default i dont see any need for validation

well wisher
replied 10 years ago

the thing i am trying to say is just keep two registration pages but only one login affter login doctors get doctors role and others get default role

harsh deshmukh
replied 10 years ago

Hi well wisher,

For Time being I have thought to give the permission as author manually.

However I have created two links one will be using default sign up form and another will be wp-members.

Problem here is I can not restrict the profile field available in back end(dashboard profile). As all the fields created by wp-member is available for both doctors and patients in their profile.

Any way I have hide all the back-end info. A user can not access his/her wp-dashboard( I used Remove Dashboard Access plugin).

You can visit below link for more clarification of my work.

http://harsh031.0fees.net/test/

well wisher
replied 10 years ago

you can use theme my login plugin for that purpose it works great i myself use it on my site 🙂

DominicStaff
answered 10 years ago

Hi, 
Just want to follow up on your question, let us know if there is anything else we could help.
Regards,

harsh deshmukh
answered 10 years ago

Hi Dominic,
Thanks.
Curreently I am facing below issues.
http://wordpress.org/support/topic/acoount-activation-emails-are-going-to-spam-folder?replies=3#post-5439308
If possible can you please check my site.
I can  email my web account details.

@well wisher. theme my login is not working for my site. I am getting CSS issue and all.
I am using wp-members as I have discussed above. But Now all my emails including account activation are going to spam folder.

Regards,
Harsh 

DominicStaff
answered 10 years ago

Hi Hash !
Regarding your issue with the WP-Members plugin, please contact with author of plugin to get help.
Regards,

Adi Spiac
answered 10 years ago

Hi Dash,
This can be easily achieved using the Multiple Registration Forms module from Profile Builder.
It provides an intuitive UI for setting up multiple user registration forms with different fields for different types of users (user roles).
Here’s a short tutorial we wrote on how to set up multiple user registration forms

Powered by DW Question & Answer Pro