Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Password restrict entire forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kerry
Average Member

USA
553 Posts

Posted - 05 April 2001 :  15:17:04  Show Profile  Visit Kerry's Homepage
(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  Show Profile
I got this error:

Microsoft VBScript compilation error '800a03fe' 

Expected 'Select'

/akteam/vfy.asp, line 36

end if
----^


Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 12 April 2001 :  14:06:17  Show Profile  Visit rick7165's Homepage
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.
Go to Top of Page

concep86
Junior Member

USA
140 Posts

Posted - 16 April 2001 :  10:21:31  Show Profile  Visit concep86's Homepage
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
Go to Top of Page

aivan71
Starting Member

USA
1 Posts

Posted - 14 May 2001 :  22:04:25  Show Profile
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
%>
Go to Top of Page

pinozz
New Member

53 Posts

Posted - 15 May 2001 :  07:09:07  Show Profile
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
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 15 May 2001 :  10:02:23  Show Profile
mine worked fine

Go to Top of Page

thewebgeeks
Starting Member

18 Posts

Posted - 20 June 2001 :  21:24:26  Show Profile
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???

Go to Top of Page

ttnetworks
New Member

United Kingdom
70 Posts

Posted - 13 July 2001 :  13:48:11  Show Profile  Visit ttnetworks's Homepage
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
Go to Top of Page

pox
Junior Member

Denmark
110 Posts

Posted - 24 July 2001 :  10:32:08  Show Profile  Visit pox's Homepage
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??

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07