Hey,
I found the modul works perfectly for drupal's standard roles - but for some reasons it does not work on old custom roles I added. For custom roles I created before installing this modul drupal always uses the theme I specified as default within drupal's appearance tab. Newly created custom roles pose no problem however.

Thanks in advance.

CommentFileSizeAuthor
#4 role_switcher_ui.jpg58.24 KBZuzuesque

Comments

tiutiun’s picture

Assigned: Unassigned » tiutiun

Hello zuzuesque

I have a feeling that you have assigned a kind of role to "anonymous"/"authenticated" users, and you expect that themes, assigned to new created roles, would overwrite settings for "Drupal standard" roles.

If you experience such problem - I would advice to set to "Drupal standard" roles a "Default" setting, thus you would allow settings for new created roles to get the advantage.

Please let me know if it works for you

Zuzuesque’s picture

Hm, not exactly. I will try to be more specific.

Before I installed this modul I created a custom role A. Then I installed the modul and it worked well for all standard roles beside role A. Then I created a role B for testing purposes and to narrow down the problem - and role B is working just like intended. Role A and B are exactly the same however.

It is not a big problem, as I can just re-create my old custom roles and assign them again, but I find it odd that the modul only works with newly created custom roles? Made me think of a bug - or maybe I just missed a setting somewhere?

I tried what you said: I assigned the default settings to all standard roles and left role A and B with the bartik theme. And it workes for role B. But not A. Just like before.

tiutiun’s picture

Hmm

The behavior is: if "Default" theme is assigned to role, or there's no theme, assigned to role (which is the case, when roles were created BEFORE the module was installed) - module does not assign any theme to this role, the Default Drupal theme is being shown.
Maybe it is your case?

If it is - just go to Role Theme Switcher interface, assign desired themes to old or/and new roles - and it should work.

BTW, if it doesn't work - could you please attach a screenshot of RoleThemeSwitcher interface?

Zuzuesque’s picture

StatusFileSize
new58.24 KB

Still not got it to work sadly. I attached a screenshot of my role switcher ui. 'Redakteur' is my old role and 'Test' is my new one. Both have a theme assigned - but Redakteur still shows the default theme, while Test shows bartik as it should.

Does it matter when the user the role is attached to was created?

tiutiun’s picture

And if you delete "Redakteur" and create it again with the same name, and assign to it theme "Garland" - you say that it works?

tiutiun’s picture

Status: Active » Closed (cannot reproduce)