Author |
Topic |
|
Freefs
Starting Member
2 Posts |
Posted - 11 February 2002 : 18:49:01
|
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
|
you may be interested to know that 10, 11 and 12 are already used by another MOD
|
|
|
joneill
Starting Member
USA
29 Posts |
Posted - 13 February 2002 : 16:23:32
|
HuwR Which mods and can this be MODified to get around this?
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 15 February 2002 : 10:20:57
|
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 |
|
|
Freefs
Starting Member
2 Posts |
Posted - 19 February 2002 : 18:00:20
|
Alright, the offending numbers have been changed to ones I'm sure are not in use by another mod. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 19 February 2002 : 18:14:58
|
thanks, just thought it would stop any confusion if the two were installed together.
|
|
|
mas
New Member
78 Posts |
Posted - 25 February 2002 : 13:36:25
|
i have this error
Microsoft VBScript compilation error '800a0400'
Expected statement
/forum2/inc_functions.asp, line 1707
case 117 ^
Webmaster of VincereOnLine.it |
|
|
mas
New Member
78 Posts |
Posted - 25 February 2002 : 13:47:58
|
ok the mod's work fine i have put all below the line not above
Webmaster of VincereOnLine.it |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 26 February 2002 : 01:42:57
|
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 |
|
|
IanW
Starting Member
1 Posts |
Posted - 26 February 2002 : 14:06:57
|
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!
|
|
|
|
Topic |
|