![]() |
Anti-spam post decrementer
This is a bit of a silly hack, but a few of my moderators wanted it, so I thought I'd share it with you people.
What it does is when a user posts, the system checks against a list of user IDs, and if the user is in that list, their post count goes down by one, rather than going up by one post. Very silly I know, but anyway... 1) run the following query: Code:
INSERT INTO setting (settinggroupid, title, varname, description, displayorder) VALUES Code:
function incrementposts($userid) { Code:
".iif ($foruminfo[countposts],"posts=posts+1,","")." Code:
".iif ($foruminfo[countposts], incrementposts($bbuserinfo['userid']), '')." Have fun :classic: |
Odd little hack, but it is nice to have fun with your members every now and then :).
- SaintDog |
i smell a late april 1st :p, love the hack ^_^
|
not a particulaly useful hack, but fun to screw around with :-P
|
Quote:
|
rolf this is great, Im going to install it to bug all my troll members! hahaha, awesome :D
|
LOL, nice one Kier.
|
Looks very funny hehehe
|
What if a user gets down to 0? Will it start counting -1, -2 and so on? Or will it stop at 1? :)
|
Quote:
[sql]ALTER TABLE user CHANGE posts posts SMALLINT DEFAULT 0 NOT NULL;[/sql] |
All times are GMT. The time now is 12:28 PM. |
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:
|