Color Picker
#5
Well, so long as you're pretty good with jQuery this isn't too much trouble. Basically set all the elements you want changed to a variable, then inside an if statement (If a color cookie has been set) change those element's CSS.

If you mean just showing the color picker, simply upload the files to your server, then you'll want to include the files in your headerinclude:

<script type="text/javascript" src="{$mybb->settings['bburl']}/colorpicker/js/colorpicker.js"></script>
<link rel="stylesheet" media="screen" type="text/css" href="{$mybb->settings['bburl']}/colorpicker/css/colorpicker.css" />

then invoke it by adding this to your code somewhere:

<div id="colorSelector"><div style="background-color: #DDD"></div></div>
<div id="colorpickerHolder"></div>

The plugin comes with some pretty useful stuff as well, like onChange.
Reply


Messages In This Thread
Color Picker - by BleepyEvans - 2012-08-24, 11:33 AM
RE: Color Picker - by Yaldaram - 2012-08-24, 11:47 AM
RE: Color Picker - by BleepyEvans - 2012-08-24, 12:12 PM
RE: Color Picker - by Scois0n - 2012-08-24, 01:51 PM
RE: Color Picker - by Eric - 2012-08-24, 07:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)