[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1557
  • Last Modified:

Redirect new users to custom pages after registration

Hi experts,

I was wondering,

Is there a way to redirect users to a custom welcome page after registering to the site?

Thanks in advance
0
glepiza
Asked:
glepiza
1 Solution
 
junipllcCommented:
How deep do you want to get into Drupal? That is, it's really simple to do in code (i.e. a custom module).

Here's a discussion about how to do it in code:

https://drupal.org/comment/7098414#comment-7098414

Note the code is basically implementing hook_form_alter to call a function that adds a redirect to the form. Just change the destination to what you want, change each instance of the string "custom" to the name of your module, and voila! it should work. For example my_module_form_alter instead of custom_form_alter if your module is called my_module.

It's also most likely easy to accomplish using Rules. The Rules module is pretty hefty for such a small thing so I personally wouldn't enable it just to get this to happen, but if you're already using it then go for it.

I'm assuming that you're using Drupal 7, although the concept is the same. In fact, I think the code may be the same as well for Drupal 6.

Cheers,

Mike
0
 
glepizaAuthor Commented:
Hi Mike!,


Thank you very much. I am using rules right now, but your link is great for just what I need.

Thanks,

Winter
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now