MyBB Community Forums

Full Version: Quick Theme OnChange
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Hi,

I took code from Quick Theme plugin and made this one:

http://mods.mybb.com/view/quick-theme-onchange

With this plugin, users can change their theme by just selecting it from a list (no submit button required).

The plugin set a "<quickthemeoc>" mark on the footer template, and you can put it wherever you want the list to be shown. This should help you to fit the list on all your themes. When the plugin is deactivated, the list mark is removed.

No language packs are required for this plugin since it uses MyBB default language strings.

You may also change the forum theme using the following URL format:

http://yourforum.com/index.php?action=quickthemeoc&style=TID

where TID is the theme ID number.

Here is how it looks in my forum. I set the list where the MyBB "quick language select" list should be:

[attachment=23186]

If you want to change the default text used in the list label, find:
$list_label = $lang->style;

and change it to suit your needs, like this:
$list_label = "Style:";

This is my first released plugin so comments are welcome and appreciated.

INSTALLATION:
1) Upload quickthemeoc.php to your plugins directory (usually inc/plugins)
2) Activate "Quick Theme OnChange" from Admin CP

UPGRADING FROM PREVIOUS VERSIONS:
1. Deactivate the plugin.
2. Upload and replace quickthemeoc.php to your plugins directory.
3. Activate the plugin.


CHANGE LOG:

v2.1 (16/09/2012)
A friendly error message is now displayed if the selected theme (ID) doesn't exist.

v2.0 (26/06/2011)
Added compatibility for MyBB 1.6.x
Theme can be changed using URL

v1.0 (16/02/2010)
First release for MyBB 1.4.x

DOWNLOAD:
You can download this plugin on MyBB Mods site. If for some reason it's not available there at the moment (for example, is awaiting validation), you can download it from here too:
[attachment=27270]
I like it, much simpler and nicer. Installing it.
This plugin is now available on MyBB Mods website:

http://mods.mybboard.net/view/quick-theme-onchange
Love it. Always i want some like this
Thanks for making this.
Thanks for this Smile
Man everyone is toying with that plugin lol..

Anyways nice work man Smile.
Hey I was wondering if you could make it so that we could control where its located via a {$themechange} tag or something?
(2010-02-19, 08:04 PM)Skyance Wrote: [ -> ]Hey I was wondering if you could make it so that we could control where its located via a {$themechange} tag or something?

Quote:The plugin set a "<quickthemeoc>" mark on the footer template, and you can put it wherever you want the list to be shown. This should help you to fit the list on all your themes. When the plugin is deactivated, the list mark is removed.
Thanks didnt see that.
Pages: 1 2 3 4 5 6