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/Code)
 Mod/Admin Only Forums (easy)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Freefs
Starting Member

2 Posts

Posted - 11 February 2002 :  18:49:01  Show Profile  Visit Freefs's Homepage
This mod will allow you to set "moderators and administrators only" or "administrators only" access to any of your forums. You can use this to create "moderators only" forums for your staff to hang out. This is better than using access lists because you don't need to update the access list every time you gain or lose a moderator. Best of all, you only need to paste 2 sections of code in 2 different files!

Here you go, in INC_FUNCTIONS.ASP find the following (about line 1550):
case else
Response.Write "<BR>ERROR: Invalid forum type: " & rsStatus("F_PRIVATEFORUMS")
Response.end
end select


Insert the following DIRECTLY *ABOVE* that code:
case 117
mod_user_level=cint(chkUser(Request.Cookies(strUniqueID & "User")("Name"), Request.Cookies(strUniqueID & "User")("Pword")))
if mod_user_level < 3 then
DoNotAllowed
Response.End
end if
case 118
mod_user_level=cint(chkUser(Request.Cookies(strUniqueID & "User")("Name"), Request.Cookies(strUniqueID & "User")("Pword")))
if mod_user_level < 4 then
DoNotAllowed
Response.End
end if


Now, open POST.ASP and find (around line 890):
<option value="0" <% if ForumAuthType = 0 then Response.Write(" selected") %>>All Visitors</option>
<option value="4" <% if ForumAuthType = 4 then Response.Write(" selected") %>>Members Only</option>
<option value="5" <% if ForumAuthType = 5 then Response.Write(" selected") %>>Members Only (Hidden)</option>


Insert the following directly *BELOW* the mentioned code:
<option value="117" <% if ForumAuthType = 117 then Response.Write(" selected") %>>Mods/Admins Only</option>
<option value="118" <% if ForumAuthType = 118 then Response.Write(" selected") %>>Admins Only</option>



Now, simply click the edit button on the forum you want to be "moderators only" and select "mods/admins only" or "admins only" from the access list.

If you have any questions or problems, don't hesitate to ask.

Edited by - freefs on 19 February 2002 17:59:39

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 February 2002 :  04:12:47  Show Profile  Visit HuwR's Homepage
you may be interested to know that 10, 11 and 12 are already used by another MOD

Go to Top of Page

joneill
Starting Member

USA
29 Posts

Posted - 13 February 2002 :  16:23:32  Show Profile
HuwR
Which mods and can this be MODified to get around this?

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 15 February 2002 :  10:20:57  Show Profile
How about simply editing the values in this MOD to something specific like 101, 102, 103? I know it might seem weird, but it's a quick fix right?

Also, maybe it's an idea to do something like documenting the values used in all MODs and putting that info on a page for MOD developers? That way you won't get problems like this.

Roland

http://www.frutzle.com
Also for logo requests!
For MODs go to: Snitz Exchange or Mod Resource
Go to Top of Page

Freefs
Starting Member

2 Posts

Posted - 19 February 2002 :  18:00:20  Show Profile  Visit Freefs's Homepage
Alright, the offending numbers have been changed to ones I'm sure are not in use by another mod.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 February 2002 :  18:14:58  Show Profile  Visit HuwR's Homepage
thanks, just thought it would stop any confusion if the two were installed together.

Go to Top of Page

mas
New Member

78 Posts

Posted - 25 February 2002 :  13:36:25  Show Profile  Visit mas's Homepage
i have this error

Microsoft VBScript compilation error '800a0400'

Expected statement

/forum2/inc_functions.asp, line 1707

case 117
^


Webmaster of VincereOnLine.it
Go to Top of Page

mas
New Member

78 Posts

Posted - 25 February 2002 :  13:47:58  Show Profile  Visit mas's Homepage
ok the mod's work fine i have put all below the line not above

Webmaster of VincereOnLine.it
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 26 February 2002 :  01:42:57  Show Profile  Visit Gremlin's Homepage
A really quick way to make Admin only forums is to create the forum and set the Auth Type to "Allowed Member List (Hidden)" But do not add any members to the member list.

This works becuase Admins can see and post to all forums regardless of the Auth Type set.

www.daoc-halo.com
Go to Top of Page

IanW
Starting Member

1 Posts

Posted - 26 February 2002 :  14:06:57  Show Profile
How hard would it be to make the forums hidden as well?

I dont know much about ASP at the moment! but i am learning!

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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07