Thread Rating:
  • 5 Vote(s) - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Quick Theme OnChange
#1
Star 
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:

   

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:

.zip   quickthemeoc 2.1.zip (Size: 9.8 KB / Downloads: 235)
Reply
#2
I like it, much simpler and nicer. Installing it.
Reply
#3
This plugin is now available on MyBB Mods website:

http://mods.mybboard.net/view/quick-theme-onchange
Reply
#4
Love it. Always i want some like this
[Image: 40DS6Te.png]
[Image: poptartFINALTINY.gif]
Reply
#5
Thanks for making this.
100 Posts - $3.00
PM me for more information.
Reply
#6
Thanks for this Smile

[Image: iYa29IFsjRtGF.png]


Reply
#7
Man everyone is toying with that plugin lol..

Anyways nice work man Smile.
My Site - Support For My Themes
If you would like a Custom MyBB Theme PM me Smile.
Reply
#8
Hey I was wondering if you could make it so that we could control where its located via a {$themechange} tag or something?

[Image: iYa29IFsjRtGF.png]


Reply
#9
(02-19-2010, 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.
My Site - Support For My Themes
If you would like a Custom MyBB Theme PM me Smile.
Reply
#10
Thanks didnt see that.

[Image: iYa29IFsjRtGF.png]


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)