Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 How to Check Level User?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Blackpearl
Starting Member

Thailand
35 Posts

Posted - 08 July 2005 :  04:15:12  Show Profile  Visit Blackpearl's Homepage
I want to know about the function

"cLng(ChkUser(strDBNTUserName, strPassword, strReplyAuthor))"

I want to know are admin and forum admin Level is?
Is it same?

Thank you


^_^....If you see me....you will love me....I"M SO HANDSOME....^_^

Edited by - Blackpearl on 08 July 2005 04:21:19

Ranko
Junior Member

400 Posts

Posted - 08 July 2005 :  07:24:51  Show Profile
The function you are looking at is not checking for admins/moderators. That is done through mlev in the user profile table. Forum moderators are assigned in a separate table for each forum, but I can't remember which one of the top of my head.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 08 July 2005 :  08:10:31  Show Profile
That function will return one of 5 values:

0, if the visitor is not logged in;
1, if they are logged in;
2, if they are the author of that post;
3, if they are a moderator;
4, if the are an administrator.

These are determined by the M_LEVEL filed in the MEMBERS table which holds one of 3 values:

1, if they are a normal member;
2, if they are a moderator;
3, if they are an administrator.

As Ranko said, that function will not tell you if a member is a moderator of a particular forum, the function you need there is chkForumModerator in inc_func_common.asp.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Blackpearl
Starting Member

Thailand
35 Posts

Posted - 10 July 2005 :  21:06:16  Show Profile  Visit Blackpearl's Homepage
Thank you again


^_^....If you see me....you will love me....I"M SO HANDSOME....^_^

Edited by - Blackpearl on 10 July 2005 23:18:44
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 11 July 2005 :  08:04:46  Show Profile
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
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.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07