I am using v5.5 and my question is how to guide the users to another page rather to the account after login?
Unfortunately, I can not find the setting for this.

I already use the "Advanced front page settings" module, which is changing the standard front page, but not the page after the login. Or did I something wrong with the module?

I tried already the different types like redirect, full, etc. but without any success. Additionally, I can not find something in this forum.

Any help please

Comments

danaktivix’s picture

http://drupal.org/node/202271

Hey there

I wanted to same functionality, so I've had a go at adding to the login destination module to make a 'login and registration destination module'. (It seems like someone else must have done this, so we both might find this is waste of time...!)

I've had some success - with caveats. First the good news: if you first install the above module, then replace the login_destination.module file with my altered version (downloadable from here), you'll find extra options in the admin page. (It's under admin/user/login_destination and under the 'user management' section of the admin page.) You can now choose to 'always' redirect to a url after someone has created a new account, or use a php snippet as described in the above module's page (though I haven't yet tested this for registration, indeed without a $user object I'm not sure what you could do!)

The problem: whilst this does write a new user to the database, it doesn't log them in automatically. You're taken to your chosen page, but not logged in. That's fine for me currently because I want my users to get admin approval before using their account. But ideally, there should be an option to log people in - or just use the site's default, since we could presume that 'admin approval' = you don't want them logged in.

Sadly, after some struggle, I can't work out how to do this. I'm using the 'insert' operation in hook_user, but I can't find this in user.module to work out what I might be able to do...

Anyone got any ideas? I need to

1. Call 'insert' (which is when a new account is being made)
2. Go to a specific url
3. Be logged in, if user settings are for immediate log-in rather than admin approval

I reckon this will probably be really easy, but I haven't got a clue!

Anyway, hope that'll keep you going.

Dan

RaRi’s picture

... somehow front_page is not working correctly within v5.5, I assume.

beauz’s picture

I am looking for this functionality - i have tried the login redirect module with drupal6 however I can't get it working....