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)
 Password protected forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Fireball
Starting Member

United Kingdom
12 Posts

Posted - 10 November 2003 :  06:36:41  Show Profile  Visit Fireball's Homepage
I've been asked to provide a private forum (within the public one) for a specific group of ppl. I need to provide 2 ways to access the forum - first by forum ID - easy!! second by Last name and membership number (if they have no forum ID).

I'm currently trying to find where abouts the code checks to see if the forum is private and password protected so I can write some more code ... I've searched for a few hours and come up with nothing

Anyone else know?

Fireball

www.laser2000.org.uk

masterao
Senior Member

Sweden
1678 Posts

Posted - 10 November 2003 :  09:15:10  Show Profile  Visit masterao's Homepage
Here is the code which checks for private forums and allowed access (from topic.asp):


if mLev = 4 then
    AdminAllowed = 1
    ForumChkSkipAllowed = 1
elseif mLev = 3 then
    if chkForumModerator(Forum_ID, chkString(strDBNTUserName,"decode")) = "1" then
        AdminAllowed = 1
        ForumChkSkipAllowed = 1
    else
        if lcase(strNoCookies) = "1" then
            AdminAllowed = 1
            ForumChkSkipAllowed = 0
        else
            AdminAllowed = 0
            ForumChkSkipAllowed = 0
        end if
    end if
elseif lcase(strNoCookies) = "1" then
    AdminAllowed = 1
    ForumChkSkipAllowed = 0
else   
    AdminAllowed = 0
    ForumChkSkipAllowed = 0
end if

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


The function ChkForumAccess can be found in inc_func_secure.asp.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Fireball
Starting Member

United Kingdom
12 Posts

Posted - 10 November 2003 :  09:39:12  Show Profile  Visit Fireball's Homepage
Superb!! Thanks! Obvious really, just couldn't see the wood for the trees!

Fireball

www.laser2000.org.uk
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 10 November 2003 :  12:11:15  Show Profile  Visit masterao's Homepage
You are welcome .

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07