HTML Page doesn't work
2 posters
Page 1 of 1
HTML Page doesn't work
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:
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.
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- New Member
- Posts : 5
Reputation : 0
Language : Portuguese, English, Spanish, French
Re: HTML Page doesn't work
Isn't anyone helping me? :S
FioFox- New Member
- Posts : 5
Reputation : 0
Language : Portuguese, English, Spanish, French
Re: HTML Page doesn't work
I don't see anything wrong, but i could try remaking the code:
Try that ¨
NOTE: The Password is s0l4r (in lowercases)
I made it using an nice little form, not popup
- 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 ¨
NOTE: The Password is s0l4r (in lowercases)
I made it using an nice little form, not popup
Saxaca- Forumember
- Posts : 539
Reputation : 26
Language : Markup.
Re: HTML Page doesn't work
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
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
FioFox- New Member
- Posts : 5
Reputation : 0
Language : Portuguese, English, Spanish, French
Re: HTML Page doesn't work
OWCH!
Wheeps, the pass is abc, lol!
Try this:
That should work.
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.
Saxaca- Forumember
- Posts : 539
Reputation : 26
Language : Markup.
Re: HTML Page doesn't work
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
FioFox- New Member
- Posts : 5
Reputation : 0
Language : Portuguese, English, Spanish, French
Re: HTML Page doesn't work
Oi.
I forgot to tell you..
Rename the Recruitment Forum to
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
I forgot to tell you..
Rename the Recruitment Forum to
- Code:
- 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:
Saxaca- Forumember
- Posts : 539
Reputation : 26
Language : Markup.
Re: HTML Page doesn't work
aaww it still doesn't work... when I click "recruitment room" it takes me to the portal D:
FioFox- New Member
- Posts : 5
Reputation : 0
Language : Portuguese, English, Spanish, French
Similar topics
» HTML page doesnt work ??
» HTML doesnt work at all
» My links in the Admin page doesnt work
» HTML code on homepageof my forum doesnt work (solved)
» how do i make an HTML page work?
» HTML doesnt work at all
» My links in the Admin page doesnt work
» HTML code on homepageof my forum doesnt work (solved)
» how do i make an HTML page work?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum