Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Mini-MOD: prevent moderators of changing forumtype

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 [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MarcelG Posted - 18 January 2006 : 07:34:26
Perhaps no one will use this feature ever, but I found a need for the following functionality.

I provide free forums at oxle, and paid 'private' forums.
The forums are created by me, and I then assign the person who requested the forum as moderator for that forum.

All well, but, I want to make sure that no one requests a free forum, and changes it to 'Allowed members list' by themselves.
However, as they're moderator, the base install gives them the right to change the Authentication Type.

So, to prevent that, I changed a small piece of post.asp.
The original code: (post.asp of version 3.4.05, lines 1126 - 1141)
if strPrivateForums <> "0" then 
	if strRqMethod = "Forum" or _
	strRqMethod = "URL" or _
	strRqMethod = "EditURL" or _
	strRqMethod = "EditForum" then 
		if strRqMethod = "EditForum" or _
		strRqMethod = "EditURL" then
			ForumAuthType = rs("F_PRIVATEFORUMS")
		else
			ForumAuthType = 0
		end if
		Response.Write	"              <tr>" & vbNewLine & _
				"                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Auth Type:</b></font></td>" & vbNewLine & _
				"                <td bgColor=""" & strPopUpTableColor & """>" & vbNewLine & _
				"                <select readonly name=""AuthType"">" & vbNewLine & _
				"                	<option value=""0"""


The new code (in red)
if strPrivateForums <> "0" then 
	if strRqMethod = "Forum" or _
	strRqMethod = "URL" or _
	strRqMethod = "EditURL" or _
	strRqMethod = "EditForum" then 
		if strRqMethod = "EditForum" or _
		strRqMethod = "EditURL" then
			ForumAuthType = rs("F_PRIVATEFORUMS")
		else
			ForumAuthType = 0
		end if
		Response.Write	"              <tr>" & vbNewLine & _
				"                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Auth Type:</b></font></td>" & vbNewLine & _
				"                <td bgColor=""" & strPopUpTableColor & """>" & vbNewLine & _
				"                <select readonly "
				if mlev < 4 then
				response.write " disabled "
				end if
		Response.Write "name=""AuthType"">" & vbNewLine & _
				"                	<option value=""0"""

Okay, I guess that with a manual HTTP post moderators can still change the authentication type, but this will keep out 99,999% of them. <
2   L A T E S T    R E P L I E S    (Newest First)
spyderuk Posted - 26 January 2006 : 19:15:35
Ok I miss read the description. I presume the code would be similar but where would it have to be put to stop Moderators from editing forum properties?<
spyderuk Posted - 26 January 2006 : 19:01:38
It took a while to find this in a search but I'd read this post already.
This is just what I need as I'm appointing my first moderator and giving him a few forums to look after.
I didn't want the moderator to be able to get into the forum properties and changing that stuff, just to moderate posts etc.

Seems this will do the trick. Thanks..<

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