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.