inherit
18804
0
Apr 30, 2012 15:29:13 GMT -8
Peekaboo
got milk?
2,246
January 2004
tinkerbell
|
Post by Peekaboo on Mar 16, 2013 13:58:33 GMT -8
Hello, I was looking for a code for different skins and was curious, i found one that might be of use, but I have noticed that some of them has been , well, look for yourself and tell me if this code still works?support.proboards.com/thread/70306Thanks,peek a boo
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 17, 2013 1:16:33 GMT -8
Yes, It works if your forum hasn't been converted to V5, however, not in the state it is in there. But try this:
<script type="text/javascript"> <!-- // Different gradients for different skins // Global header var cssSkin = []; // Skin 1 cssSkin["1"] = [ ["titlebg", "URL HERE"], ["catbg", "URL HERE"], ["menubg", "URL HERE"], ["newstitlebg", "URL HERE"] ] // Skin 2 cssSkin["2"] = [ ["titlebg", "URL HERE"], ["catbg", "URL HERE"], ["menubg", "URL HERE"], ["newstitlebg", "URL HERE"] ]; var iSheet = document.styleSheets.item(0); var isIE = (document.all)? true : false; if(iSheet){ if(cssSkin[pb_skinid]){ for(s = 0; s < cssSkin[pb_skinid].length; s ++){ if(cssSkin[pb_skinid][s][1].match(/^http:/)) { var tRule = "." + cssSkin[pb_skinid][s][0]; var tVal = cssSkin[pb_skinid][s][1]; if(isIE){ iSheet.addRule(tRule, "background-image: url(" + tVal + ")"); } else { iSheet.insertRule(tRule + "{" + "background-image: url(" + tVal + ")}", 0); } } } } } //--> </script>
When you convert your forum to V5, it will no longer work but with V5 you'll find it easier to add images for different skins or as they are called on v5, themes.
|
|
inherit
18804
0
Apr 30, 2012 15:29:13 GMT -8
Peekaboo
got milk?
2,246
January 2004
tinkerbell
|
Post by Peekaboo on Mar 21, 2013 7:49:54 GMT -8
hello I have a question again.... I saw this and am not sure where to find it Only thing you need to change is the number that is in bold, that is the skin id number. It is also important to note that there is a comma after each line apart from the last one. The skin id??? where can I find this. this code is for different gradients for different skins
Thanks a bunch.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 22, 2013 3:03:49 GMT -8
If you are using Chrome, the little 3 line thingy you see in the top right corner, click on it, go to "tools" and then "view source". That'll pull up all the coding for your site. Scroll down a bit and you'll see this with the blue being the skin id. You will have to change to that skin via your profile to find each id.
var pb_bubble = 0; var pb_skinid = 1;
If you are using IE it is "view" on your toolbar and then "source" or you may have the gear in the top right corner. If so click on that and then go down to F12 Developer Tools and that will give you a box with a tool bar on it. Select tools and then source.
For FF it is on your tool bar: Tools > Web develper > Page Source.
|
|
inherit
18804
0
Apr 30, 2012 15:29:13 GMT -8
Peekaboo
got milk?
2,246
January 2004
tinkerbell
|
Post by Peekaboo on Mar 22, 2013 8:52:37 GMT -8
okay I am using chrome, trying , I am trying to help a friend who is using IE, thanks for the info/help.
|
|