Welcome Guest [Log In] [Register]
Add Reply
Skin Changer?; Perhaps?
Topic Started: Aug 12 2009, 09:41 PM (317 Views)
Sonic Flash
Member Avatar


Wouldn't it be cool if this board had a skin changer so we could all pick our favourite ones?
Posted Image
Offline Profile Quote Post Goto Top
 
Bluezone777
Member Avatar


Invisionfree doesn't have a default skin changer and I have yet to see a fully functional skin changer code. THe ones I have found don't change the images when you change skins.

IF by chance, you do find one then by all means tell me as I been wanting one of these for a long time.
Posted Image
Dr. Martin Luther King Jr.
 
"Rarely do we find men who willingly engage in hard, solid thinking. There is an almost universal quest for easy answers and half-baked solutions. Nothing pains some people more than having to think."


My Awards
Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
Sonic Flash
Member Avatar


Sample 1:-

Code:
 
<center>
Skin selector developed by XJONX. Skins created by various members of the <a href="http://www.ifskinzone.net" target="_blank">IF Skin Zone</a>.<br />
<form>
<select onChange="changeskin(this.options[this.selectedIndex].value); window.location.reload();">
<option>Change Skin
<option value="IF Default"> InvisionFree Default
<option value="Blue Ash"> Blue Ash
<option value="Blue Aura"> Blue Aura
<option value="Blue Tech"> Blue Tech
<option value="Cool Blue"> Cool Blue
<option value="Dark Skyline"> Dark Skyline
<option value="Final Fantasy"> Final Fantasy
<option value="Matrix Malfunction"> Matrix Malfunction
<option value="Midevil Darkness"> Midevil Darkness
<option value="Neon Ash"> Neon Ash
<option value="The Simpsons"> The Simpsons
</select>
</form>



<script language="JavaScript">
<!--

/*
Change Skin Script
Copyright © 2003 xMALEVOLENCEx
Skins created by various members of the ifskinzone.net
ALL skins are copyright to [URL=http://www.ifskinzone.net]http://www.ifskinzone.net[/URL]
*/

var scheme = getCookie('template1');
if (scheme == 'Blue Ash') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/blueash.css">');
} else if (scheme == 'Blue Aura') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/blueaura.css">');
} else if (scheme == 'Blue Tech') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/bluetech.css">');
} else if (scheme == 'Cool Blue') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/coolblue.css">');
} else if (scheme == 'Dark Skyline') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/darkskyline.css">');
} else if (scheme == 'Final Fantasy') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/finalfantasy.css">');
} else if (scheme == 'Matrix Malfunction') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/matrixmalfunction.css">');
} else if (scheme == 'Midevil Darkness') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/midevildarkness.css">');
} else if (scheme == 'Neon Ash') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/neonash.css">');
} else if (scheme == 'The Simpsons') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/thesimpsons.css">');
} else if (scheme == 'IF Default') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.ifskinzone.net/skinselector/defaultif.css">');
}


function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
-->
</script>


Sample 2:-

Code:
 
<center>
Skin selector developed by XJONX. Skins created by various members of the <a href="http://www.ifskinzone.net" target="_blank">IF Skin Zone</a>.<br />
<form>
<select onChange="changeskin(this.options[this.selectedIndex].value); window.location.reload();">
<option>Change Skin
<option>
<option value="Red Fruit"> Red Fruit
<option value="Blue Fruit"> Blue Fruit
<option value="Orange Fruit"> Orange Fruit
<option value="Purple Fruit"> Purple Fruit
<option value="Blackened Orange"> Blackened Orange
<option value="Sunshine"> Sunshine
<option value="Crack Of Dawn"> Crack Of Dawn
<option value="First Time"> First Time
<option value="Fusion"> Fusion
<option value="McDonalds"> McDonalds
<option value="Merritt"> Merritt
<option value="Palkia Style"> Palkia Style
<option value="Purple Twilight"> Purple Twilight
<option value="Sexy Alert"> Sexy Alert
<option value="Skin A Liscious"> Skin A Liscious
<option value="The Beach"> The Beach
<option value="Invision Power Boards"> Invision Power Boards
</select>
</form>



<script language="JavaScript">
<!--

/*
Change Skin Script
Copyright © 2003 xMALEVOLENCEx
*/

var scheme = getCookie('template1');
if (scheme == 'Red Fruit') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Red Fruit.css ">');
} else if (scheme == 'Blue Fruit') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Blue Fruit.css ">');
} else if (scheme == 'Orange Fruit') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Orange Fruit.css ">');
} else if (scheme == 'Purple Fruit') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Purple Fruit.css ">');
} else if (scheme == 'Blackened Orange') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Blackened Orange.css ">');
} else if (scheme == 'Sunshine') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Sunshine.css ">');
} else if (scheme == 'Crack Of Dawn') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Crack Of Dawn.css ">');
} else if (scheme == 'First Time') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/First Time.css ">');
} else if (scheme == 'Fusion') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Fusion.css ">');
} else if (scheme == 'McDonalds') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/McDonalds.css ">');
} else if (scheme == 'Merritt') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Merrit00.css ">');
} else if (scheme == 'Palkia Style') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Palkia Style.css ">');
} else if (scheme == 'Purple Twilight') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Purple Twilight.css ">');
} else if (scheme == 'Sexy Alert') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Sexy Alert.css ">');
} else if (scheme == 'Skin A Liscious') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Skin-A-Liscious.css ">');
} else if (scheme == 'The Beach') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/The Beach.css ">');
} else if (scheme == 'Invision Power Boards') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Invision Power Boards.css ">');
} else {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/SonicFlash/Toxic Darkness.css ">');
}


function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
-->
</script></center>
Posted Image
Offline Profile Quote Post Goto Top
 
Bluezone777
Member Avatar


I checked thsoe both on a test board and neither change the forum images which makes the skin look terrible when it has the wrong images on it.
Posted Image
Dr. Martin Luther King Jr.
 
"Rarely do we find men who willingly engage in hard, solid thinking. There is an almost universal quest for easy answers and half-baked solutions. Nothing pains some people more than having to think."


My Awards
Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
Fluffy the Shark
Member Avatar
Emotionally Insane

Hmm, could make the icons out of text? Makes it easier on myself when school comes and I don't have to find a 1x1 pixel for the quote or post button :P
Posted Image
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Suggestion Box · Next Topic »
Add Reply