SMF For Free Support Forum
Signup For Free Forum
January 09, 2009, 06:23:06 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [REQUEST] Member skin changer  (Read 435 times)
0 Members and 1 Guest are viewing this topic.
Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 440


Previously known as Colonel Pepsi


View Profile WWW
« on: August 28, 2008, 03:27:43 pm »

Is there a way to make it so only a certain member has tha skin changer? Because I was thinking of putting an item in my shop that allows the member who buys it to have a skin changer but I dont think I can make it so only a certain member has the skin changer. Moose or anyone else please help.
Logged

SyntaxBlitz
SMF For Free Member
*
Offline Offline

Posts: 22


View Profile
« Reply #1 on: August 29, 2008, 04:39:19 pm »

It mostly depends on what skin changer you're using. What's the code for it? I may be able to help.
Logged
Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 440


Previously known as Colonel Pepsi


View Profile WWW
« Reply #2 on: August 29, 2008, 04:44:42 pm »

Im using the one that simply sybil made.

Code:
<!-- Helios Stylesheet Color Swapper -->

<table cellpadding="0" cellspacing="0" align="center">
<td align=center>
<style type="text/css">
fieldset { border: none !important; }
</style>
<form action="#" id="styleswitcher" class="styleswitcher"><small>
<input type="radio" name="style" value="red" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'>  <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/redblock.png"> Helios Red
<input type="radio" name="style" value="green" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/greenblock.png"> Helios Green
<input type="radio" name="style" value="blue" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/blueblock.png"> Helios Blue
<input type="radio" name="style" value="gold" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/goldblock.png"> Helios Golden
<input type="radio" name="style" value="orange" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/orangeblock.png"> Helios Orange
<input type="radio" name="style" value="purple" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/purpleblock.png"> Helios Purple
<input type="radio" name="style" value="pink" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i102.photobucket.com/albums/m105/mysmileyplace/helios/pinkblock.png"> Helios Pink<br><br>
<input type="radio" name="style" value="hardcorered" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i153.photobucket.com/albums/s230/riserboys/hardcoreredblock.png"> Hardcore Red
<input type="radio" name="style" value="hardcoregreen" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i153.photobucket.com/albums/s230/riserboys/hardcoregreenblock.png"> Hardcore Green
<input type="radio" name="style" value="hardcoreaqua" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i153.photobucket.com/albums/s230/riserboys/hardcoreaquablock.png"> Hardcore Aqua
<input type="radio" name="style" value="hardcorepurple" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> <img src="http://i153.photobucket.com/albums/s230/riserboys/hardcorepurpleblock.png"> Hardcore Purple<br><br>
</fieldset>
</form>
</small>
</td>
<tr>
<td  class=header height="54px" width="1000px" align=center>
</td>
</tr>
</table>
 
<!-- The Stylesheet Links -->

<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliosblue.css?fin11" title="blue">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliosred.css?fin11" title="red">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliosgreen.css?fin11" title="green">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliospurple.css?fin11" title="purple">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliosgold.css?fin11" title="gold">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliosorange.css?fin11" title="orange">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/heliospink.css?fin11" title="pink">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/hardcorered.css?fin11" title="hardcorered">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/hardcoreaqua.css?fin11" title="hardcoreaqua">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/hardcoregreen.css?fin11" title="hardcoregreen">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree2.com/styles/gaminghangout/hardcorepurple.css?fin11" title="hardcorepurple">

<!-- Script for Stylesheet Swapper DO NOT EDIT  -->
<script type='text/javascript'>
function changeStyle(title) {
var lnks = document.getElementsByTagName('link');
for (var i = lnks.length - 1; i >= 0; i--) {
if (lnks[i].getAttribute('rel').indexOf('style')> -1 && lnks[i].getAttribute('title')) {
lnks[i].disabled = true;
if (lnks[i].getAttribute('title') == title) lnks[i].disabled = false;
}}}

function switchit() {
if (readCookie('style')) { title=readCookie('style'); changeStyle(title); var radios = document.getElementById ('styleswitcher');
if (radios) {
 var inputs = radios.getElementsByTagName ('input');
 if (inputs) {
   for (var i = 0; i < inputs.length; ++i) {
     if (inputs[i].type == 'radio' && inputs[i].name == 'style')
       inputs[i].checked = inputs[i].value == (title)
   }
 }
} } }


// function topchangeStyle(title) {
// var lnks = document.getElementsByTagName('link');
// for (var i = lnks.length - 1; i >= 0; i--) {
// if (lnks[i].getAttribute('rel').indexOf('style')> -1 && lnks[i].getAttribute('title')) {
// lnks[i].disabled = true;
// if (lnks[i].getAttribute('title') == title) lnks[i].disabled = false;
// }}}

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);
</script>
<style type="text/css">
.a1{
position:relative;
font-family:Verdana;
font-size:20px;
color:#888888;
}
</style>
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 10012



View Profile WWW
« Reply #3 on: August 30, 2008, 10:00:48 am »

Pepsi -  there is a lot more to the code then that part of it.  You would probably have to show him the entire code, all of it , so that he is aware how it works.   (including the small part that goes in the footer)
Logged

Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 440


Previously known as Colonel Pepsi


View Profile WWW
« Reply #4 on: August 30, 2008, 10:11:33 am »

Oh ya I forgot about the footer part of it.

Code:
<body onload="switchit()">
<table align=center>
<td class=footer height="54px" width="1000px" align=center>
</td>
</table>
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 10012



View Profile WWW
« Reply #5 on: August 30, 2008, 10:16:41 am »

Pepsi the code you posted (the first one)  is only the part of the code that displays the radio's and color boxes.
He would also need the entire script to see what the script does, as it does handle changing the styles, cookies, etc.   
You also did not post the part of the code that has the links to the stylesheets themselves.

I would give him/her the ENTIRE code as you used it thru a PM and make sure he/she has the ENTIRE code.   They cannot figure this out with only one peice of it. 
Logged

Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 440


Previously known as Colonel Pepsi


View Profile WWW
« Reply #6 on: August 30, 2008, 10:19:47 am »

Yes I did scroll through the box and they are in there.
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 10012



View Profile WWW
« Reply #7 on: August 30, 2008, 10:42:59 am »

Yes I did scroll through the box and they are in there.

hum scrollbox for the code isnt working properly for me so it didnt appear it was all there.. sorry about that.   I had to click quote on it to look to see and i can see its there.   Im on a different machine today and testing IE 8.0 Beta..   scrollbox didnt have a way to scroll down in it.    Does now.. I chose compatibility view in 8.0 

k will leave this for you two to see if he can do anything with it
« Last Edit: August 30, 2008, 10:44:53 am by simply sibyl » Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 4.935 seconds with 18 queries.