I've got a site that I want to be available only for members. I'm trying to make the site work so that when someone arrives, they see my custom "welcome" message and the login block. After they login, I would like them to end up at /node/.

My setup so far: 4.6.3
Anonymous users have no priviledges.
Authenticated users have read/comment priviledges.

I'm using the customerror module to show my custom 403 page. When the user logs in, she stays on that custom page and must click "Home" to go to "node". I would prefer to redirect new logins directly to "node".

Research and attempted fixes:
I've seen a few discussions in the forums about login and redirects, but they're mostly aimed at getting rid of the login block or redirecting to other websites.

I tried loading the front_page module, but I couldn't get that to do anything.

I also looked through the user.module and found the drupal_goto() call, but I wasn't sure what to put between the parentheses. I tried 'node' and "node/" but that didn't work.

My tech level: I'm comfortable with code, but I don't know PHP yet; complex programming solutions aren't ideal. :)

Any advice?

ps> I'm not tied to the customerror solution for anonymous users, it was just the easiest thing I could figure out.

Comments

briley’s picture

I tried the front_page module again and that worked. I must have missed a step the first time I tried it.

shanehussainnaqvi’s picture

if you use the role_theme_switch module you can make two different themes for each type of user. u can use a theme that displays only a welcome msg and a login box and another showing everything.