Author |
Topic |
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 05:14:53
|
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
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 07:49:55
|
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.
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 12 March 2001 : 11:40:35
|
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
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 11:44:11
|
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.
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 12 March 2001 : 13:44:17
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 12 March 2001 : 16:02:37
|
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! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 17:57:58
|
well spotted Richard, the case statements should be 1 and Not 2
which bits haven't I commented?
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 12 March 2001 : 18:22:48
|
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
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 12 March 2001 : 18:45:57
|
Here is what I've noticed that wasn't commented.
inc_functions.asp
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
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 18:46:09
|
1 is author 2 is member 3 is moderator 4 is admin
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 18:47:02
|
quote:
inc_functions.asp
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
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 12 March 2001 : 18:49:31
|
Excellent Mod BTW |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 March 2001 : 18:53:21
|
Files updated.
The section starting 888, just needed the finishing comment moved after the < tr > rather than before it.
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 12 March 2001 : 21:30:30
|
Huw,
I found one other place that wasn't commented.
post.asp
- Line #864 - This is the code: ForumHide = rs("F_HIDDEN")
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 13 March 2001 : 17:16:53
|
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.
|
|
|
Topic |
|