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)
 making moderators able to lock members
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 30 May 2004 :  15:05:24  Show Profile
please can someone tell me the easiest way to enable it so that moderators can 'lock members account'.

I dont want to make moderators admins, or allow them to delete accounts etc.
All I want is for moderators (in addition to what they can already do) be able to lock accounts.

What would be the quickest and simplest way to do this?

Edited by - ruirib on 30 May 2004 16:54:57

Webbo
Average Member

United Kingdom
982 Posts

Posted - 30 May 2004 :  18:33:56  Show Profile  Visit Webbo's Homepage
Gareth, I did this some time back so that my moderators can lock out members if need be; I can't remember the changes I made but these might be them. Compare this code with what you have in your files:


pop_lock.asp >

Lines 146 (or there abouts)

	case "LockMember"
		strEncodedPassword = sha256("" & strPassword)
		mLev = cLng(ChkUser(strDBNTFUserName, strEncodedPassword,-1)) 
		if mLev > 0 then  '## is Member
			if (mLev = 3 or mlev = 4) and (cLng(chkCanLock(MemberID,Member_ID)) = 1) then
				'## Forum_SQL



Line 207 (or thereabouts):

		select case Mode_Type
			case "STopic"
				Response.Write("Only Moderators and Administrators can make a Topic Sticky.")
			case "Member"
				Response.Write("Only Administrators and Moderators can lock a Member.")
			case "Category"
				Response.Write("Only Administrators can lock a Category.")
			case "Forum"
				Response.Write("Only Moderators and Administrators can lock a Forum.")
			case "Topic"
				Response.Write("Only Moderators and Administrators can lock a Topic.")
		end select



Members.asp

Line 461 (or thereabouts)

		if mlev = 4 or mlev = 3 then
			Response.Write	"                <td bgcolor=""" & CColor & """ align=""center"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & ChkDate(Members_MemberLastHereDate,"",false) & "</font></td>" & vbNewLine
		end if
		if mlev = 4 or mlev = 3 or (lcase(strNoCookies) = "1") then
			Response.Write	"                <td bgcolor=""" & CColor & """ align=""center""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine
			if Members_MemberID = intAdminMemberID OR (Members_MemberLevel = 3 AND MemberID <> intAdminMemberID) then
				'## Do Nothing




Back up your files first before making any changes and see if the above works

Dave




Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 31 May 2004 :  05:59:20  Show Profile
thanks! that works!!!

for moderators to be able to un-lock members, this can be done using the same code changes as above but in pop_open.asp






now, in members.asp 'locked' members can only be viewed by admin. How do I make it so that 'locked' members can be viewed by moderators and admin?

Edited by - GarethMoore1979 on 31 May 2004 06:28:18
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 31 May 2004 :  17:30:14  Show Profile  Visit Webbo's Homepage
I forgot the 'Unlocking' part Gareth


In your memers.asp can you see the column to the right with 'Lock member, Edit member and Delete member' icons in when signed in as a Moderator ?
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 31 May 2004 :  18:55:07  Show Profile
yes, moderators and admin can see all 3 icons (even tho mods dont have permissions to edit or deleted).
It works fine!


but in members.asp as default only admin can see members that have aldready been locked. But it would be a good idea to make locked members viewable by moderators.
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 01 June 2004 :  05:17:54  Show Profile  Visit Webbo's Homepage
Hmm, in mine a moderator can see the name of all the members regardless
of whether or not they've been locked
I'll check my code out to see what changes I might have made other than
those already listed
Go to Top of Page

JPry565
Starting Member

18 Posts

Posted - 18 June 2004 :  15:17:54  Show Profile
How can i force users to allow others to reveal their email address upon signup?
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 29 June 2004 :  15:56:08  Show Profile
quote:
Originally posted by Webbo

Hmm, in mine a moderator can see the name of all the members regardless
of whether or not they've been locked
I'll check my code out to see what changes I might have made other than
those already listed



Webbo.
By default view members and moderators can not view locked members. Moderators will only see locked members if they actually search for one by name (or letter).
I have figured out how to alter this (just thought I would post it if your interested)

change the following..... (members.asp)
quote:
if mlev = 4 then
strSql3 = " WHERE M_NAME <> 'n/a' "
else
strSql3 = " WHERE M_STATUS = " & 1
end if



to....
quote:
if mlev > 2 then
strSql3 = " WHERE M_NAME <> 'n/a' "
else
strSql3 = " WHERE M_STATUS = " & 1
end if


Thanks for your help btw, much apprecated (it would be nice if we could (as admins) choose what our moderatrs are able to do, maybe an idea for future releases
Go to Top of Page

DLM
Starting Member

Sweden
7 Posts

Posted - 30 June 2004 :  08:49:49  Show Profile
Thanks!
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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07