News:

Create A Forum Installed

Author Topic: [Code] Dark Style Picker  (Read 2083 times)

0 Members and 1 Guest are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
[Code] Dark Style Picker
« 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/
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>
« Last Edit: August 12, 2012, 03:40:06 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline Silver734

  • Full Member
  • ***
  • Posts: 165
  • Karma: 1
  • Gender: Female
    • View Profile
    • Fairy Tail

Badges: (View All)
Second year Anniversary One year Anniversary Poll Voter
Re: [Code] Dark Style Picker
« Reply #1 on: August 06, 2013, 10:48:17 pm »
it doesn't actually allow you to pick style, please help1!!
Fairytailrp.netFairytailrp.net
This forum was made with Create a Forum!! :3

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Dark Style Picker
« Reply #2 on: August 07, 2013, 01:29:41 am »
This code is outdated and will no longer work without modifications.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
820 Views
Last post July 23, 2010, 09:01:13 am
by lizardbitetv
3 Replies
892 Views
Last post June 04, 2012, 11:57:59 pm
by CreateAForum
0 Replies
804 Views
Last post December 19, 2013, 04:59:25 am
by Null
0 Replies
311 Views
Last post February 09, 2020, 01:42:42 am
by ComputerTech
5 Replies
749 Views
Last post October 22, 2021, 08:03:31 pm
by TheNetheriteMinecart