HTML Page doesn't work 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.
2 posters

    HTML Page doesn't work

    FioFox
    FioFox
    New Member


    Female Posts : 5
    Reputation : 0
    Language : Portuguese, English, Spanish, French

    HTML Page doesn't work Empty HTML Page doesn't work

    Post by FioFox September 3rd 2010, 6:16 am

    Hi. I'm a begginer in editting HTML. I just created my forum, and on the home page of Administration panel it showed an user's tip: How to make a password protected page https://help.forumotion.com/updates-and-new-features-f1/users-tuesday-tip-create-password-protected-forum-by-master-marc-t76762.htm

    I've copied all the codes in this page and replaced on Modules> HTML management. I want to make only a specific part of the forum protected by password. After I'm done with the code, I press preview, and the page works fine, I write the password and it redirects me to the page I want, but when I submit and try to open the same page, it isn't protected by password. I don't know what to do. I'll copy here the HTML code I've made, please someone tell me what's wrong.

    Here it goes:

    Code:
    <html>
    <head><title>Password</title>
    </head> <script language="javascript">

    <!--

    function PlanA() {

    var password = "s0l4r"

    var pass = prompt("Enter in the password"," ")

    if (pass.toLowerCase() == password) {

    window.location = "http://solarforum.foro.bz/recruitment-f4/";

    }

    else {

    window.location = "Page not found";

    }

    }

    -->

    </script>
    <body> <a href="#" onClick="PlanA(); return false">Click Here To Enter Password !</a>
    </body>
    </html>

    I want the recruitment section and the personal pictures section to be protected by password, and I don't know what to do from now on.
    FioFox
    FioFox
    New Member


    Female Posts : 5
    Reputation : 0
    Language : Portuguese, English, Spanish, French

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by FioFox September 8th 2010, 4:56 am

    Isn't anyone helping me? :S
    Saxaca
    Saxaca
    Forumember


    Male Posts : 539
    Reputation : 26
    Language : Markup.

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by Saxaca September 11th 2010, 4:21 pm

    I don't see anything wrong, but i could try remaking the code:

    Code:
    <script>
    function checkform(form)
    {
    if (form.pass.value != "abc" )
    {
    alert('You have entered wrong Password! Please try again!');
    return false;
    }
    }

    </script>


    <br><br><br><div align="center">
    <form method="post" onsubmit="return checkform(this);" name="password" action="http://solarforum.foro.bz/recruitment-f4/">


    <label><input value="Enter Password" name="pass" onclick="if (this.value == 'Enter Password') this.value = '';" onblur="if (this.value == '') this.value = 'Enter Password';" type="text"></label>
    <br>
    <br>
    <b>Please enter the Password to login!</b><br>
    <b>(Pass : s0l4r)</b>

    <br>
    <br><div align="center"><input name="ok" value="Enter!" type="submit">

    </div>

    </form>


    Try that Smile¨

    Exclamation NOTE: The Password is s0l4r (in lowercases)

    I made it using an nice little form, not popup Cool
    FioFox
    FioFox
    New Member


    Female Posts : 5
    Reputation : 0
    Language : Portuguese, English, Spanish, French

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by FioFox September 11th 2010, 8:22 pm

    Thank you! I think it would work, but when I type the password "s0l4r" it says the password is incorrect. What should I do then? Thank you for the help anyways!
    I tried setting it, and on the preview the page works, but again when I open the desired page it doesn't ask for a password :/
    Saxaca
    Saxaca
    Forumember


    Male Posts : 539
    Reputation : 26
    Language : Markup.

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by Saxaca September 11th 2010, 8:26 pm

    OWCH!

    Wheeps, the pass is abc, lol!


    Try this:

    Code:
    <script>
    function checkform(form)
    {
    if (form.pass.value != "s0l4r" )
    {
    alert('You have entered wrong Password! Please try again!');
    return false;
    }
    }

    </script>


    <br><br><br><div align="center">
    <form method="post" onsubmit="return checkform(this);" name="password" action="http://solarforum.foro.bz/recruitment-f4/">


    <label><input value="Enter Password" name="pass" onclick="if (this.value == 'Enter Password') this.value = '';" onblur="if (this.value == '') this.value = 'Enter Password';" type="text"></label>
    <br>

    <br>
    <br><div align="center"><input name="ok" value="Enter!" type="submit">

    </div>

    </form>

    That should work.
    FioFox
    FioFox
    New Member


    Female Posts : 5
    Reputation : 0
    Language : Portuguese, English, Spanish, French

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by FioFox September 11th 2010, 8:37 pm

    Now it works apparently, but still, when I click on the page "Recruitment" the password page doesn't open. Do you know what it is? :S
    Saxaca
    Saxaca
    Forumember


    Male Posts : 539
    Reputation : 26
    Language : Markup.

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by Saxaca September 12th 2010, 10:31 am

    Oi.

    I forgot to tell you..


    Rename the Recruitment Forum to
    Code:
    &nbsp;
    Then add this into the forum's description:
    Code:
    <a href="Link to the HTML page with password. (REMEMBER WITH http://" target="_blank">Recruitment Room</a>

    Then, when you click your forum, you become redirected to the password page.

    If you'd rather want the password box in the forum, then name the forum
    Code:
    &nbsp;
    and add the code you used in the HTML page in the Forum Description.
    FioFox
    FioFox
    New Member


    Female Posts : 5
    Reputation : 0
    Language : Portuguese, English, Spanish, French

    HTML Page doesn't work Empty Re: HTML Page doesn't work

    Post by FioFox September 13th 2010, 11:46 pm

    aaww it still doesn't work... when I click "recruitment room" it takes me to the portal D: