views:

21

answers:

3

Hello Guys,

I have a drupal site that I am creating right now. I have 3 roles, and these are: Anonymous Authenticated Registered Users

On my "Registered Users" I wanted to have a different theme after they login. Do you have ideas on how to achieve this?

Best regards

+1  A: 

on hook_init if global $user have role Registred global $theme = 'theme_x';

Igor Rodinov
A: 

Setting a completely different theme is a quite drastic method. If possible, I would try to use a single theme, set a class on the body tag indicating the user role and style those pages differently with just CSS.

marcvangend
A: 

You can use http://drupal.org/project/themekey

It should allow you to change the theme based on role of user.

Sid NoParrots