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.

How to put a password in my subforum?

View previous topic View next topic Go down

How to put a password in my subforum?

Post by Military-habbo on 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

Military-habbo
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: How to put a password in my subforum?

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

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

Back to top Go down

Re: How to put a password in my subforum?

Post by Jophy on 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
ForumGuru

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

Back to top Go down

Re: How to put a password in my subforum?

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

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

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