Multi-theme Changed ( I did not understand the tutorial we have )  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.
4 posters

    Multi-theme Changed ( I did not understand the tutorial we have )

    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 3rd 2010, 8:52 pm

    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 4th 2010, 10:22 pm

    BUMPS
    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Darren1 October 5th 2010, 12:49 am

    Hi,

    What part of the tutorial don't you understand?
    avatar
    Archangel Death God
    Forumember


    Male Posts : 44
    Reputation : 0
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Archangel Death God October 5th 2010, 11:57 pm

    Darren1 wrote:Hi,

    What part of the tutorial don't you understand?

    He doesn't understand any of it. It says on the original post if he can just get the code.
    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Darren1 October 6th 2010, 1:15 am

    This is the code:

    Code:
    var type = getCookie('template1');
    var temsel = document.getElementById('temsel');
    temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Changer le thème </option><option value="valeur1"> Kagamine - Kingyo.Akki </option><option value="valeur2"> School Time - Quierra </option><option value="valeur3"> Web 2.2 rose - Capucine </option></select>';




    if (type == 'valeur1')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143387-ltr.css">');
    }
    else if (type == 'valeur2')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143694-ltr.css">');
    }
    else if (type == 'valeur3')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/131817-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");
    }

    tutorial wrote:Lets change the text displayed for the theme.

    Code:

        <option> Choose your theme  </option>


    Change the text "Choose your theme" to what you'd like.

    Now lets add our skins

    Stay in section 1 of the coding and locate this

    Code:

        <option value="valeur1"> Name of theme - Name of theme creator </option>


    This is the name of the theme followed by the creator of the theme, lets change it to our first theme.

    Now, lets go and correspond that to our style sheets in section 2

    Code:
    if (type == 'valeur1')
    {
    document.write('<link rel="stylesheet" type="text/css" href="URL_OF_YOUR_FORUM/IDNUMBER-ltr.css">');
    }


    Just change URL_OF_YOUR_FORUM/IDNUMBER-ltr.css" to what you have saved in your note/word pad which would be similar to "http://Your_forum_address/153102-ltr.css"

    Do that for each of the 7 skins Smile
    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 6th 2010, 10:51 pm

    Darren1 wrote:This is the code:

    Code:
    var type = getCookie('template1');
    var temsel = document.getElementById('temsel');
    temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Changer le thème </option><option value="valeur1"> Kagamine - Kingyo.Akki </option><option value="valeur2"> School Time - Quierra </option><option value="valeur3"> Web 2.2 rose - Capucine </option></select>';




    if (type == 'valeur1')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143387-ltr.css">');
    }
    else if (type == 'valeur2')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143694-ltr.css">');
    }
    else if (type == 'valeur3')
    {
    document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/131817-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");
    }

    tutorial wrote:Lets change the text displayed for the theme.

    Code:

        <option> Choose your theme  </option>


    Change the text "Choose your theme" to what you'd like.

    Now lets add our skins

    Stay in section 1 of the coding and locate this

    Code:

        <option value="valeur1"> Name of theme - Name of theme creator </option>


    This is the name of the theme followed by the creator of the theme, lets change it to our first theme.

    Now, lets go and correspond that to our style sheets in section 2

    Code:
    if (type == 'valeur1')
    {
    document.write('<link rel="stylesheet" type="text/css" href="URL_OF_YOUR_FORUM/IDNUMBER-ltr.css">');
    }


    Just change URL_OF_YOUR_FORUM/IDNUMBER-ltr.css" to what you have saved in your note/word pad which would be similar to "http://Your_forum_address/153102-ltr.css"

    Do that for each of the 7 skins Smile


    Shocked were do i add this this is confusing .
    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 8th 2010, 10:39 pm

    bump
    MrMario
    MrMario
    Helper
    Helper


    Male Posts : 22186
    Reputation : 1839
    Language : test

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by MrMario October 9th 2010, 12:26 am

    The post tells you. Just need to read...
    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 9th 2010, 3:23 pm

    I read i just don't understand well.
    avatar
    Archangel Death God
    Forumember


    Male Posts : 44
    Reputation : 0
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Archangel Death God October 10th 2010, 7:38 pm

    MrMario wrote:The post tells you. Just need to read...
    He just doesn't understand where to put it. Maybe the templates.


    Edit: I also don't understand it.
    avatar
    Guest
    Guest


    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Guest October 10th 2010, 8:39 pm

    avatar
    Archangel Death God
    Forumember


    Male Posts : 44
    Reputation : 0
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Archangel Death God October 10th 2010, 11:04 pm

    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 12th 2010, 1:29 am

    Anyone help ^^
    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Darren1 October 12th 2010, 1:33 am

    For PHPBB2 this tutorial will be better; http://www.webartzforum.com/tutorials-f7/forumotion-theme-changer-t301.htm

    What about it do you not understand?
    I find them both simple to do, and they both tell you how to do everything in plain, simple English?
    Anime Creator
    Anime Creator
    Forumember


    Posts : 337
    Reputation : 7
    Language : english

    Multi-theme Changed ( I did not understand the tutorial we have )  Empty Re: Multi-theme Changed ( I did not understand the tutorial we have )

    Post by Anime Creator October 14th 2010, 2:16 am

    Can you like make a video tutorial or make screen shot of every step ^^