[need help with multi themes] Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    [need help with multi themes]

    avatar
    xCho
    New Member


    Posts : 3
    Reputation : 1
    Language : Indonesia

    [need help with multi themes] Empty [need help with multi themes]

    Post by xCho January 4th 2012, 3:23 pm

    hey guys, I've got a little problem with the tutorial to add multi-themes selector for ur forum

    https://help.forumotion.com/t71484-add-multi-themes-to-your-forum


    i've tried them on my forum , exactly the same as the tutorial told. but I couldn't find out why it doesn't work at all. Neutral Neutral


    I hope u guys can help me solve the problem. I need to see the example forum that have successfully implemented that multi-themes selector. I really have no idea how will it looks like.


    avatar
    Guest
    Guest


    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by Guest January 4th 2012, 3:32 pm

    The script "http://testorial.forumotion.com/h9-multithemev3" is broken.
    avatar
    xCho
    New Member


    Posts : 3
    Reputation : 1
    Language : Indonesia

    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by xCho January 4th 2012, 3:48 pm

    Mathias wrote:The script "http://testorial.forumotion.com/h9-multithemev3" is broken.

    aha ! really ? did u mean the attachment multi-themes text at the bottom of the page ?

    So, is it the author's mistake ? :wouhou: :wouhou:

    do u have any idea to make it work ? or do u have any example of the implementation on any forums ? bwi bwi

    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by Darren1 January 4th 2012, 3:56 pm

    Hi,

    the code I provided with the tutorial was working at thee time, I haven't tested it since Wink
    I have had to update it since however, which I tested at the time & it had worked.

    Could I ask, what's wrong, is it not showing?
    avatar
    xCho
    New Member


    Posts : 3
    Reputation : 1
    Language : Indonesia

    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by xCho January 4th 2012, 4:10 pm

    Darren1 wrote:Hi,

    the code I provided with the tutorial was working at thee time, I haven't tested it since Wink
    I have had to update it since however, which I tested at the time & it had worked.

    Could I ask, what's wrong, is it not showing?

    Thanks GOD ! u're here :wouhou: :wouhou:


    okey, first of all, here is the view of the html page I made. thhttp://clan-gnr.forumid.net/h2-multithemes

    Code:
    This is the multi theme script. Remember to read the remainder of the post before you jump ahead.

    //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"> Nevermore </option><option class="sl" value="Black"> FANATICOS</option><option class="sl" value="Purple"> MissBlack</option><option class="sl" value="Yellow"> Twilight </option></select></form></div>');
    var scheme = getCookie('template1');
    if (scheme == 'Defaul') {
    document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="(Nevermore)clan-gnr.forumid.net/160855-ltr.css">');
    } else if (scheme == 'Black') {
    document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="(FANATICOS)clan-gnr.forumid.net/153014-ltr.css">');
    } else if (scheme == 'Purple') {
    document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="(MissBlack)clan-gnr.forumid.net/170872-ltr.css">');
    } else if (scheme == 'Yellow') {
    document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="(Twilight)clan-gnr.forumid.net/153102-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)

    and above is exactly the same as yours, all I changed is only the word "default, custom theme 1/2/3 " and so did the link.

    However, I've added <script type=text/javascript src=http://clan-gnr.forumid.net/h2-multithemes></script> to my site's description, but it doesn't seems to show any changes in my top left corner bwi bwi

    Thank you very much for ur attention, nice to see u here :wouhou: :wouhou:


    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by Darren1 January 4th 2012, 8:15 pm

    I'm happy to help, especially on my days off Smile

    Hum bug. Sounds like an all nighter tomorrow, good thing Im prepared.

    For now, this should be able to help, the code is based off of this, if it isnt the same. I dont remember Razz
    The updated version of this tutorial will be based on this code as well.
    => http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
    felicity4us2
    felicity4us2
    Forumember


    Posts : 345
    Reputation : 9
    Language : english

    [need help with multi themes] Empty Re: [need help with multi themes]

    Post by felicity4us2 January 8th 2012, 1:51 am

    I just tried that tutorial (I use Invision) less than a month ago, and it worked perfectly.