net-cat
02-21-2004, 10:00 PM
I'm sure most people have had somebody who is excessively negative or insulting, who still returns after warnings, bans and IP bans.
So I've created another fun thing to do with such members. I've named it the "Happy Bastard Hack."
If a user that been selected makes a new post, the text of the post will be erased and a pre-designated message is selected at random from the database to use instead. (If a message has been used in the last hour, it will not be chosen, unless all the messages have been used in the last hour.) If the post is a new thread, the subject will be "I'm so happy!!! XD". If the post is not a new thread, the subject is erased. "Happy Bastard" users also may not edit their posts. When they attempt to edit their posts, no errors will be displayed, but no changes will actually occur. They may still delete their own threads/posts. (If that's enabled in their permissions.)
I am unable to provide support via e-mail or Private Messages. I have tested this hack, and it appears to work. If you have any code-related problems, post them in this thread and I'll see what I can do. This hack was written and tested for vBulletin 2.3.4.
Hack Stats:
Queries: 2
Files to Modify: 6
Files to Upload: 1
And for a first (released) hack, this probably wasn't the greatest one I could have chosen... :ermm:
So I've created another fun thing to do with such members. I've named it the "Happy Bastard Hack."
If a user that been selected makes a new post, the text of the post will be erased and a pre-designated message is selected at random from the database to use instead. (If a message has been used in the last hour, it will not be chosen, unless all the messages have been used in the last hour.) If the post is a new thread, the subject will be "I'm so happy!!! XD". If the post is not a new thread, the subject is erased. "Happy Bastard" users also may not edit their posts. When they attempt to edit their posts, no errors will be displayed, but no changes will actually occur. They may still delete their own threads/posts. (If that's enabled in their permissions.)
I am unable to provide support via e-mail or Private Messages. I have tested this hack, and it appears to work. If you have any code-related problems, post them in this thread and I'll see what I can do. This hack was written and tested for vBulletin 2.3.4.
Hack Stats:
Queries: 2
Files to Modify: 6
Files to Upload: 1
And for a first (released) hack, this probably wasn't the greatest one I could have chosen... :ermm: