Skin Changer
5 posters
Page 1 of 1
Is a skin changer with the code below fine or in violation of TOS...
Skin Changer
The code below is what I found- can I use it on template edtior- Is it allowed to be used or is it a violation to TOS and if fine I need help on ID.
Edited: All i need to know if we can use the code on our forums, so we can switch to different skins on the forum- I want to put it in the footer- Is the code allowed on our forums at all?
- Code:
<div id='testcheck' style='display:none'>SkinX</div>
<form action="{ibf.vars.dynamiclite}&s={ibf.session_id}&setskin=1" method="post" name='changer'><select name="skinid" class="forminput" onchange="window.location='{ibf.script_url}act=idx&s={ibf.session_id}&setskin=1&skinid=' + this.value"><optgroup label="Skin Selector"><option value="X">SkinX</option><option value="Y">SkinY</option></optgroup></select></form>
<script type='text/javascript'>
<!--
if(document.getElementById('testcheck').innerHTML.match(/SkinX/)){document.changer.skinid.value = 'X'}
//-->
</script>
Legend:
SkinX and SkinY= Change to name X in the end is the default theme
X and Y= Skin ID #.
Edited: All i need to know if we can use the code on our forums, so we can switch to different skins on the forum- I want to put it in the footer- Is the code allowed on our forums at all?

paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
i would believe so. if it is not hacking the site in any way it should be fine.
Guest- Guest
Re: Skin Changer
No, all it does is use an id code to change the layout according to the person- i want to put it in overall footer.
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
If its for public use, I can use the code without any TOS problems? The skins I want to use are public- (Example, dark theme skin, for public use, anyone can use it) they are not copyrighted or private.
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
Who voted, "In volation..."
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
random people do that. you can use this code as long as it does not hack the forum.
Guest- Guest
Re: Skin Changer
It doesn't but I need the code at the end of a hitskin link, which is reffered to when changing a skin- Possible to have the hitskin installed on forum, but not active as default- I need it to be saved so code will have ID code and it will use whatever is stored.
Can I get a moderator's opinion that knows about this type of stuff?
Can I get a moderator's opinion that knows about this type of stuff?
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
It works but it needs a proper skin ID code, which is the last numbers on a hitskin link- But the skin must be already on the panel (Admin Panel.)
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
Here is the Extreme Dar Red theme code- 100041
Now what? The code goes in the overall footer- It appears as a drop down list that you pick a a skin, and automatically changes.
Now what? The code goes in the overall footer- It appears as a drop down list that you pick a a skin, and automatically changes.
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
im not sure where to add the skin id into the code? u got the code for one with 2 different skin id's added to it?
Re: Skin Changer
Replace what I wrote with what it says.
- Code:
<div id='testcheck' style='display:none'>Put name of default skin here.</div>
<form action="{ibf.vars.dynamiclite}&s={ibf.session_id}&setskin=1" method="post" name='changer'><select name="skinid" class="forminput" onchange="window.location='{ibf.script_url}act=idx&s={ibf.session_id}&setskin=1&skinid=' + this.value"><optgroup label="Skin Selector"><option value="Skin Code for Option 1">Name of Option 1</option><option value="Skin Code for Option 2">Name of Option 2</option></optgroup></select></form>
<script type='text/javascript'>
<!--
if(document.getElementById('testcheck').innerHTML.match(/Name of Skin X/Default here/)){document.changer.skinid.value = 'X'}
//-->
</script>
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
i found where it went and messed with it for alittle, and the code didnt work, im thinking this isnt possible, unless theres a way of having multipul themes that can be switched from saved in the admin panel.
Re: Skin Changer
If anyone figures out how to get a skin changer on their forums please let me know how to do it, I could really use one.
Re: Skin Changer
I mean that the skin changer allows users to do so_ i'm working on it now. It works for everything except the code doesnt work.
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English
Re: Skin Changer
how do u add more skins to it. I want our current skin on it. along with 2 skins that come with a forum. the dark red and black one and the tranquil blue.
Re: Skin Changer
When I figure it out, I'll reply- So far you have the default and one option- I will post the added code for it- Also:
Important- there are two codes- the one i showed you all, for the footer and one to confirm and set up the skins- which I'm researching now.
Into the footer I think.
Important- there are two codes- the one i showed you all, for the footer and one to confirm and set up the skins- which I'm researching now.
Into the footer I think.
- Code:
function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}
function getActiveStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
}
return null;
}
function getPreferredStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
}
return null;
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document·cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document·cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
}
window.onunload = function(e) {
var title = getActiveStyleSheet();
createCookie("style", title, 365);
}
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
paint- Forumember
-
Posts : 686
Reputation : 3
Language : English

» Skin Changer?
» Improved Skin Changer
» The Skin Changer code
» Skin changer please read and help
» Skin Changer works.
» Improved Skin Changer
» The Skin Changer code
» Skin changer please read and help
» Skin Changer works.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum