ElkArte Community

Extending Elk => Addons => Topic started by: emanuele on August 24, 2014, 09:18:37 am

Title: [ADDON] Theme selector
Post by: emanuele on August 24, 2014, 09:18:37 am
Theme Selector v0.1.2
Adds a selector that allows users to pick a different theme/variant for the forum instead of having to go to the profile.


License
o This ElkArte Addon is subject to the terms of the BSD "3-clause" license. You can obtain a copy of the License at http://opensource.org/licenses/BSD-3-Clause

Repository / Download



Change log

Title: Re: [ADDON] Theme selector
Post by: Spuds on August 24, 2014, 06:27:35 pm
Nice !
Title: Re: [ADDON] Theme selector
Post by: emanuele on August 24, 2014, 06:44:50 pm
:D

I noticed the theme should have some class to associate the positioning "over there" (and probably in general), I mean, the padding is declared on the search_box (or whatever) ID, and a similar one on the login box, and I had to add a css just to re-apply that same style, otherwise the box was stuck at the top.
I think, but I'm not a themer, that styles should be applied to classes, whereas ids should be used to pinpoint elements if needed.
Or something like that. LOL
Title: Re: [ADDON] Theme selector
Post by: inter on October 05, 2014, 12:11:49 pm
Not selected, if user is guest.

ThemeSelector.integrate.php

find:
Code: [Select]
$selected && $context['theme_variant'] == '_' . $key

replace:
Code: [Select]
$context['theme_variant'] == '_' . $key
Title: Re: [ADDON] Theme selector
Post by: emanuele on October 05, 2014, 12:31:12 pm
That would mark as selected more than only one variant if two themes have two variants with the same name... :-\
Title: Re: [ADDON] Theme selector
Post by: inter on October 05, 2014, 12:48:26 pm
oops
Title: Re: [ADDON] Theme selector
Post by: Phillip on October 05, 2014, 02:40:02 pm
Very nice.
Title: Re: [ADDON] Theme selector
Post by: emanuele on October 05, 2014, 03:16:59 pm
@Inter try these changes:
https://github.com/emanuele45/ThemeSelector/commit/f841b47fb3098e24f0721304a06bf727dd72e2a7
Title: Re: [ADDON] Theme selector
Post by: CrimeS on October 05, 2014, 03:37:53 pm
Cool addon, really good for my elkartestudio :)
Title: Re: [ADDON] Theme selector
Post by: emanuele on October 05, 2014, 05:23:02 pm
As reported by Inter, at the moment it doesn't work with guests though (unless you download the "master" branch directly ;)).
Title: Re: [ADDON] Theme selector
Post by: Mrs. Chaos on June 14, 2018, 06:24:37 am
Can the selector be updated to version 1.1 in the near future?
In my test forum it doesn't work properly with the 1.1.
Title: Re: [ADDON] Theme selector
Post by: Mrs. Chaos on June 17, 2018, 07:40:23 am
An addendum:
Switching between the Light theme and the BeSocial often doesn't work. Selecting other themes is no problem. If I want to switch from another to the light, the BeSocial is often displayed instead...
Title: Re: [ADDON] Theme selector
Post by: Mrs. Chaos on August 19, 2019, 09:35:14 am
After a long time something again on this topic.
In a test forum I have just installed all themes that work with EA 1.1.x.
Then I installed the Theme Selector 0.1.2 and after that I made the changes on the ThemeSelector.integrate.php ("sources" folder) which are described here (https://github.com/emanuele45/ThemeSelector/commit/f841b47fb3098e24f0721304a06bf727dd72e2a7). Now the selector works perfectly and without problems for members and guests. :)