The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Rate-limiting new thread creation
We disabled Guest posting on our board, but we occasionally get idiots who like to spam/flood the board by creating a multitude of new posts/threads.
The posts don't bother me so much as a million new threads, so I was wondering if anyone knew of a hack that would limit registered users to N new thread creations per hour (or some other time period). I thought something along the lines of 5 new threads per hour wouldn't inconvienience anyone, but would keep the flooding to a minimum. Anyone know if i just missed such a hack in the db? |
#2
|
|||
|
|||
You can already limit the time between posts in the admin CP unless you only want threads to be limited in which case I think you do need a hack.
|
#3
|
|||
|
|||
Yeah, I don't actually wanna limit posting, just thread creation.
I think I have it nailed down. mysql> select dateline,postusername from thread where dateline > UNIX_TIMESTAMP(NOW())-3600 and postusername = 'John-PB2X'; +------------+--------------+ | dateline | postusername | +------------+--------------+ | 1045231378 | John-PB2X | | 1045231443 | John-PB2X | +------------+--------------+ 2 rows in set (0.67 sec) Thats just for some user I noticed was currently posting. I think I can do something similar to that in the newthread.php and have it work.. |
#4
|
|||
|
|||
This is what I came up with (in newthread.php)
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|