User creation: making a switchboard for subsequent profile creation?
bbinkovitz - March 15, 2008 - 01:04
I'm running a site on Drupal 5.
After I create a new user, I want to go to a page (that I create) instead of just going back to a new "create user" template. I'd like to also be able to use the newly-created UID in links on this page. Any idea on how to do this?
Thanks!

Is this when an admin
Is this when an admin creates a user or when you have an anon user register for the site?
If this is just a anon user registering, check out LoginToboggan. It allows you to setup where to redirect upon user creation. On top of that, it has other more powerful user registration features like allowing users to log in using their email address.
http://drupal.org/project/logintoboggan
If this is when an admin creates a user, you can use the hook_form_alter function to inject a $form['#redirect'] = 'some_url'; into the admin user creation form.
Thanks, baldwinlouie.
Thanks, baldwinlouie. Unfortunately injecting the
#redirectdoesn't work for us, because the newly-created-user's UID isn't known when the form is being generated... So we can't construct urls specific to that new user.I ended up solving this by adding a new hook_user, called after the user is inserted (and thus the UID is known). I just published this as a module and core patch --- http://drupal.org/project/userregisterredirect .
--
Steve Mokris
Kosada Incorporated