Advertisement:

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

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
How to change themes client side?
« on: July 25, 2018, 03:01:16 am »
hey,
i wanna give the option for users to change themes,
for that we have to add a (theme_name) field in oc_t_user table and store the theme name for each user.
and put the selector in header for users. like if there is 3 themes, the selector shows 3 themes over there for users to select one.
please help me to do this
thanks

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #1 on: July 29, 2018, 11:33:52 pm »
No help?

Aficionado

  • issues
  • Hero Member
  • *
  • Posts: 5979
  • Hardliner
Re: How to change themes client side?
« Reply #2 on: July 30, 2018, 01:47:13 am »
No help?

Nop, just your shameless bump.

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #3 on: July 30, 2018, 10:35:13 am »
No help?

Nop, just your shameless bump.

I don't know who made you "hero member" with this attitude!

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #4 on: August 06, 2018, 12:53:04 am »
Is there a client side theme switcher in other cms?

Aficionado

  • issues
  • Hero Member
  • *
  • Posts: 5979
  • Hardliner
Re: How to change themes client side?
« Reply #5 on: August 06, 2018, 01:50:00 am »

I don't know who made you "hero member" with this attitude!

You can always report any user that is violating the rules or for any other reason. There is a Report To Moderator link. Use it, and please leave personal comments out of here.

As for me, i got no special treat (aka nobody "made" me anything) and i have no affiliation of any kind with Osclass.


Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #6 on: August 06, 2018, 08:12:19 am »

I don't know who made you "hero member" with this attitude!

You can always report any user that is violating the rules or for any other reason. There is a Report To Moderator link. Use it, and please leave personal comments out of here.

As for me, i got no special treat (aka nobody "made" me anything) and i have no affiliation of any kind with Osclass.

You are not helping,
Can i ask you not to leave comments in my topics?

patrickFromCroatia

  • Sr. Member
  • ****
  • Posts: 293
Re: How to change themes client side?
« Reply #7 on: August 06, 2018, 08:56:57 pm »
And how is all this shi*talk related to the question?

About that, you would probably need a plugin which will use DAO to create table and insert into it. When you have that you need to make a form with a list of themes. When the form gets submitted it will save theme name and user id to your table. Then you use WebThemes class and before_html hook to change theme.

Regards.

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #8 on: August 08, 2018, 08:49:09 pm »
And how is all this shi*talk related to the question?

About that, you would probably need a plugin which will use DAO to create table and insert into it. When you have that you need to make a form with a list of themes. When the form gets submitted it will save theme name and user id to your table. Then you use WebThemes class and before_html hook to change theme.

Regards.

Would you please help us practically?

patrickFromCroatia

  • Sr. Member
  • ****
  • Posts: 293
Re: How to change themes client side?
« Reply #9 on: August 08, 2018, 11:07:34 pm »
I'm busy currently, but I will think of making a plugin with this functionality. I will provide more information tomorrow (I hope).

Regards.

Sophia_OS

  • Full Member
  • ***
  • Posts: 113
Re: How to change themes client side?
« Reply #10 on: August 10, 2018, 08:42:05 pm »
I'm busy currently, but I will think of making a plugin with this functionality. I will provide more information tomorrow (I hope).

Regards.

Thank you very much