Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Switching themes using the drop down works for logged in users, but not for others.
Comment | File | Size | Author |
---|---|---|---|
#26 | switchtheme.module.anon_.patch | 447 bytes | skoledin |
#14 | switchtheme-DRUPAL-6--1.patch | 3.29 KB | sun |
#12 | switchtheme-DRUPAL-5.anonymous.patch | 3.56 KB | sun |
#1 | switchtheme-DRUPAL-5.anonymous.patch | 2.99 KB | sun |
Comments
Comment #1
sunAttached patch should fix this issue for 5.x.
6.x can come later.
Comment #2
wd CreditAttribution: wd commentedI've made some patch for Drupal-6.x.
The patch is:-
Comment #3
marcoBauli CreditAttribution: marcoBauli commentedthe patch applies and fixes the problem on 5.x thanks!
Comment #4
dr00b CreditAttribution: dr00b commentedWorked for me as well (as soon as I figured out how to apply a patch).
Comment #5
Wolfflow CreditAttribution: Wolfflow commentedHi, have applied your patch (#2) to switchtheme on following demo Site:
Drupal Themes Showcase
it works ;-) : Site use Drupal 6.1 and all recommended D6 Themes.
But I need to click twice on the page , that means that i have to change for example
clicking primary_menus: from --> home --> to --> Gallery
to see the Theme change.
Is this normal?
anyway it does what i need for this Themes Demo Site!
Thanks!
Some days later!! I spoke victory to early:
I just went through many Browser Test and find out that there is still a bug.
It seems that the module using it for anonymous user get in conflict with "cookies" and cache settings of the browser you use: Safari - Opera the most affected.
So if anyone have a suggestion?
Comment #6
Wolfflow CreditAttribution: Wolfflow commentedI have to change status from normal to critical. Tested on http://www.adaccs.at/drupal/
Comment #7
Billy Chimpson CreditAttribution: Billy Chimpson commentedthx a lot, you fixed my Drupal 6 Problem !
greetz
David
Comment #8
Wolfflow CreditAttribution: Wolfflow commentedHi crashovermind,
It would be nice to have some details on your solved issue. I'm working on a Theme Demo Site for the Community
address : http://www.adaccs.at/drupal/
and will collect infos about each Theme for D6.x(recommended). You aopinion is Welcome! Thanks
P.S.Link corrected
Comment #9
Coupon Code Swap CreditAttribution: Coupon Code Swap commentedThe patch for Drupal-6.x does work with the dropdown. However, changing themes via URL still does not work. When adding &theme= to the URL, themes do not change in the same way they did with Drupal 4.7 and Drupal 5. As anybody gotten this working with URL?
Comment #10
Wolfflow CreditAttribution: Wolfflow commentedHi All, just wnat to precise that on my comments #5 #6 #8 above I have corrected the link. The original Site does not exist anymore but is still my intention to apply Switchtheme.module on the new site on:
http://adaccs.at/drupal/ , this site is based on Drupal 6.2 and is in costruction. Drupal Themes D4,D5, screenshots gallery have been completed, D6 Themes Screenshots will soon follow. My intention is to build a voting sistem that define the best and most used and spread Themes wich will be applyed on the Site, therefore the module will be neded.
Any help are very much appreciate, I'm some how confident with Drupal but there is a lot of lack of knowledge with PHP.
Thank you for your attention
Cheers
Comment #11
Coupon Code Swap CreditAttribution: Coupon Code Swap commentedYou can also preview Drupal themes here:
http://themebot.com/website-templates/drupal-themes
All of the new Drupal 6 themes will be added once the URL function for Switchtheme is fixed.
Comment #12
sunNew patch against DRUPAL-5. Please test, so I can re-roll it for D6 afterwards.
Comment #13
Coupon Code Swap CreditAttribution: Coupon Code Swap commentedLet me know when you've got the Drupal 6 patch ready. I'll give it a thorough testing :)
Comment #14
sunSince SwitchTheme's userbase is small, I've created a patch for D6. However, it's just the code, I haven't tested it.
Comment #15
sun#247348: Switchtheme switches the default theme not the users' has not only been marked as duplicate, but also confirms that this patch (for D5) works. Another test would be great, though.
Comment #16
Coupon Code Swap CreditAttribution: Coupon Code Swap commentedAlright! Switching themes by URL is working. I'll do some more testing tomorrow.
Comment #17
Wolfflow CreditAttribution: Wolfflow commentedSubscribe
Comment #18
sunI still need at least one more qualified review to commit this. Thanks.
Comment #19
SeanA CreditAttribution: SeanA commentedChanging affected version, this problem does not occur on 5.x-1.1. The patch in #12 does seem to fix the problem for 5.x-1.x-dev.
Comment #20
Coupon Code Swap CreditAttribution: Coupon Code Swap commentedHi sun. I've tested the Drupal 6 patch pretty thoroughly and everything seems to be working. Works for both anonymous and authenticated users. The switchtheme block is working. And, URL method works. There are a few Drupal 6 themes which do not work even though they are enabled in the Theme manager (do not appear in the drop down and can't be called via URL). I am thinking this is a problem with those specific themes, rather than switchtheme.
Comment #21
sunThanks all, committed.
Comment #22
stephthegeek CreditAttribution: stephthegeek commentedI seem to be having a related problem. Same problem is occurring with both 1.1 and dev, which is odd. I'm running a 4-site multisite setup with the same copy of the switchtheme module, and only ONE of my sites has the problem where anonymous users cannot switch the theme, either via the dropdown or by URL. I've triple checked permissions, upgraded, downgraded... any ideas for troubleshooting this further?
Comment #23
sun@stephthegeek: Must be related to your multi-site setup. Please open a new issue. This one has been fixed.
Comment #24
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #26
skoledin CreditAttribution: skoledin commentedAs of switchtheme-6.x-1.1 it looks like this is still an issue for anonymous users. The following patch isn't a perfect solution, but it did what I wanted and provided enough permission granularity for my use. Just tacking it on here in case anyone else is still looking for a quick fix.
Comment #27
noureddine CreditAttribution: noureddine commentedhey #skoledin i tried it, but it didn't work its not even switching my themes. any suggestion or any other updated fix for the anonymous user theme switching
thank you very much