The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
I'll contact you per PM then
|
#5
|
|||
|
|||
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.
|
#6
|
||||
|
||||
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 |
#7
|
||||
|
||||
Quote:
Code:
Invalid SQL: SELECT dateline FROM post WHERE threadid = AND userid = 2
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND userid = 2' at line 1
|
#8
|
||||
|
||||
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])"); |
#9
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|