![]() |
Limiting posts per month
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. |
Quote:
|
I thought about that but couldn't figure out the sql - any chance of a hand?
|
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.
|
Couldn't the cron job also reset posts?
|
Sure, but do you want that?
|
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. |
Then you could use the following query:
[sql]update user set posts=0, usergroupid=original where usergroupid in (original, crippled)[/sql] |
... and don't forget to exchange original and crippled for the usergroupid's of those usergroups ;)
|
Hero ;)
Many thanks Colin. |
All times are GMT. The time now is 09:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|