Hi!

How du I set a different theme for logged in users? My site goes in a blue color range but when a user has logged in a want to switch themes to a red stylish one....

Setting the administer theme won't do it cos my logged in users aren't allowed to administer the site....

Any answers is very welcomed!!

/J

Comments

fidot’s picture

A simple search of the site throws up

http://drupal.org/project/taxonomy_theme

The taxonomy_theme module allows you to change the theme of a given
node based on the taxonomy term, vocabulary or nodetype of that node.
You can also theme your forums and map themes to Drupal pathes or
path aliases directly.

and

http://drupal.org/project/mysite

MySite 5.x.1.10 and higher also support user-selected theming and automatic path alias support.

You could see which of these is closer to what you need and go from there.

HTH
Terry

Keeling’s picture

The Taxonomy Theme module is an excellent contribution that is very easy to use. But it only allows you to theme by vocabulary or URL, and not by user role.

www.keelingdesign.com

cwgordon7’s picture

There is module called Role Theme Switcher that I think you might want. It allows you to assign different themes to different user roles. For example, you could say that authenticated users have a diffrent theme than anonymous users.

simpelito’s picture

It seems as the modules didn't quite do it...for some reason the role theme switcher just didn't work.....Guess I'll have to keep searching...thanks for the help though....

/simpel

clemens.tolboom’s picture

Just watching ... for your findings :-)

tiutiun’s picture

Hi, Simpelito.

Could you please note what did you do, and how it didn't work?
Probably there were some error messages or smth else?
I would like to help you, and also to figure out possible bugs :-)
----
Serj Tiutiun

jr8279’s picture

I'm not sure if this is the same issue that others have had. I am running Drupal 5.1 and when I try to use the Role Theme Switcher module from an anonymous user, all I get is:

Fatal error: Call to undefined function: system_themes() in /home/jr8279/public_html/modules/role_theme_switcher/role_theme_switcher.module on line 18

From an authenticated user, it works fine. I have also tried to remove all other addon modules to see if it is conflicting with them, but no luck.
Does anyone know how to fix this?

jr8279’s picture

I found the culprit! I had caching turned on (normal mode, not aggressive mode). I turned of caching and everything works fine.

tiutiun’s picture

Hello, jr8279.

This bug about cache is fixed in version 5.x-1.1

You can download new version here:
http://drupal.org/node/197996

Please, let me know, if it is all ok now.

Thank you

----
Serj Tiutiun