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 DEV-Group
 DEV Discussions (General)
 intAdminMemberID
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2385 Posts

Posted - 09 July 2009 :  17:35:43  Show Profile  Visit Etymon's Homepage  Reply with Quote
Guys,

I made a suggestion to Carefree about adding another check to the Function ChkUser in inc_func_common.asp ...

I just wanted to pass it by you guys to double check that it doesn't interfere with anything that I may have overlooked.

The code involves a check for the intAdminMemberID value. I told him to distinquish between a standard administrator and the forum administrator to alter the ChkUser function to include an additional case so that he could check for this:

if mlev = 5 then
end if

Please look below at case 4 to see if I am correct with my suggestion (Note: I have not tested this):

if (rsCheck("MEMBER_ID") & "" = fAuthor & "") and (cLng(rsCheck("M_LEVEL")) <> 3) then

                  chkUser = 1 '## Author

            else

                  select case cLng(rsCheck("M_LEVEL"))

                        case 1

                              chkUser = 2 '## Normal User

                        case 2

                              chkUser = 3 '## Moderator

                        case 3

                              chkUser = 4 '## Admin 

                        if rsCheck("MEMBER_ID") = intAdminMemberID then

                              case 4

                                    chkUser = 5 '## Forum Admin

                        end if

                        case else

                              chkUser = cLng(rsCheck("M_LEVEL"))

                  end select

            end if

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2010 :  19:52:17  Show Profile  Reply with Quote
That'll result in an error, can't go straight to Case 4 after the if condition. Furthermore, if chkUser=5 then you'll run into errors editing posts, etc.

Edited by - Carefree on 31 July 2010 23:11:06
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2010 :  03:51:31  Show Profile  Visit HuwR's Homepage  Reply with Quote
could you explain why you want to do this, then we can maybe suggest a solution

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 August 2010 :  05:06:23  Show Profile  Reply with Quote
You guys know this is 1 year old right?

Support Snitz Forums
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 August 2010 :  05:26:18  Show Profile  Reply with Quote
Actually, I didn't notice. LOL
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07