I originally posted this against the rolesignup module (http://drupal.org/node/134884) and i have modded that module to allow for role by role signup process settings (i.e. admin approved, validation email, etc).. but as i am using logintobbogan i can see that it does the validation rather than let the user.module do it
so, i think dueto lack of hooks, it would be necessary to mod the LT module as well to get this to all work... but i need it.. so i will keep looking.
as it is i have modded the LT module to check the role specific "user_register" variable; and it now puts out the correct msg depending on role... but will have to make a few more changes yet as it still is only doing the actual msg part there - not the "immediate login" part.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | rolesignup.patch | 1019 bytes | jody lynn |
| #4 | rolesignup.txt | 83 KB | liquidcms |
Comments
Comment #1
liquidcms commentedwell i have got it all working as i needed; but can't imagine this is something that would get patched into LT module.. but if anyone else has a need for what i am doing; feel free to get in touch with me.
basically i modded modules:
rolesignup now has role based settings for admin approval, validation email, auto register as with std user.module
and i re-wrote some of the LT's register function to support this
basically rather than have the reg_pass_set var be the overriding var i made in whether the user requires admin approval or not.
so, in my case i have 2 roles: member and company
- both can provide their own password
- member gets autologged in as authenticated (but because of the rolesignup module they are also alerady in the member role)
- when someone registers as company; they are not logged in (even though LT setting states this) since the new rolesignup setting states they need admin approval.
all the appropriate email get sent and the status is set correctly.. seems to work pretty well.
Comment #2
hunmonk commentedno patch has been forthcoming, and this seems a bit to specific an integration to be included in the module.
Comment #3
Veggieryan commentedHello there,
I am working on a project that needs this exact integration.
can you post you code here as a txt file or patch?
or contact me in my profile and send as text there?
I think this is very needed. as is, the two modules just break each other.
thanks!
ryan.
www.thefractal.org
Comment #4
liquidcms commentedHere ya go.
NOTE: i cant post a ZIP file here... so i renamed it.txt - you likely need to rename it after d/l to .zip
Comment #5
jody lynnI think this is what ptalindstrom was driving at. Logintobaggon breaks rolesignup.module's functionality- attached patch is working for me.
Comment #6
hunmonk commenteda patch this module-specific won't be included in any official releases of logintoboggan.