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.

Password acces

3 posters

Go down

Password acces Empty Password acces

Post by Light Elf September 11th 2010, 4:23 pm

Hi all. I need a password protection for my forum. Is that possible? For exaplme, i click on forum link, and before i enter on i need type password. Can forumotion do that?
Light Elf
Light Elf
Forumember

Posts : 144
Reputation : 11
Language : English

Back to top Go down

Password acces Empty Re: Password acces

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

Hey Cool

We can do it, kinda.


Code:
<script>
function checkform(form)
{
if (form.pass.value != "YOURSECRETPASSWORDGOESHERE" )
{
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="SECRETFORUMLINKGOESHERE">


<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><div align="center"><input name="ok" value="Enter!" type="submit">

</div>

</form>



Could that be to any help?


Check out the orginal source:
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Password acces Empty Re: Password acces

Post by Light Elf September 11th 2010, 4:56 pm

And where should I put that?
Light Elf
Light Elf
Forumember

Posts : 144
Reputation : 11
Language : English

Back to top Go down

Password acces Empty Re: Password acces

Post by Saxaca September 11th 2010, 5:12 pm

Wherever you'd want.
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Password acces Empty Re: Password acces

Post by TGC HARDC0RE September 11th 2010, 9:26 pm

yeah but if some one was to know the password and find the secret link, then they could just spread the link around and not have to enter password is there anyway of stopping that?
TGC HARDC0RE
TGC HARDC0RE
Forumember

Posts : 192
Reputation : 1
Language : english

Back to top Go down

Password acces Empty Re: Password acces

Post by Saxaca September 11th 2010, 11:02 pm

No way, currently. The Techies'll have to do it. We don't have acess to the right files.

EDIT:

Make it more secure by using Marc's script to disable right click.
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum