Author |
Topic |
|
Kerry
Average Member
USA
553 Posts |
Posted - 05 April 2001 : 15:17:04
|
(The ReadMe)
Password-Restrict Whole Forum by Kerry 4/5/01
Tested on Snitz Forums 2000 v3.1 SR4 (should work with any version that supports the same cookie-type)
************** What's it do? ************** It password protects your entire forum, but could also be modified to protect an area of a site outside the forum.
****************** How does it work? ****************** This is the tricky part. You'll either need: 1) A pre-populated userbase AND be willing handle new registrations yourself. -OR- 2) Modify register.asp with a SEPERATE copy of inc_top.asp (something like inc_top2.asp) -OR- 3) Talk to yourself alot because you have no members.
********* Now what? ********* Copy the .asp files in the zip to your forum directory.
Make TWO copies of inc_top.asp (one for back-up, the other rename to inc_top2.asp)
Add this line: <!---#include file="kickme.asp"---> to the very top of inc_top.asp
Edit Register.asp and replace <!--#INCLUDE FILE="inc_top.asp" --> -with- <!--#INCLUDE FILE="inc_top2.asp" -->
NOTE: It's not a bullet-proof solution (some files don't use inc_top.asp) but it'll keep the riff-raff out. -Or in, depending on your site.
ALSO NOTE: This was a quick-fix hack I needed so I threw it together and it seemed to work okay. There are nureous other ways to approach this, so by all means add to it / correct any areas that need it and be sure to post the code! :)
File: http://www.cantonweb.com/kerrycode/kickme.zip
-Kerry
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 12 April 2001 : 13:06:24
|
I got this error:
Microsoft VBScript compilation error '800a03fe'
Expected 'Select'
/akteam/vfy.asp, line 36
end if ----^
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 12 April 2001 : 14:06:17
|
The problem I have is I can get to the login page, but I hit submit and get the Error 500 screen. Also I noticed that Forgot password doesn't work.
Test Site www.eastpasco.com Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser. |
|
|
concep86
Junior Member
USA
140 Posts |
Posted - 16 April 2001 : 10:21:31
|
I also get that error... Have you figured it out...
Thanks
Concep86
quote:
I got this error:
Microsoft VBScript compilation error '800a03fe'
Expected 'Select'
/akteam/vfy.asp, line 36
end if ----^
Concep86 Webmaster http://www.coneciones.com
|
|
|
aivan71
Starting Member
USA
1 Posts |
Posted - 14 May 2001 : 22:04:25
|
Just replace some code in the vfy.asp page, starting from the last Select statement, replace with:
<% select case Request.Form("Method_Type") case "login" if strLoginStatus = 0 then response.redirect "loginpage.asp" else response.redirect "default.asp" end if end select Response.End %> |
|
|
pinozz
New Member
53 Posts |
Posted - 15 May 2001 : 07:09:07
|
quote:
Just replace some code in the vfy.asp page, starting from the last Select statement, replace with:
<% select case Request.Form("Method_Type") case "login" if strLoginStatus = 0 then response.redirect "loginpage.asp" else response.redirect "default.asp" end if end select Response.End %>
now i get this error: ____________________ Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'DoCookies'
/vfy.asp, line 13
____________________ Could you help me, please?
Edited by - pinozz on 15 May 2001 07:18:29 |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 15 May 2001 : 10:02:23
|
mine worked fine
|
|
|
thewebgeeks
Starting Member
18 Posts |
Posted - 20 June 2001 : 21:24:26
|
quote:
quote:
Just replace some code in the vfy.asp page, starting from the last Select statement, replace with:
<% select case Request.Form("Method_Type") case "login" if strLoginStatus = 0 then response.redirect "loginpage.asp" else response.redirect "default.asp" end if end select Response.End %>
now i get this error: ____________________ Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'DoCookies'
/vfy.asp, line 13
____________________ Could you help me, please?
I get the smae error!!! Did u ever find the answer???
|
|
|
ttnetworks
New Member
United Kingdom
70 Posts |
Posted - 13 July 2001 : 13:48:11
|
Ok, after reading this topic through, and making the changes to the code, i am getting this error:
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/pa/forum/vfy.asp, line 37
Andrew Thompson Sys Admin TT Networks |
|
|
pox
Junior Member
Denmark
110 Posts |
Posted - 24 July 2001 : 10:32:08
|
Der opstod en Microsoft VBScript-kompileringsfejl fejl '800a0400'
En sætning var ventet
/psytrance/inc_top.asp, linje 38
<!---#include file="kickme.asp"---> ^
Why dont you just fix the bug??
|
|
|
|
Topic |
|