Hi,

I am trying to create a custom registration with profile2, I tried using custom module and I managed to alter the user register and then I have difficulties in getting the profile2 form to work as step2 as step1 I only inquire username and email.

Is there any help here?

thank you

Comments

monsoon’s picture

I have same issue. I was never able to manage steps with profile 2 and Multisteps module.
After filling the first step i.e. user registration info etc., next steps still contains user registration form on top. Don't know how to get rid off.
Waiting for someone to bring any solution.
Thanks,

gskharmujai’s picture

Issue summary: View changes

i just implemented this solution last week.

Multi-Step Registration module works out of the box with profile 2 and all we need to do is assign the profile type to a particular step.

eudaemonia’s picture

When I tried to implement this (profile 2 + multi-step registration), I ran into an access error after the first step that stops the user from completing the remaining steps. I checked permissions (anonymous users are allowed to create profiles of the type they're currently being denied) and I tried disabling logintoboggan, but nothing changed. Account settings currently allow visitors to create accounts without waiting for any kind of verification or approval. What am I missing?

gskharmujai’s picture

I tried to replicated your error and what i found out is that you will get an Access Denied error when the following options are enabled :

1. Register without Administrator Approval - which you have enabled.
2. Allow Immediate Login - from Logintoboggan
3. Set password - from Logintoboggan

This issue arises from the function step_access which verifies that the user who can register has to be an anonymous user but in this case, after the 1st step, you are already logged in and thus step_access function returns FALSE and hence you get that Access Denied error.

function step_access($step = STEP_REGISTER) {  
  global $user;

  // Registration is available only for anonymous.
  if (!empty($user->uid)) {
    return FALSE;
  }

  // Get the registration process cache.
  $cache = StepCache::get('data');

  return !empty($cache['uid']);
}

Maybe you can fix this by disabling Set password in logintoboggan.