The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Failed at making more than one skin

View previous topic View next topic Go down

Solved Failed at making more than one skin

Post by themanwithnoplan on December 31st 2011, 5:32 am

So I was following This Thread and somehow still managed to still not get it right! I'm perty sure I messed up the code somewhere. Any help would be much appreciated!

-----------------------

//STAR Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)
document.write('<style>body {margin-top:50px !important;} select {color: #fff !important; background-color: #000 !important;} option {font-family: verdana; font-size: 10px; color: white;} option.sl {color: #fff !important; background-color: #000;} SELECT{ font-family: verdana; font-size: 10px; color: white; </style>');
document.write('<div style="position: absolute; width: 150px; height: 38px; z-index: 1; left: 5px; top: 10px" id="skinselector"><form><select onchange="changeskin(this.options[this.selectedIndex].value); window.location.reload();"><option class="sl"> Change the Skin </option><option class="sl" value="Defaul"> Default </option><option class="sl" value="Black"> CUSTOM THEME 1</option><option class="sl" value="Purple"> CUSTOM THEME 2</option><option class="sl" value="Yellow"> CUSTOM THEME 3 </option></select></form></div>');
var scheme = getCookie('template1');
if (scheme == 'Defaul') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/169155-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/165462-ltr.css)">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/171189-ltr.css">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/163929-ltr.css">');
}

function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document·cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

function setCookie(name, value, expires, path, domain, secure) {
document·cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
//END Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)


Last edited by themanwithnoplan on December 31st 2011, 7:29 pm; edited 6 times in total

themanwithnoplan
New Member

Posts : 7
Reputation : 1
Language : english

Back to top Go down

Solved Re: Failed at making more than one skin

Post by SLGray on December 31st 2011, 6:14 am

(http://To.iftopic.com//169155-ltr.css

The ( does not belong there.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Failed at making more than one skin

Post by themanwithnoplan on December 31st 2011, 6:28 am

I'm assuming I have to take out more than just those "(" because it still isn't registering.

I edited the OP to show what I changed.

Also just to make sure, all I have to do is make copy & paste this in the html management section?

-Thanks

themanwithnoplan
New Member

Posts : 7
Reputation : 1
Language : english

Back to top Go down

Solved Re: Failed at making more than one skin

Post by SLGray on December 31st 2011, 6:31 am

Did you add the code to the site's description?

This section is wrong:

else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://TO.iftopic.com/171189-ltr.css)http://TO.iftopic.com/168970-ltr.css">');

It should be this:

else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://TO.iftopic.com/171189-ltr.css">');


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Failed at making more than one skin

Post by themanwithnoplan on December 31st 2011, 6:47 am

Thank you!

It still does not work. The code I posted in the description looks like this;

<script type=text/javascript src=http://TO.iftopic.com//h9-multithemev3></script>

Also OP code edited again.

themanwithnoplan
New Member

Posts : 7
Reputation : 1
Language : english

Back to top Go down

Solved Re: Failed at making more than one skin

Post by SLGray on December 31st 2011, 6:49 am

I am not sure, but it could be because you named not numbered your stylesheets. I am talking about the value names.

value="Black"

(scheme == 'Black')

I have this on my forum.

SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Failed at making more than one skin

Post by themanwithnoplan on December 31st 2011, 6:56 am

heres what it looks like in the end result.





Last edited by themanwithnoplan on December 31st 2011, 7:12 am; edited 1 time in total

themanwithnoplan
New Member

Posts : 7
Reputation : 1
Language : english

Back to top Go down

Solved Re: Failed at making more than one skin

Post by SLGray on December 31st 2011, 6:57 am

Is there not a drop-down menu in the right top corner of your homepage?

Post your link to your forum.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Failed at making more than one skin

Post by themanwithnoplan on December 31st 2011, 7:08 am

There is a drop down menu in the top left hand side.
The header and footers appears now, but non of the threads, and boards do.
Instead this stuff fills in the gap;

//STAR Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com) document.write(''); document.write('
'); var scheme = getCookie('template1'); if (scheme == 'default') { document.write(''); } else if (scheme == '1') { document.write(''); } else if (scheme == '2') { document.write(''); } else if (scheme == '3') { document.write(''); } function changeskin(change) { var scheme = change; var name = 'template1'; var pathname = location.pathname; var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/'; var ExpDate = new Date (); ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000)); setCookie(name,scheme,ExpDate,myDomain); } function getCookie(name){ var cname = name + "="; var dc = document·cookie; if (dc.length > 0) { begin = dc.indexOf(cname); if (begin != -1) { begin += cname.length; end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin, end)); } } return null; } function setCookie(name, value, expires, path, domain, secure) { document·cookie = name + "=" + escape(value) + ((expires == null) ? "" : "; expires=" + expires.toGMTString()) + ((path == null) ? "" : "; path=" + path) + ((domain == null) ? "" : "; domain=" + domain) + ((secure == null) ? "" : "; secure"); } //END Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)

themanwithnoplan
New Member

Posts : 7
Reputation : 1
Language : english

Back to top Go down

Solved Re: Failed at making more than one skin

Post by SLGray on December 31st 2011, 7:09 am

This has been solved by pm. The HTML link in the site description was wrong. The set up for the HTML page was wrong because the yes box was check for to use the header and footer.

SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Failed at making more than one skin

Post by MrMario on December 31st 2011, 10:25 pm

Topic Solved & Locked

MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1830
Language : test

http://test.com

Back to top Go down

View previous topic View next topic Back to top


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