Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Prevent "Normal Users" from creating topics
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hzaidi
Starting Member

USA
45 Posts

Posted - 21 November 2007 :  13:30:18  Show Profile
We pretty much have snitz running and want only Moderators to create/add topics. However, we don't want normal users to be able to do this.

Normal Users should only be able to post to topics.

AnonJr
Moderator

United States
5768 Posts

Posted - 21 November 2007 :  13:40:28  Show Profile  Visit AnonJr's Homepage
The quick and simple way to get that effect is by enabling moderation, and set the forum you want to do this in to "First Post Moderated" - that way if people didn't read, and post a topic no one will see it and the moderator can delete it and let them know that isn't allowed.

Alternately, you could modify the code - but its a lot more work.

The route you take will depend a lot on how many forums you want to do this in and how comfortable you are digging around in the code.
Go to Top of Page

hzaidi
Starting Member

USA
45 Posts

Posted - 21 November 2007 :  14:04:44  Show Profile
What's the modify code way like????

Does anybody have any details.

I imagine it woudn't be that hard. Whatever code or file contains the permissions for the Normal users, Moderators and administrators need to be edited right???
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 21 November 2007 :  15:00:18  Show Profile  Visit AnonJr's Homepage
You would need to modify the code that checks said permissions where it checks those permissions. How complex that is goes back to the "depends on how many forums you want to do that in" part of my post.

More often than not I usually go the first way as its generally for one or two forums, the members are generally aware that they aren't supposed to post there, and the site has enough moderators to keep it clean.
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 21 November 2007 :  15:19:10  Show Profile
I have not tested this but in post.asp about line 287-4:

case "Topic"
if (strNoCookies = 1) or (strDBNTUserName = "") then
Msg = Msg & "<b>Note:</b> You must be registered in order to post a Topic.<br />"
if strProhibitNewMembers <> "1" then
Msg = Msg & "To register, <a href=""register.asp"">click here</a>. Registration is FREE!<br />"
end if
end if
case "Category"

I think if under the red you added this it would work.

if (mLev = 4) or (chkForumModerator(strRqForumId, strDBNTUserName) = "1") then
'## Do Nothing
else
Go_Result "Only moderators and administrators can create topics"
end if

This will leave the link in topic.asp so I'll most likely work on that next.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 21 November 2007 :  15:43:46  Show Profile  Visit AnonJr's Homepage
Just keep in mind that - assuming it works - it will prevent normal users from creating topics in all forums...
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 21 November 2007 :  16:28:29  Show Profile
Anon brought up a good point I assumed that was what you wanted to do but just keep that in mind.
In regards to the link it is in forum.asp and topic.asp. I have tried this one so
in forum.asp line 698 change
if Forum_Status <> 0 then
to
if Forum_Status <> 0 and ((mLev = 4) or ((chkForumModerator(Forum_ID, strDBNTUserName) = "1"))) then
in topic.asp line 878 change
if ((Cat_Status = 1) and (Forum_Status = 1)) then
to
if ((Cat_Status = 1) and (Forum_Status = 1)) and ((mLev = 4) or ((chkForumModerator(Forum_ID, strDBNTUserName) = "1"))) then
and that's it for the links. And I also tested the code in the previous post so it all works.
Go to Top of Page

hzaidi
Starting Member

USA
45 Posts

Posted - 22 November 2007 :  00:20:01  Show Profile
Thank you guys very much. Looks like it worked. I did a breif test and it appears normal users can see the forum as LOCKED. But they can post in topics started by the admin or mod. We had a little request from the main users of this form so that only post to topics can be made but topics can't be created by users. I'm going to try to talk them out of this. Because in my personal opinion it's not how a forum should work....
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 22 November 2007 :  05:08:47  Show Profile  Visit Etymon's Homepage
What you want is called the Posting Restrictions MOD. The options are set on a forum by forum basis. I think it does away with being able to post while logged out though. I don't know if one has been updated for 3.4.xx or not. You might want to ask around.

Etymon

Edited by - Etymon on 22 November 2007 05:11:15
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07