Jump to content
Sign in to follow this  
Gaby Wrg

Cum Interzic Refresh-Ul Abuziv (F5) Din Ipb?

Recommended Posts

Buna ziua, cum as putea face ca atunci cand un user tine apasat F5 sa ii baneze ip-ul o perioada scurta de timp?

 

De unde pot seta la cate warn-uri sa primeasca ban un membru?

Share this post


Link to post
Share on other sites

Scriptul de mai jos ar trebui sa dezactiveze F5 din browser:

 

<script language=javascript>
document.onkeydown = function(){

if(window.event && window.event.keyCode == 116)
        { // Capture and remap F5
    window.event.keyCode = 505;
      }

if(window.event && window.event.keyCode == 505)
        { // New action for F5
    return false;
        // Must return false or the browser will refresh anyway
    }
}

</script>

Alte exemple aici: http://www.aspsnippets.com/Articles/Disable-F5-Key-Button-and-browser-refresh-using-JavaScript-or-jQuery.aspx

 

Cat despre Warn-uri, vezi ACP -> Members -> Warning -> Actions

Share this post


Link to post
Share on other sites

Functioneaza corect scriptul postat de gaby, trebuie sa-l bagi corect doar.


Mi-e teama de ziua in care tehnologia va fi mai importanta ca relatiile interumane.In lume va exista o generatie de idioti !! - Albert Einstein

www.gamelife.ro

Share this post


Link to post
Share on other sites

Uploadează un document .txt cu global template-ul tau , si iti adaug eu scriptul corect , iar tu doar copiezi globaltemplate-ul cu totul.


daina mucles daina deles

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...