Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 intAdminMemberID

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Etymon Posted - 09 July 2009 : 17:35:43
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

4   L A T E S T    R E P L I E S    (Newest First)
Carefree Posted - 02 August 2010 : 05:26:18
Actually, I didn't notice. LOL
Davio Posted - 02 August 2010 : 05:06:23
You guys know this is 1 year old right?
HuwR Posted - 01 August 2010 : 03:51:31
could you explain why you want to do this, then we can maybe suggest a solution
Carefree Posted - 31 July 2010 : 19:52:17
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.

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07