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:
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:
If you want to change the default text used in the list label, find:
and change it to suit your needs, like this:
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:
quickthemeoc 2.1.zip (Size: 9.8 KB / Downloads: 408)
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:
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:
quickthemeoc 2.1.zip (Size: 9.8 KB / Downloads: 408)