![]() |
Limit posts per thread
Is there a way I can limit the amount of posts in a certain time frame someone can post to a particular thread??? In other words say I want to limit a user names bob to only be able to post in the same thread once every day is that possible??
Can that be possible? |
Quote:
Add a check with something like this in your newreply.php $lastpost = $DB_site->query_first("SELECT dateline FROM post WHERE threadid = $thread[threadid] AND userid = $bbuserinfo[userid]"); if (vbdate("Ymd", $lastpost[dateline]) == vbdate("Ymd")) { eval(print_standard_error('error_posttoday')); } you would have to add an errorphrase "error_posttoday". Also, enclose the whole thing with a check if it's the forum or thread you want. |
I appreciate the help but I dont know if I am good enough with PHP to do this... I would be willing to pay someone to make a hack for me that I can use from my admincp or something.
|
I'll contact you per PM then :)
|
Is there a way to limit the posts per hour, per thread? I'd like to set up a user so he can only post once per hour per thread instead of an entire day.
|
Add a check like this:
$lastpost = $DB_site->query_first("SELECT dateline FROM post WHERE threadid = $thread[threadid] AND userid = $bbuserinfo[userid]"); if (vbdate("YmdH", $lastpost[dateline]) == vbdate("YmdH")) { eval(print_standard_error('error_posttoday')); } this wil allow users to post at 10.55 AND at 11.05 though. Just not again till 12.xx |
Quote:
Code:
Invalid SQL: SELECT dateline FROM post WHERE threadid = AND userid = 2 |
funny... I guess you don't have table prefixes, do you?
You might try this: $lastpost = $DB_site->query_first("SELECT dateline FROM post WHERE (threadid = $thread[threadid]) AND (userid = $bbuserinfo[userid])"); |
I need something a little different. We have a validation period were all posts from a user are validated before going to the board.
We have a Polls forum, and some of the validating users try to scape the period by posting there a lot. I want to allow just 1 post on the whole Poll forum per day for all users that are on a particular usergroup (in my case Validating Members). Is this possible? If yes, how? Thanks. |
All times are GMT. The time now is 11:31 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:
|