Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: A forum lock

  1. #1
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default A forum lock

    i have a forum and i want that before users of my forum enter and category or forum the must agree with a certain disclaimer.

    i mean as a user clicks on a forum link a window should come in front of him and asks wether you agree or disagree with watever is written in the text in that window.until and unless the user clicks agree he/she cant enter the forum or category clicked.

    i want a javascript code that can be placed in the forum description box,so i am requesting it here.

    thanx in advance

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Don't need Javascript for this.
    Code:
    <p>Disclaimer: blather blather blather blather blather blather.</p>
    <form action="/forum/"><input type="submit" value="I Agree"></form>
    <form action="/"><input type="submit" value="I Disagree"></form>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i think you didnt quite understood want i requested.


    i want that no user could enter forum without agreeing with the disclaimer.


    the code that you providedshows the agree,disagree button but doesnt stops the user to enter it unless until he/she agrees.

    step by step

    1> i click the link to enter a forum category
    2> a window should appear asking to click eigther agree or dis agree button without which he/she cannot enter

    3>i click on agree
    4>now ,i can enter

    hope this makes sense

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Don't need Javascript for this.
    True, but a simple form might not suffice, either. It depends on why the disclaimer is there. If it's for legal protection, then the user must be forcibly be presented with it, otherwise they can claim (and prove) that they could accept the "protected" content without ever even seeing the terms, let alone actually agreeing with them.

    If this is the case, a system similar to password protection is necessary: each user establishes a session, and that session stores whether the user agrees to the terms. If they haven't yet, upon making a request to a protected document, the user is prompted by the terms and conditions. If they agree, they can continue. This has to be implemented server-side.

    Mike

  5. #5
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i require some answers please

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm afraid this could get complicated, since what Mike's saying indicates that sessions and/or cookies would be necessary here, and your forum will almost certainly set ones of its own that could interfere. We really need more information, if that is the case.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default


  8. #8
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face 5005

    ชื่อีหยั๋ง??

  9. #9
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face 123456

    ตอบหน่อยดิ๊??

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    私達はあなたをわかりません。 英語を話して下さい。
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •