Limit posting in specific area by post count - Posted (2441 Views)
Starting Member
Dash Designs
Posts: 7
7
Hi guys. I have tried searching for MODS with lots of different phrases but still no result, so I am guessing it isn't possible yet or maybe someone can tell me otherwise. Here's my problem:

I have a trading area on our forum where users can post items for sale. Every now and again someone will come in and post up and advert for their very first post after joining without introducing themselves. My forum members are annoyed that people are using it as a free advert instead of joining in the forum community, but worse still, some people have bought items to find out the guys has taken the money never to be seen again. I have posted warnings and advice but still this happens, so the gerneral concensus was they want me to make it impossible for starting members with less than say 20 posts to post in that one area. I already have the 10 post count limit for emailing members which stopped the spammers so I'm guessing this sort of thing should be possible but I just don't know how to do it myself or cannot find a MOD.
Can anyone help? Thanks in advance.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
You could do that, although if the list is going to get large you could consider setting up an array in config.asp and checking to see if the forum ID is in that array. I've got some similar code at work that I'll post if I get a chance... I'm teaching classes all day so you might want to bump this tomorrow afternoon if you don't hear back from me.<
Posted
Senior Member
muzishun
Posts: 1079
1079
If you're not averse to getting your hands dirty in the code, you could also add an AuthType in the FORUM table. Basically set it so there is a minimum post count to get in. Would require changes to post.asp, post_info.asp, forum.asp, topic.asp, default.asp, active.asp, and maybe one or two more that I'm not thinking of. The nice thing, though, is that it would be configurable by forum, and you wouldn't have to edit the code each time you added a forum of this type (not that many people are likely to be doing so all that often).<
Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Posted
Average Member
cripto9t
Posts: 881
881
I've been testing this for the last couple of hours and everything seems to working ok.
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=259

There are 4 changes in post_info.asp
You can check for a post count in as many forums as you want by adding them to an array near the top of the page. Each forum has its own post count. Works with all forums including private and moderated.
Be sure to read the instructions at the top of the referance file.
Heres how it works
Code:
'### Minimum post mod hard code ###################
'##
'## Check Admins and/or Mods post count - set to true - Will not check Top Forum Admin

const chkAdminPosts = false
const chkModPosts = false

'## Add your forum here
'## Format "2|50" seperated by comma - first number is forum id. second number is minimum posts. '## EXAMPLE: aForumPostCnt=array("2|50","6|20")

aForumPostCnt=array()

'#################################################
<
    _-/Cripto9t\-_
Posted
Senior Member
muzishun
Posts: 1079
1079
Nice work. It does look pretty simple and straightforward. I may (at some point) go through and mash something together that creates an AuthType from the forum control panel, but your solution is simple, effective and works. Nicely done.<
Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Posted
Senior Member
bobby131313
Posts: 1163
1163
Works great cripto, tested it with admins, moderators, and regular users over and under 50 posts and works perfectly in all scenarios.
Thanks! <
Posted
Starting Member
Dash Designs
Posts: 7
7
Sorry for the delay on this one, time is at a premium for me these days!

I have applied the mod that cripto9t suggested and the whole thing works perfectly. Much appreciated mate!

Thanks also to phy1729 for your time as well.
Big thanks to all who input to this forum, it's a great resource thanks to your efforts.<
You Must enter a message