Advertisement:

Author Topic: [PLUGIN] [WIP] [FREE] Theme Chooser [v 1.0.0]  (Read 373 times)

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 690
  • OSC Market review time makes me wanna cry...
[PLUGIN] [WIP] [FREE] Theme Chooser [v 1.0.0]
« on: August 24, 2018, 12:40:49 am »
Hello,

I have made a plugin, mainly for this topic: https://forums.osclass.org/general-help/how-to-change-themes-client-side/.
It allows users to select a theme they want to use. It requires the user to be logged in and then it saves a theme name selected from select box in the database.

However, there's a big problem and that's why I would love if someone may help me.

The plugin doesn't work for some themes. I have tested Violet, Veronika, Gum, Osclass Wizards, Bender, Modern, Benny, India Classifieds and only Violet, Veronika and Modern worked.

Using the other themes gave me errors - themename_add_body_class is not defined.

The plugin is attached below, depending on your themes, it may work great. Please firstly test it on a local server, don't use it on a live website as it may crash it if themes are not supported.

Use <?php themechooser_form(); ?> to show a selector for themes.

Any testing and support will be appreciated.

Regards.