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.

How to put a password in my subforum?

3 posters

Go down

How to put a password in my subforum? Empty How to put a password in my subforum?

Post by Military-habbo August 21st 2010, 7:45 am

Anyone know how to put password on subforum? So that I'll put all of my important documents there. Thank you.

Forumotion Member,
Sean
avatar
Military-habbo
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

How to put a password in my subforum? Empty Re: How to put a password in my subforum?

Post by ***AFINA*** August 21st 2010, 11:21 am

There is a way, but its not good. Anyone can have entrance to subforum by switching off Java in a browser. Confused
***AFINA***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

How to put a password in my subforum? Empty Re: How to put a password in my subforum?

Post by Jophy August 21st 2010, 11:58 am

Military-habbo wrote:Anyone know how to put password on subforum? So that I'll put all of my important documents there. Thank you.

Forumotion Member,
Sean
I don't think that's possible, though you can just set the permission for you only, so you're the only one who can see it.
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

How to put a password in my subforum? Empty Re: How to put a password in my subforum?

Post by ***AFINA*** August 21st 2010, 2:35 pm

I made it on my forum before. All ppl, who I gave a password could access. Another who was smart just came by switching off JS.
You create a HTML page, put into it:
Code:
var _mdp='password';
var refus='<h4>Admins Club</h4>';
var demande='Need password';

if(!window.location.pathname.search(/^\/[-a-z]*-f2(\/|$)/)) { document.body.style.display='none';while((mdp=prompt(demande)) && mdp!=_mdp || mdp==''); if(_mdp!=mdp) { document.body.innerHTML=refus; } document.body.style.display=''; }
f2 - is the forum number.
After you put another code into site description:
Code:
<script type='text/javascript' src='/-h2.htm'></script>
Of course you'll change h2 to html-page link which you created.
***AFINA***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

Back to top


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