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)
 Simple MOD request ( I think )
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 10 August 2004 :  09:15:04  Show Profile
I´m looking for a simple on/off posting feature, so that I can (as admin), check a box to whether a member should be able to post in the forum or not. As default this should be set to "on" of course.

Hope you understand where I´m going with this.

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 13 August 2004 :  08:57:38  Show Profile
Maybe not that easy, I guess ?!
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 13 August 2004 :  09:12:47  Show Profile  Visit Jezmeister's Homepage
possible no doubt, like the option thats already in the edit forum page to set allowed members?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 August 2004 :  09:34:23  Show Profile  Visit MarcelG's Homepage
wii...isn't this the same as the 'lock forum' feature ?
If a forum is locked, only moderators and the administrators cán post.
If the forum is unlocked, everyone can post...

Just a thought.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 13 August 2004 :  12:38:30  Show Profile
No really, because the feature I´m asking about is to set a specific member to not be able to post. It should not affect anyone else.
Go to Top of Page

cyber Knight
Starting Member

41 Posts

Posted - 13 August 2004 :  17:48:35  Show Profile
I think he means something like the [mute member] mod in most of php forums.

Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 13 August 2004 :  19:04:28  Show Profile  Visit Jezmeister's Homepage
im away over the weekend but i have nothing better to do, assuming noone beats me to it so ill have a go when i get back if ya want.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 14 August 2004 :  05:43:14  Show Profile  Visit MarcelG's Homepage
ah, ok wii, now I get it.....ok..

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 14 August 2004 :  15:43:05  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
wii... you want them to be able to edit, delete or they are not allowed to do any editing, deleting, adding to any forum.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 15 August 2004 :  10:08:55  Show Profile
The "muted" members are not allowed to anything but read the forum.

No editing, deleting, adding.
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 15 August 2004 :  11:32:52  Show Profile
Would the member be "muted" in all forums or specified forums?
I don't have the time to look into this right now. I'm just curious.

    _-/Cripto9t\-_
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 16 August 2004 :  02:51:13  Show Profile
Yes, in all forums.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 August 2004 :  16:32:10  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well a real quick dirty version would be to add a small query to post_info.asp to check to see if that member is muted or not. If they are muted then just redirect them or something.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 17 August 2004 :  15:53:45  Show Profile
Wii I worked out a quick something. It's not complete but it's a good start. There's not alot to it so I'll post it here. Look it over and see if it's something like you want.


  • dbs file - Copy this code and save as dbs_mute.asp - then update database
    Mute Mod
    [ALTER]
    MEMBERS
    ADD#M_MUTE#smallint#NULL#1
    [END]


  • In inc_profile
    find this code line 471
    		if rs("MEMBER_ID") = intAdminMemberID then
    			Response.Write	"                      <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Administrator</font>" & vbNewLine & _
    					"                      <input type=""hidden"" value=""3"" name=""Level"">" & vbNewLine
    		else
    			Response.Write	"                      <select value=""1"" name=""Level"">" & vbNewLine & _
    					"                           <option value=""1"""
    			if rs("M_LEVEL") = 1 then Response.Write(" selected")
    			Response.Write	">Normal User</option>" & vbNewLine & _
    					"                           <option value=""2"""
    			if rs("M_LEVEL") = 2 then Response.Write(" selected")
    			Response.Write	">Moderator</option>" & vbNewLine & _
    					"                           <option value=""3"""
    			if rs("M_LEVEL") = 3 then Response.Write(" selected")
    			Response.Write	">Administrator</option>" & vbNewLine & _
    					"                      </select>" & vbNewLine
    		end if
    		Response.Write	"                      </td>" & vbNewLine & _
    				"                    </tr>" & vbNewLine
    

    ADD this right after
    '## Mute Mod ### ADD the code below ## If you remove this line ADD "& _" to the line above ################################################################################
                    Response.Write  "                    <tr>" & vbNewLine & _
    				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Mute Member: </font></b></td>" & vbNewLine & _
    				"                      <td bgColor=""" & strPopUpTableColor & """ valign=""top"">" & vbNewLine & _
    			        "                      <select value=""1"" name=""Mute"">" & vbNewLine & _
    			        "                           <option value=""1"""
    			        if rs("M_MUTE") = 1 then Response.Write(" selected")
    			        Response.Write	"> Off </option>" & vbNewLine & _
    				"                           <option value=""2"""
    			        if rs("M_MUTE") = 2 then Response.Write(" selected")
    			        Response.Write	"> On </option>" & vbNewLine & _
    					"                      </select>" & vbNewLine & _
    		        	"                      </td>" & vbNewLine & _
    				"                    </tr>" & vbNewLine
    '## End code add on ### THATS ALL OR INC_PROFILE ######################################################################################################
    


  • In pop_profile
    find this code line 958
    				strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AGE"
    				strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_DOB"
    				strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_MARSTATUS"
    				strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_SEX"
    

    ADD this line right after
    strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_MUTE"
    

    find this code line 1499
    					strSql = strSql & ", M_LEVEL = " & cLng("0" & Request.Form("Level"))
    

    ADD this line right after
    strSql = strSql & ", M_MUTE = " & cLng("0" & Request.Form("Mute"))
    


  • In inc_func_common ADD this code close to the bottom, before the "%>"
    function chkMute(mID)
    
    	dim strSql
    	dim rs
    
    	'## Forum_SQL 
    	strSql ="SELECT MEMBER_ID "
    	strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
    	strSql = strSql & " WHERE MEMBER_ID = " & clng(mID)
    	strSql = strSql & " AND M_MUTE = " & 1
    
    	Set rs = Server.CreateObject("ADODB.Recordset")
    	rs.open strSql, my_Conn
    
            if clng(mID) <> -1 then
    	        if rs.BOF or rs.EOF then
    		        chkMute = 0
    	        else
    		        chkMute = 1
    	        end if
            else
                    chkMute = 1
            end if
    
    	rs.close
    	set rs = nothing
    end function
    



Now to check for muted members use the chkMute function.

for example, if you don't want the posting icons displayed. In topic.asp adding chkMute to sub PostingOptions() would only show the post links to non-muted members.
sub PostingOptions()
if chkMute(MemberID) = 1 then 
	Response.Write	"          <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine
	if (mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1) or (lcase(strNoCookies) = "1") or (strDBNTUserName = "") then

Of course you need "end if" to close the statement.

Or if you don't want to mess with all the icons, you could add this to post.asp and redirect them somewhere else.

ADD right under include files
if chkMute(MemberID) <> 1 then
        Response.Redirect "default.asp"
end if


I hope this helps

edit: 8/23/04 - found a bug in sql above. change '" & mID & "' to " & clng(mID)
edit: 8/25/04 - replaced chkMute function above

    _-/Cripto9t\-_

Edited by - cripto9t on 25 August 2004 09:13:03
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 18 August 2004 :  03:08:27  Show Profile
Thanks

Maybe I should upload a testforum for this ?
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 18 August 2004 :  06:49:42  Show Profile
quote:
Originally posted by wii

Thanks

Maybe I should upload a testforum for this ?


Wii, I have some free time today. I'll work on this further and try to package it up today. Just a few more things to do in forum.asp and topic.asp. I think.

    _-/Cripto9t\-_
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07