How to edit registration/lost password forms?
amandawolfe - June 22, 2008 - 05:13
| Project: | Form Defaults |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
So this might be a really stupid question, but... How do you edit the user registration and lost password forms? Those are ones I'm most interested in changing (some really random information included with the fields that's just noise.) The problem is that when you're logged in as admin, you can't see those forms. But if you log out, you lose the capability to edit. I tried adding permissions to edit even for anonymous users (temporarily of course!) but that didn't work either.
Anyhow, your help would be sincerely appreciated--I was so excited to stumble on this module after wrestling with unruly forms all night. (literally). Thanks!

#1
Because session variables aren't viable in the anonymous user case, we've been having trouble with this.
See http://drupal.org/node/239691 for further explanation.
I haven't come up with any brilliant work arounds yet. Open to ideas.
Dave
#2
Thanks for answering! I didn't think there was a solution, but I thought I'd ask because most of the time with Drupal when I think it can't be done I'm really just being obtuse and/or don't know enough. :) I doubt I'll be much help, but I'll certainly think about it because I'd love to be able to take advantage of this awesome feature.
Thanks again, Amanda
#3
If I understand it correctly, here you
find a workaround for D4 and D6
If you can provide a patch for D5
also, please post it there.
http://drupal.org/node/118498
#4
This is easily accomplished with the registration form, as long as you are willing to hack core for the short period of time necessary to edit the form.
In user.module (D6), look for:
function user_register_access() {return user_is_anonymous() && variable_get('user_register', 1);
}
Change to:
function user_register_access() {return variable_get('user_register', 1);
}
Enable the Form Defaults editor and navigate to user/register. Make your changes and then change user.module back to its original condition.
I've not figured out yet what to change for user/login or user/password.