View Full Version : Limiting posts per month
manguish
11-05-2004, 12:51 PM
Is this possible?
Say i wanted to limit a usergroups posts to 10 per month?
I figured i could do it with promotions, by moving the users when they'd made 10 posts - but there is no time scale.
Once the month ends, and the next starts, i would like the 10 posts to become available again.
Cheers.
Colin F
11-05-2004, 01:17 PM
Is this possible?
Say i wanted to limit a usergroups posts to 10 per month?
I figured i could do it with promotions, by moving the users when they'd made 10 posts - but there is no time scale.
Once the month ends, and the next starts, i would like the 10 posts to become available again.
Cheers.
You could add a cron job that runs on the first of every month and moves the users back to the first usergroup.
manguish
11-05-2004, 02:39 PM
I thought about that but couldn't figure out the sql - any chance of a hand?
Andreas
11-05-2004, 02:47 PM
I guess this won't work Colin, he would also have to reset the post counter each month, as otherwiese the users will get promoted to the "over quota" group instantly after 1 post.
manguish
11-05-2004, 02:49 PM
Couldn't the cron job also reset posts?
Andreas
11-05-2004, 02:51 PM
Sure, but do you want that?
manguish
11-05-2004, 03:08 PM
Yes.
I want the users to be able to post to 10, get moved to differing "cripple" user group, then after 30 days - reset post to 0 and move back to original usergroup - therby allowing them 10 posts again.
Andreas
11-05-2004, 03:12 PM
Then you could use the following query:
update user set posts=0, usergroupid=original where usergroupid in (original, crippled)
Colin F
11-05-2004, 03:28 PM
... and don't forget to exchange original and crippled for the usergroupid's of those usergroups ;)
manguish
11-05-2004, 03:52 PM
Hero ;)
Many thanks Colin.
tk1056
03-28-2006, 02:06 PM
I need to do something similar to the previous post, except with Private Messages.
I'd like to limit users (based on usergroup) to 5 PMs per day.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.