Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on August 11, 2012, 02:01:47 pm

Title: [Code] Dark Style Picker
Post by: aIURbliS on August 11, 2012, 02:01:47 pm
There will be a dropdown box at the bottom of your forum where you can select between all of the dark styles available.
It is required that your forum uses the default style when you add in this code!
If this code does NOT work, try updating your web browser to its latest version.



This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)
Footers:
Code: [Select]
<script>$("#footer_section").before("<center><select name='styles' id='styles'><option value='default' id='default'>Default</option><option value='darkblue' id='darkblue'>Dark Blue</option><option value='darkred' id='darkred'>Dark Red</option><option value='darkgreen' id='darkgreen'>Dark Green</option><option value='dark' id='dark'>Dark</option><option value='darkpurple' id='darkpurple'>Dark Purple</option><option value='darkyellow' id='darkyellow'>Dark Yellow</option></select> <input type='button' id='reload' value='Save'></center>");function stylez(name,id,shortname){$("#styles").change(function(){if($("#"+id).is(':selected')){localStorage.setItem(id,"true")}else{localStorage.setItem(id,"false")}});if(localStorage.getItem(id)=="true"){$("LINK[href*='/Themes/default/css/index.css?fin20']").attr("href","http://www.createaforum.com/styles/xboi209/dark"+shortname+"-compress.css?fin20");$("#"+id).prop("selected",true)}$("#reload").click(function(){window.location.reload()})}stylez("Dark Blue","darkblue","_blue");stylez("Dark Red","darkred","_red");stylez("Dark Green","darkgreen","_green");stylez("Dark","dark","");stylez("Dark Purple","darkpurple","_purple");stylez("Dark Yellow","darkyellow","_yellow");</script>
Title: Re: [Code] Dark Style Picker
Post by: Silver734 on August 06, 2013, 10:48:17 pm
it doesn't actually allow you to pick style, please help1!!
Title: Re: [Code] Dark Style Picker
Post by: aIURbliS on August 07, 2013, 01:29:41 am
This code is outdated and will no longer work without modifications.