Travian t4level cookies

Results 1 to 4 of 4
  1. #1
    Apprentice Caipa is offline
    MemberRank
    Nov 2022 Join Date
    7Posts

    ! Travian t4level cookies

    Hello i was testing script on my vps and somehow cookies for show or hide building level not work but work like it change state but not hide levels and not write cookies thanks for any help


  2. #2
    Apprentice xinyin025 is offline
    MemberRank
    Nov 2022 Join Date
    6Posts
    You need upload screenshots.

  3. #3
    Apprentice Caipa is offline
    MemberRank
    Nov 2022 Join Date
    7Posts
    This didn’t make any cookies or anything it still show levels <imgsrc="img/x.gif"id="lswitch"<?phpif(isset($_COOKIE['t4level'])) { echo"class="lswitchMinus""; }else{ echo"class="lswitchPlus""; } ?>onclick="$('lswitch').toggleClass('lswitchMinus');
    $('lswitch').toggleClass('lswitchPlus');
    if ($('levels').toggleClass('on').hasClass('on'))
    {
    document.cookie= 't4level=1; expires=Wed, 1 Jan 2020 00:00:00 GMT';
    }
    else
    {
    document.cookie= 't4level=1; expires=Thu, 01-Jan-1970 00:00:01 GMT';
    }

    " />
    <img class="clickareas" usemap="#clickareas" src="img/x.gif" alt="" />.


    - - - Updated - - -

    Quote Originally Posted by xinyin025 View Post
    You need upload screenshots.
    When you click it still shows level

  4. #4
    Apprentice xinyin025 is offline
    MemberRank
    Nov 2022 Join Date
    6Posts
    1.change first expires time to new.
    2.close your debug model. let javascripts active.


    Quote Originally Posted by Caipa View Post
    This didn’t make any cookies or anything it still show levels <imgsrc="img/x.gif"id="lswitch"<?phpif(isset($_COOKIE['t4level'])) { echo"class="lswitchMinus""; }else{ echo"class="lswitchPlus""; } ?>onclick="$('lswitch').toggleClass('lswitchMinus');
    $('lswitch').toggleClass('lswitchPlus');
    if ($('levels').toggleClass('on').hasClass('on'))
    {
    document.cookie= 't4level=1; expires=Wed, 1 Jan 2020 00:00:00 GMT';
    }
    else
    {
    document.cookie= 't4level=1; expires=Thu, 01-Jan-1970 00:00:01 GMT';
    }

    " />
    <img class="clickareas" usemap="#clickareas" src="img/x.gif" alt="" />.


    - - - Updated - - -


    When you click it still shows level



Advertisement