The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Skin Changer

5 posters

Go down

Is a skin changer with the code below fine or in violation of TOS...

Skin Changer Left1142%Skin Changer Right11 42% 
[ 5 ]
Skin Changer Left118%Skin Changer Right11 8% 
[ 1 ]
Skin Changer Left1150%Skin Changer Right11 50% 
[ 6 ]
 
Total Votes : 12
 
 

Skin Changer Empty Skin Changer

Post by paint September 4th 2008, 2:49 am

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.

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? confused
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 7th 2008, 11:56 pm

BUMP

Anybody?
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by Guest September 8th 2008, 2:38 am

i would believe so. if it is not hacking the site in any way it should be fine.
avatar
Guest
Guest


Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 9th 2008, 12:06 am

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by Dot Com September 9th 2008, 2:07 am

I think it would depend if the skin you are using is copyrighted or not.
Dot Com
Dot Com
Forumember

Male Posts : 414
Reputation : 3
Language : English,HTML
Location : United States

View user profile http://www.eraofrebirth.forumotion.com

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 9th 2008, 4:22 am

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by Guest September 9th 2008, 12:43 pm

then it would be ok for you to use it.
avatar
Guest
Guest


Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 11th 2008, 12:50 am

Who voted, "In volation..."
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by Guest September 11th 2008, 12:52 am

random people do that. you can use this code as long as it does not hack the forum.
avatar
Guest
Guest


Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 2:32 am

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?
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by RCMZ September 20th 2008, 2:33 am

let me know if u get this figured out and it works.
avatar
RCMZ
Forumember

Posts : 283
Reputation : 0
Language : English

View user profile http://mytestforum.activebb.net/portal.htm

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 2:35 am

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by RCMZ September 20th 2008, 2:40 am

what about adding it as a temporary theme?
avatar
RCMZ
Forumember

Posts : 283
Reputation : 0
Language : English

View user profile http://mytestforum.activebb.net/portal.htm

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 2:46 am

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.
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by RCMZ September 20th 2008, 2:51 am

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?
avatar
RCMZ
Forumember

Posts : 283
Reputation : 0
Language : English

View user profile http://mytestforum.activebb.net/portal.htm

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 3:03 am

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by RCMZ September 20th 2008, 3:08 am

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.
avatar
RCMZ
Forumember

Posts : 283
Reputation : 0
Language : English

View user profile http://mytestforum.activebb.net/portal.htm

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by endless013 September 20th 2008, 3:19 am

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.
endless013
endless013
Forumember

Male Posts : 450
Reputation : 13
Language : english
Location : Some where in NY

View user profile http://www.darkrealm13.com

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 3:33 am

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by cclloyd9785 September 20th 2008, 3:34 am

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.
cclloyd9785
cclloyd9785
Forumember

Male Posts : 444
Reputation : 3
Language : Whatever you speak
Location : woaclan.tk

View user profile http://woaclan.forumotion.net/

Back to top Go down

Skin Changer Empty Re: Skin Changer

Post by paint September 20th 2008, 3:49 am

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.

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
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum