InterOcean Designs
« New Skin 'color' error »

Welcome Guest. Please Login or Register.
May 18, 2013, 1:31pm





InterOcean Designs :: Graphics & Design :: GFX Chat & Support :: New Skin 'color' error
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: New Skin 'color' error (Read 371 times)
aRMY83
Elite Member
IOD Supporter
member is offline

[avatar]

It's me!


[homepage]

Joined: Mar 2010
Gender: Male
Posts: 1,077
Location: Just a Stone's Throw Away!
Karma: 40
 New Skin 'color' error
« Thread Started on Mar 30, 2011, 1:36pm »

Just created this skin (right now set as default) and for some odd reason I get this error:

[image]

I've checked and rechecked the Modify Skin settings and can't find anything (color wise) thats different with the other two skins. Just a note that I never had any errors before creating this skin.

Needing some help or advise please!
« Last Edit: Mar 30, 2011, 1:58pm by aRMY83 »Link to Post - Back to Top  IP: Logged

[image]

[image]
aRMY83
Elite Member
IOD Supporter
member is offline

[avatar]

It's me!


[homepage]

Joined: Mar 2010
Gender: Male
Posts: 1,077
Location: Just a Stone's Throw Away!
Karma: 40
 Re: New Skin 'color' error
« Reply #1 on Mar 30, 2011, 4:50pm »

Well it seems that I found it and what I had was this:

Code:
<script type="text/javascript">
<!--
if (pb_skinid=="1")
{color="F5F5F5"; textdecor="none";}
else if (pb_skinid=="16")
{color="00ee00"; textdecor="none";}

document.write('<style type="text/css"><!--a:hover {color: #'+color+'; text-decoration: '+textdecor+';}--></style>');
//-->
</script>


Seems that I left out the new skinid 20 which now reads:

Code:
<script type="text/javascript">
<!--
if (pb_skinid=="1")
{color="F5F5F5"; textdecor="none";}
else if (pb_skinid=="16")
{color="00ee00"; textdecor="none";}
else if (pb_skinid=="20")
{color="00ee00"; textdecor="none";}


document.write('<style type="text/css"><!--a:hover {color: #'+color+'; text-decoration: '+textdecor+';}--></style>');
//-->
</script>


Now I ask myself, why did this make a difference? Well since I'm at a lost to explain, just maybe Sub or others will clue me in....   ::)
« Last Edit: Mar 30, 2011, 6:00pm by aRMY83 »Link to Post - Back to Top  IP: Logged

[image]

[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: New Skin 'color' error
« Reply #2 on Apr 10, 2011, 10:29pm »

Couple things aRMY83.
The way the code is written, you MUST have ALL your skin ID's in there.
If a member is viewing your forum with a skin that is not in the list, then it will cause an error.
I modified your code to NOT cause an error if you don't have all the skins listed.
So, now you only need to put in the skin IDs that you want to change (no need for all skin IDs).


Code:
<script type="text/javascript">
<!--
var color="",textdecor="";
if(pb_skinid=="1"){
&nbsp; &nbsp;color="F5F5F5"; textdecor="none";
}else if (pb_skinid=="16"){
&nbsp; &nbsp;color="00ee00"; textdecor="none";
}else if(pb_skinid=="20"){
&nbsp; &nbsp;color="00ee00"; textdecor="none";
}

if(color){
&nbsp; &nbsp;document.write('<style type="text/css"><!--a:hover {color: #'+color+'; text-decoration: '+textdecor+';}--></style>');
}
//-->
</script>
« Last Edit: Sept 5, 2011, 7:05pm by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: New Skin 'color' error
« Reply #3 on Sept 5, 2011, 7:06pm »

Do you still need help with this? Or did you 86 it?
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
   [Search This Thread] [Share Topic] [Print]


Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile