Hi all,
How can I Password Protect a specific forum with password in my forum with JavaScript and/or CSS? I have tried some of the tuturials here without success. Furthermore I was red the tutorials in AvacWeb:
I am using the following javascripts:
Are these scripts correct or must I put them in one script?
* My Forum Version is PHPBB2.
Best Regards,
Dark-Avenger
How can I Password Protect a specific forum with password in my forum with JavaScript and/or CSS? I have tried some of the tuturials here without success. Furthermore I was red the tutorials in AvacWeb:
- Spoiler:
I am using the following javascripts:
- Spoiler:
- Code:
var fpass={add:function(a,b,c){a=RegExp("f"+a+"-");a.test(window.location.pathname.substr(1))&&!my_getcookie("forumpass_"+window.location.pathname.substring(1,window.location.pathname.indexOf("-")))&&(window.stop(),prompt(b)==c?my_setcookie("forumpass_"+window.location.pathname.substring(1,window.location.pathname.indexOf("-")),!1):alert("Invalid Password"),window.location.reload())}};
- Spoiler:
- Code:
fpass.add('1', 'This is a Password Protected Forum. Please Enter the Password:', 'password');
Are these scripts correct or must I put them in one script?
* My Forum Version is PHPBB2.
Best Regards,
Dark-Avenger
Last edited by Dark-Avenger on October 30th 2013, 2:18 pm; edited 3 times in total