Hi guys,

Was just wondering if it would be possible to add such a feature to Logintobbogan (it seems like a natural extension to the 'preauthenticated' role logintobbogan allows for now)?

Basically, the feature would allow the admins to configure default roles based on the fields available on their registration form - essentially just a bunch of case statements. Something along the lines of : if $profile['gender']=="female" then set user role = 'female'. etc etc

The UI would allow the admin to select the registration field an then check off all user roles that should be set based on this condition.

AFAIK there isn't a module exist that allows this, though I see an old discussion here.

Any thoughts if this is possible?

Thanks!

Comments

GreyHawk’s picture

Looks like a combination of options from here and from the autoassign role module (specifically related, perhaps, to this development thread).

I'm looking for a variant of it -- provide two (or more) links on the default homepage for anonymous users to click in order to register as a specific type of user. It take the role selection out of the user registration portion and precedes the signup, so the new user would register as a specific role based on the link they click.

Might be nice to integrate the profile percentage complete module with any/all results, too.

(My comment on the auto-assign role reg code thread is here.)

GreyHawk’s picture

New potentially useful info for you, tho it still isn't exactly what you're looking for:

On a site I'm working on with another site developer, we've integrated auto-assign role and role theme switcher with login toboggan, and also manipulate which blocks show up based on role and theme.

This gives us a little more flexibility -- the user still has to select what role that s/he is signing up for, but after completing the initial signup (protected from spam via CAPTCHA) the user gets auto-logged into the correct theme and profile and deposited to a "next step" page via login toboggan. All users regardless of role hit the page, so to target user (role) specific information to the correct parties, we create blocks that only show on that page, and each block is differentiated by role.

The theme itself is effectively duplicated three times (slight name variants) and only the default logo changes to help the user (and admin) realize that the user is now logged in under a specific role.

Still need to get pageroute to work to get the other nodes completed that require updating, tho. :/ For some reason, it's only serving up the first page and not moving on from there, so it's effectively useless for us. :(

hunmonk’s picture

Status: Active » Closed (won't fix)

as i've said in many other threads, i don't want logintoboggan to become a behemoth full of everybody's wishlist for login features. i'm pretty happy with the current feature set.

i'm much more interested in allowing other modules to leverage logintoboggan as they need, so if there are any specific API changes that would help that process, please feel free to open new issues to address them.