Advertisement:

Author Topic: How to change themes client side?  (Read 1616 times)

Resta

  • Sr. Member
  • ****
  • Posts: 345
Re: How to change themes client side?
« Reply #15 on: September 17, 2018, 12:05:59 am »
Patrick,

On the example link that you have above, for me it does not work for any of the themes you mentioned below when I use the dropdown menu to change the theme.

Also, what may be useful is instead of allowing user to select a theme admin can set a specific theme while redirecting user (for example a site using the same database with different display options/theme or load it with another language, etc.,) so that way the sites loads a different theme automatically. Just an idea.

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: How to change themes client side?
« Reply #16 on: September 19, 2018, 10:35:50 am »
Sorry for late response,
Thank you very much for doing this!
Is this working with bender?

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: How to change themes client side?
« Reply #17 on: September 19, 2018, 10:53:49 pm »
Sorry for late response,
Thank you very much for doing this!
Is this working with bender?

You are welcome! I updated the post with the download, try it. It may/may not work, I didn't test a lot, but I sure made some fixes.

Patrick,

On the example link that you have above, for me it does not work for any of the themes you mentioned below when I use the dropdown menu to change the theme.

Also, what may be useful is instead of allowing user to select a theme admin can set a specific theme while redirecting user (for example a site using the same database with different display options/theme or load it with another language, etc.,) so that way the sites loads a different theme automatically. Just an idea.

The site is buggy as I test a lot of plugins there... However, when I log in, I can choose the theme and I get redirected to the homepage with the new theme selected.

What did you though in the second part? Different theme according to language or such?

Regards.

Resta

  • Sr. Member
  • ****
  • Posts: 345
Re: How to change themes client side?
« Reply #18 on: September 20, 2018, 07:12:54 am »
Quote
The site is buggy as I test a lot of plugins there... However, when I log in
ok, I didn't know one has to login and just selecting from the dropdown did that.  Can it be made to work without the user account or login?

Quote
What did you though in the second part? Different theme according to language or such?
Yes, something like that but instead of the user the admin will select which theme a user is shown (and possibly without the user requiring an account or requiring login). 

Thanks!
« Last Edit: September 20, 2018, 10:35:36 am by Resta »

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: How to change themes client side?
« Reply #19 on: September 20, 2018, 09:27:56 am »
Quote
The site is buggy as I test a lot of plugins there... However, when I log in
ok, I didn't know one has to login and just selecting from the dropdown did that.  Can it be made to work without the user account or login?

Quote
What did you though in the second part? Different theme according to language or such?
Yes, something like that but instead of the user the admin will select which theme a user is shown (and possibly without the user requiring an account or requiring login).

I was thinking of way to do this without the need to be a user. Then I can't use MySQL database table, but cookies. I didn't work with them a lot, but I will study them and see what I can do.

Just note that this is my side project, so it may take sometime to respond/add new features.

Regards.

Resta

  • Sr. Member
  • ****
  • Posts: 345
Re: How to change themes client side?
« Reply #20 on: September 20, 2018, 10:35:13 am »
Quote
Just note that this is my side project, so it may take sometime to respond/add new features.
Certainly, not a problem - I just wanted test and give you some feedback and ideas as no one had replied to your post earlier.  I don't really need this plugin rignt now but something I may be able to use when I am making another site for different countries/languages.  Thanks!
« Last Edit: September 20, 2018, 10:40:00 am by Resta »