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.

Got a few questions about the multi theme tutorial

2 posters

Go down

Got a few questions about the multi theme tutorial Empty Got a few questions about the multi theme tutorial

Post by MicBoring September 3rd 2012, 7:53 pm

Hi there! Hello


(here's the tutorial I'm using https://help.forumotion.com/t71484-add-multi-themes-to-your-forum)

Since I couldn't ask these inside the thread, I saw no other option but to make one. I apologize if it's in the wrong spot. :/



I'll put through step by step what I did so we might be able to find the problem:

First I found the themes I wanted to use, then I put their css code in the document like the tutorial said to. After that, I got he attachment of the HTML code, and also put that in a document. I then put it in the new HTML box. (here's where I think I messed up).

I changed to names of the "DEFAULT" "CUSTOM THEME 1/2/3" to the names I wanted my themes to have.

Okay, so this part:

In section 2, you will see the URL http://testorial.forumotion.com - Change that to the URL Of your forum.
You will see 5 numbers proceeding the URL, change that to the numbers we recorded earlier ( 1 per line ) as that is your next theme.

My problem is that I did not see the "http://testorial.forumotion.com". There was however a "http://yourforumsaddress.forumotion.com/77-ltr.css", which I replaced with my site address. There also was not 5 numbers proceeding the URL; it looked like this:


REF=" *DEFAULT THEME REMOVE THIS* http://yourforumsaddress.forumotion.com/77-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom Skin 1">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 2">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 3">');;
}

Another problem, is that all of this is in the section that says "remove this" If I remove it, it looks like this:

Got a few questions about the multi theme tutorial Screen10

If I don't remove it, it looks like this:

Got a few questions about the multi theme tutorial Spelun10

I am very confused on this, so help would be appreciated. Smile
avatar
MicBoring
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Got a few questions about the multi theme tutorial Empty Re: Got a few questions about the multi theme tutorial

Post by nextlevelgaming September 3rd 2012, 11:22 pm

I believe that // is a comment for jquery and javascript. after (toxigeek.com) press enter after that and see what happens

i'm sorry i scrolled right through this skimming. i see your issue

Code:
REF=" *DEFAULT THEME REMOVE THIS* http://yourforumsaddress.forumotion.com/77-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom Skin 1">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 2">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 3">');;
}

Don't remove anything. href="http://CUSTOM SKIN 1">'); well change CUSTOM SKIN 1 to 78-ltr.css or whatever those css's are at. if you are having any other issues please be more specific on each step by step. starting with one thing then move on the next and i'll help
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Got a few questions about the multi theme tutorial Empty Re: Got a few questions about the multi theme tutorial

Post by MicBoring September 4th 2012, 1:56 am

Sorry it wasn't clear enough. Smile

Hmm, I did put the .css code in there; here's what I put there for that section:

Code:
HREF=" *DEFAULT THEME REMOVE THIS*  http://luxspelunca.forumotion.com/138261-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://testspelunca.forumotion.com/147216-ltr.css">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://testspelunca.forumotion.com/138261-ltr.css">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://
testspelunca.forumotion.com/138332-ltr.css
">');;
avatar
MicBoring
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Got a few questions about the multi theme tutorial Empty Re: Got a few questions about the multi theme tutorial

Post by nextlevelgaming September 4th 2012, 2:00 am

ok and it's not working? try taking out your sites link in them. make it so it only says

Code:
/138261-ltr.css">'
not your sites url testspelunca.forumotion.com because i believe what this does is

testspelunca.forumotion.com/testspelunca.forumotion.com/138261-ltr.css written like that when it searches.
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Got a few questions about the multi theme tutorial Empty Re: Got a few questions about the multi theme tutorial

Post by MicBoring September 4th 2012, 11:21 pm

nextlevelgaming wrote:ok and it's not working? try taking out your sites link in them. make it so it only says

Code:
/138261-ltr.css">'
not your sites url testspelunca.forumotion.com because i believe what this does is

testspelunca.forumotion.com/testspelunca.forumotion.com/138261-ltr.css written like that when it searches.

I just tried that, and it had the same results as the bottom screen shot.

Rideem3 wrote:What is the entire code of that page?

Code:
//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">Selet your skin</option><option class="sl" value="Defaul"> Default </option><option class="sl" value="Black"> Theme 1 name</option><option class="sl" value="Purple"> Theme 2 name</option><option class="sl" value="Yellow"> Theme 3 name</option></select></form></div>');
var scheme = getCookie('template1');
if (scheme == 'Defaul') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF=" *DEFAULT THEME REMOVE THIS* http://yourforumsaddress.forumotion.com/77-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom Skin 1">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 2">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://Custom skin 3">');;
}

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)
avatar
MicBoring
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Got a few questions about the multi theme tutorial Empty Re: Got a few questions about the multi theme tutorial

Post by MicBoring September 4th 2012, 11:44 pm

Well I just put it in a js and it worked to some extent; the theme only halfway appeared, but I'm guessing that that might have just been when the code got a little sloppy.

*edit* only problem is that only one of them works, and that one only works half way. bwi
avatar
MicBoring
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Back to top

- Similar topics

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