0

I need to display a modal login and registration form if a user accesses a particular page.

On the registration form, I need to collect a phone number.

I need to show the hybridauth login on the form as well. Is there a solution, or compatible modules to make this solution?

It's a common login/registration solution, so I'd think Drupal has this already.

1
+100

Yes, this has a common solution with preexisting modules. Here's the summary with your 3 requirements:

  • Forcing capture of telephone on registration:
  • Hybridauth Social Login:
    • After enabling the module, and installing the libraries to the sites/all/libraries directory, configure each social network and set your other login options accordingly.
  • Modal Popup:
    • The Modal Forms module enables popup modals for the both the user/login & user/register paths. The popup presents the same login form as you see in Drupal so it will contain the HybridAuth login elements as well. The module lets you configure modal popups on a per-page basis so you can choose the pages where you want login/registration presented as modal form.
  • This looks like it will be the solution. Any idea how I can prompt the login based on some custom logic? – vintorg Jun 24 '16 at 15:18
  • You could probably trigger a jQuery click event for the rewritten user/login menu path, if you're wanting to do this on the front end. – Shawn Conn Jun 24 '16 at 16:34
0

You could use webform & webform rules to create a user with more details than the standard registration page.

For HybridAuth-- would this be the module you're looking for? https://www.drupal.org/project/hybridauth

  • I already know the hybridauth module. I need to be able to use it in a modal form. – vintorg Jun 23 '16 at 17:29
  • Than this won't help you much, will it. Sorry – naomisl Jun 23 '16 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.