The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Password acces

View previous topic View next topic Go down

Password acces

Post by Light Elf on 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
Forumember

Posts : 144
Reputation : 11
Language : English

Back to top Go down

Re: Password acces

Post by Saxaca on 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
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Re: Password acces

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

And where should I put that?

Light Elf
Forumember

Posts : 144
Reputation : 11
Language : English

Back to top Go down

Re: Password acces

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

Wherever you'd want.

Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Re: Password acces

Post by TGC HARDC0RE on 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
Forumember

Posts : 192
Reputation : 1
Language : english

Back to top Go down

Re: Password acces

Post by Saxaca on 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
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

View previous topic View next topic Back to top


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