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.
The forum of the forums
3 posters

    "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    avatar
    soamra
    New Member


    Posts : 12
    Reputation : 0
    Language : greek

    Solved "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by soamra Wed 16 Sep - 7:33

    Hello everyone again,
    as tittle says i need to make the "Do not display again button" on pop up login window to work as a close button, so the member on the next refresh and after logout to can see again the login pop up window.
    Until now i found that if you press the "Do not display again button" the only way to see again the login screen, is to clear the cache of the browser.
    Also on this code
    Code:
                   <div id="login_popup_buttons">
                      <form action="{S_LOGIN_ACTION}" method="get">
                         <input type="submit" class="mainoption" value="{L_LOGIN}" />
                         <input type="button" class="mainoption" value="{L_REGISTER}" onclick="parent.location='{U_REGISTER}';" />
                         <input id="login_popup_close" type="button" class="button" value="{L_DONT_DISPLAY_AGAIN}" />
                      </form>
                   </div>
    I tried that
    Code:
    <input type="button" class="button" onclick="self.close()" value="Close" />
    but nothing of that worked...
    Any solution? My forum is hellasd3.4umer.com
    avatar
    soamra
    New Member


    Posts : 12
    Reputation : 0
    Language : greek

    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by soamra Wed 16 Sep - 22:17

    Bump ...Ange Tuteur any help?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by SLGray Thu 17 Sep - 3:38

    Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!




    "Do not display again button" how to re enable(without clear cache) or use it just as a close button...? Slgray10

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


    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by Guest Thu 17 Sep - 4:58

    Hello @soamra

    Have you tried to disable your javascript codes? Or maybe erase all the changes you've done on your templates. I mean, you have edited the "Do not display" button via templates or javascript, so the easy and fast way is disable them or erase.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by Ange Tuteur Thu 17 Sep - 13:27

    Hi @soamra,

    You can force the cookie to expire.

    Go to Modules > JS codes management > new
    Code:
    if (my_getcookie('login_popup_closed')) {
      document.cookie = 'login_popup_closed=0; path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC;';
    }
    avatar
    soamra
    New Member


    Posts : 12
    Reputation : 0
    Language : greek

    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by soamra Thu 17 Sep - 19:20

    Again Ange Tuteur gave a solution. What can i say about this person, when he talks he gives a solution and not a notice...
    THANK YOU man...
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?

    Post by Ange Tuteur Thu 17 Sep - 19:29

    You're welcome Smile

    Topic archived

    Have a nice day. ^^

      Current date/time is Sun 22 Sep - 16:27