Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: Chainsaw - elokuu 06, 2007, 08:37:13 IP

Otsikko: minimum post/quota mod
Kirjoitti: Chainsaw - elokuu 06, 2007, 08:37:13 IP
On my forum we have a policy that every member has to make a certain amount of posts in a 3 month time frame; or they are downgraded to a time out membergroup until they make that quota.

is there a mod that could do this automatically based on set time limits and post count?



This might be the wrong board. If so, I apologize for my noobish ways.
Otsikko: Re: minimum post/quota mod
Kirjoitti: H - elokuu 07, 2007, 07:54:11 AP
I don't believe there is a mod which does this however I've moved this topic to Mod Requests in case anyone is interested in writing one.
Otsikko: Re: minimum post/quota mod
Kirjoitti: Chainsaw - elokuu 07, 2007, 08:13:46 AP
sweet, appreciate it
Otsikko: Re: minimum post/quota mod
Kirjoitti: elfishtroll - elokuu 07, 2007, 08:18:50 AP
this seems like something best served by a CRON JOB?

setup to run every month or two, 1st variables setup the minimum post quota stuff, the rest define the "time out membergroup" and also maybe exceptions?

it could and probably use a table

username
lastRunDate
BoardID
postCount

and, each month, scan through each username and add up the post count then match it against last months (or whatever the cycle was) postcount

it could then trigger one or more actions, email, suspension, new group.

You may probably want to limit the scanning so your Admins or special accounts not get caught up in this.

For instance, I have basic user accounts with different membergroups and settings. As to be expected, they dont post a lot! :P