Skip to main content
Topic: [ADDON] Theme selector (Read 1481 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[ADDON] Theme selector

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

  • 0.1.2 - Fixes:
    • Avoid conflict between themes with the same variants
  • 0.1.1 - Fixes:
    • Wrong file included at install time
    • Broken reload URL
  • 0.1.0 - Initial commit
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Theme selector

Reply #1
Nice !
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.

Re: [ADDON] Theme selector

Reply #2
: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
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Theme selector

Reply #3
Not selected, if user is guest.

ThemeSelector.integrate.php

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

replace:
Code: [Select]
$context['theme_variant'] == '_' . $key
Sorry for my English

Re: [ADDON] Theme selector

Reply #4
That would mark as selected more than only one variant if two themes have two variants with the same name... :-\
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Theme selector

Reply #5
oops
Sorry for my English

Re: [ADDON] Theme selector

Reply #6
Very nice.
“Be who you are and say what you feel, because those who mind don't matter, and those who matter don't mind.”
― Bernard M. Baruch​


Re: [ADDON] Theme selector

Reply #8
Cool addon, really good for my elkartestudio :)

Re: [ADDON] Theme selector

Reply #9
As reported by Inter, at the moment it doesn't work with guests though (unless you download the "master" branch directly ;)).
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Theme selector

Reply #10
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.
ElkArte version: 1.1.5 / Theme: BeSocial / PHP 7.2.7

Re: [ADDON] Theme selector

Reply #11
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...
ElkArte version: 1.1.5 / Theme: BeSocial / PHP 7.2.7