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)
 ActiveTopics lists private forum msg headers
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

volition
Starting Member

USA
49 Posts

Posted - 30 May 2003 :  17:00:08  Show Profile  Visit volition's Homepage
I did a search and found this question asked at least 10 times. It was even reported as a bug.

Problem:
HellRazor "Active Topics lists message headers from the private forums, even if the person doesn't have access to those forums. They can't actually pull up the messages, but shouldn't those topics be hidden if the member doesn't have access to them?"

Reply:
That's not a bug, that's by design. If you set the forum to one of the Hidden options, then it will hide the forum from them. But other than that, it will show up. The same way it will show up on the default.asp page, even if they don't have access to it.

People were also told to set the forum as hidden. Yes, that solve the problem on active.asp, but then the forum is hidden and that is not what we need.

What shows up on the default page and the active topics page have nothing to do with one another. Showing a forum exists in my case is so that people who need access can see it and then request to be approved to get in. The reason it is closed is for privacy and that is why I do not want titles and who posted appearing on active.asp.

As I said "I did a search and found this question asked at least 10 times." I did not however find the mod to fix it. If someone has already solved this please post the mod.

thanks,
Ray

Volition® - The Net's Oldest Free-Stuff Site

Snitz Forum at http://forum.volition.com/

volition
Starting Member

USA
49 Posts

Posted - 04 June 2003 :  02:33:25  Show Profile  Visit volition's Homepage
Here is the answer.

active.asp

Find the one place it says chkDisplayForum and edit it to chkDisplayForumA

inc_func_secure.asp

Add this new function (preferably below function chkDisplayForum)


function chkDisplayForumA(fPrivateForums,fFPasswordNew,fForum_ID,UserNum)

	dim strSql
	dim rsAccess
	chkDisplayForumA = false

	if (mLev = 4) or (mLev = 3 and ModerateAllowed = "Y") then
		chkDisplayForumA = true
		exit function
	end if

	select case cLng(fPrivateForums)
		case 0
			chkDisplayForumA = true
			exit function
		case 4, 5
			if UserNum = -1 then
				chkDisplayForumA = false
				exit function
			else
				chkDisplayForumA = true
				exit function
			end if
		case 1, 2, 3, 6, 7
			if UserNum = -1 then
				chkDisplayForumA = false
				exit function
			end if
			if isAllowedMember(fForum_ID,UserNum) = 1 then
				chkDisplayForumA = true
			else
				chkDisplayForumA = false
			end if 
	 	case 8, 9
			chkDisplayForumA = false
			if strAuthType ="nt" THEN
				NTGroupSTR = Split(Session(strCookieURL & "strNTGroupsSTR"), ", ")
				for j = 0 to ubound(NTGroupSTR)
					NTGroupDBSTR = Split(fFPasswordNew, ", ")
					for i = 0 to ubound(NTGroupDBSTR)
						if NTGroupDBSTR(i) = NTGroupSTR(j) then
							chkDisplayForumA = true
							exit function
						end if
					next
				next
			end if
		case else 
			chkDisplayForumA = true
	end select 
end function

Volition® - The Net's Oldest Free-Stuff Site

Snitz Forum at http://forum.volition.com/
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07