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)
 Forum Posting restrictions and hiding
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  05:14:53  Show Profile  Visit HuwR's Homepage
I had another think about my old forumTypes mod, and came up with a better way of doing it and combined it with my hidden Forum Mod as well.

Basically it adds 3 new fields to FORUM_FORUM...
F_HIDDEN, F_TOPIC_AUTH, and F_REPLY_AUTH

F_HIDDEN - as it suggests, makes a forum Hidden (any forum)
F_TOPIC_AUTH - sets the level the user must be in order to post topics in the forum
F_REPLY_AUTH - sets the level the user must be in order to reply to posts in the forum

copy admin_mod_dbsetup.asp and forumtypes.dbs to your forum directory, and execute the asp file in your browser, select "Forum Posting Mod" from the dropdown and press proceed, this will add the fields to your DB.

The other files are 3.2a6 files, although I did replace the files in a standard 3.1sr4 install with these without any problems.

All changes in the files are clearly marked with this comment
'############### Posting Restrictions ###########################


You must have privatforums enabled to get the options in post.asp

Download Link



rick7165
Senior Member

USA
1094 Posts

Posted - 12 March 2001 :  06:13:28  Show Profile  Visit rick7165's Homepage
Huw... If this mod is used with your forum. Do we need to remove the Read/Write Access Mod that installed
in your forum? or will they work together?

Rick


Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  07:49:55  Show Profile  Visit HuwR's Homepage
they should work together ok, but you don't really need both, this gives the same functionality as the previous Read/write mod, except it will work against any forum.

Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 12 March 2001 :  11:40:35  Show Profile  Visit Rob Poretti's Homepage
Hi HuwR,

I'm curious about this mod -- I'm not sure what the original one did, so I'm not sure what this one did. Could you give me a brief description about this?

Cheers!

Rob

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  11:44:11  Show Profile  Visit HuwR's Homepage
Ok, this mod allows you to set the type of user who is allowed
to post and/or reply to topics in a forum.

So you could have a forum where only Admins could post new topics for instance.

Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 12 March 2001 :  13:44:17  Show Profile  Visit Rob Poretti's Homepage
So anyone could see the forum (not hidden), enter the forum (not password protected), view the topics, but selectively not allowed to create a topic or reply to a topic? And this is only by member level right?

Is this correct?

Rob



Edited by - Rob Poretti on 12 March 2001 13:46:16
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 March 2001 :  16:02:37  Show Profile
Huw,

Just a few things...

Some of your changes in your included files are not commented with the:

'############### Posting Restrictions ###########################


Also,

in topic.asp and forum.asp when will the case ever be 2?

In post.asp the values written to the database fields are 1, 3, or 4

but in topic.asp and forum.asp the case's are 2, 3, or 4

just wondering, thanks!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  17:57:58  Show Profile  Visit HuwR's Homepage
well spotted Richard, the case statements should be 1 and Not 2

which bits haven't I commented?

Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 12 March 2001 :  18:22:48  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
If im correct, 1 is member, 2 is moderator, and 3 is admin no? what is 4 used for?

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 March 2001 :  18:45:57  Show Profile
Here is what I've noticed that wasn't commented.

inc_functions.asp
  • line #1265


post.asp
  • line #413
  • also the section starting at line #888 I think you should comment everything up to line #934, there are some changes in the part where the password is entered also
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  18:46:09  Show Profile  Visit HuwR's Homepage
1 is author
2 is member
3 is moderator
4 is admin

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  18:47:02  Show Profile  Visit HuwR's Homepage
quote:

inc_functions.asp
  • line #1265


post.asp
  • line #413
  • also the section starting at line #888 I think you should comment everything up to line #934, there are some changes in the part where the password is entered also




thanks Richard, I'll update the files in a few minutes

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 March 2001 :  18:49:31  Show Profile
Excellent Mod BTW
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 March 2001 :  18:53:21  Show Profile  Visit HuwR's Homepage
Files updated.

The section starting 888, just needed the finishing comment moved after the < tr > rather than before it.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 March 2001 :  21:30:30  Show Profile
Huw,

I found one other place that wasn't commented.

post.asp
  • Line #864 - This is the code: ForumHide = rs("F_HIDDEN")
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 13 March 2001 :  17:16:53  Show Profile  Visit HuwR's Homepage
quote:

Would it be hard to add "Allowed Members Can Post, Everyone Can Read" access to this MOD?

I have several information forums where I would like several persons to be write messages, but not in all the forums, and as it is now, I have to have a LOT of moderators.

Regards
Morten



Yes it would, it uses a different mechanism, this just affects who is allowed to post in a forum (as long as they are allowed access to the forum), to do what you ask would mean changing the way private forums work.

Go to Top of Page
Page: of 4 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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07