Hey guys,

I can't believe how useful this module is (and that I've never come across it until today!?). One thing I can't figure out though is how to let the theme that users choose to apply to their nodes *also* load when you view their user account page.

Has anyone done this? Perhaps using the Switching Rule Chain I can achieve this somehow?

Qasim

Comments

mkalkbrenner’s picture

You can use the additional module ThemeKey Debug to see all properties values on a page.
But I think it will be hard to achieve your feature with the existing properties.

This should be turned into a feature request.

designguru’s picture

The debug values don't really help me - the reason why is because I'm using the subdomain module for user account pages; so user accounts are available at http://username.domain.com instead of say, http://domain.com/user/username .

Ideally, I would be able to create a rule to call the triggered theme at a wildcard location (which would be *.domain.com) but it seems you can't include wildcard in rule Values... (or am I mistaken?)

I know there's a few hooks with the module that might be able to achieve what I'm after but that's a little above my head... :(

q./

mkalkbrenner’s picture

Wildcards could be realized using the regex opperator ~.

system:host ~ /\w+\.domain\.com/

Do you want to show all profiles using one theme or do you want to let the users decide which theme should be used to show their profile?

designguru’s picture

I want their profiles to show with the same theme users select for their nodes (so yes, the theme would be user-dependent.)

q./

mkalkbrenner’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

I think that feature could be achieved by creating a rule for user profile page and implementing hook_themekey_custom_theme() to switch to the user specific one.

I close this issue. Feel free to ask for more details, if you're still interested.

webservant316’s picture

why not just add the feature to themekey? seems sensible that if a user wants a particular theme for their pages and blogs that they could also choose the theme for their profile / account page.

mkalkbrenner’s picture