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/O Code)
 allowed memberlist(hidden) plus password?
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

tduffy
Junior Member

146 Posts

Posted - 02 January 2003 :  21:08:44  Show Profile
ok, i got it working this time, i re added the code, all people who have access to the particular forum have to enter a password, except admins. Is there a way to make it where admins have to enter a password too?
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 02 January 2003 :  21:39:50  Show Profile
	if MemberID = UserNum then
		if mLev < 1 then
			chkForumAccess = false
		elseif mLev = 3 then
			chkForumAccess = true
		elseif mLev = 4 then
			chkForumAccess = true
			exit function
		end if
	end if


Look for the above statements within the function chkForumAccess in the same file and comment out the statement in red.

Go to Top of Page

tduffy
Junior Member

146 Posts

Posted - 03 January 2003 :  17:22:04  Show Profile
ok, i did that and the admins are still able to get in without a password
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 03 January 2003 :  17:37:38  Show Profile
It is because of cookies. I made the changes in my post above(with code). Look for the statements in green and comment out those statements as shown.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 03 January 2003 :  17:49:48  Show Profile
Alternatively, you can add the following statement
Find the above statement in the code

Response.Cookies(strUniqueID & "Forum")("PRIVATE_" & rsStatus("F_SUBJECT")) = Request("pass")


Add this statement below the above sattement

Response.Cookies(strUniqueID & "Forum").expires = DateAdd("n", 20, strForumTimeAdjust)


20 is number of minutes after which the cookie will expire. You have to leave the statements in green uncommented for this to work.

Edited by - GauravBhabu on 03 January 2003 18:24:05
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 03 January 2003 :  18:18:06  Show Profile
To ask admins for password, you also need to do this. There may be some other files also, which will need modifications. Likely in active.asp, topic.asp, search.asp. It will be similar though.

File: forum.asp

Lines 164-166

Find the following statements

if strPrivateForums = "1" and (Request.Form("Method_Type") <> "login") and (Request.Form("Method_Type") <> "logout") and ForumChkSkipAllowed = 0 then
	result = ChkForumAccess(Forum_ID, MemberID, true)
end if


Modify as shown below

if strPrivateForums = "1" and (Request.Form("Method_Type") <> "login") and (Request.Form("Method_Type") <> "logout") then
	result = ChkForumAccess(Forum_ID, MemberID, true)
end if
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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