Question about Drupal coding solution to the ND-Kelly nonsense on the board

Submitted by DesHow21 on
How long would it take to write a script that would do this? Check every board post title for the words "ND" and "Kelly" and immediately do the following: 1. Delete post. 2. Execute banhammer. and if the post also contains words like "WFDN", "My ND friends" or "Irishcentral" then: 3. Carpet bomb registered email of OP with spam.

NHWolverine

December 3rd, 2009 at 11:32 AM ^

public void executeBanhammer() { removeFromUserDatabase() }
Unfortunately not real code. I'm behind you though Rod it's getting old. EDIT: honestly, I'd rather see a million Brian Kelly speculation threads than another "FIRE RR!!" thread so hey if it keeps everyone busy then let them eat cake.

octal9

December 3rd, 2009 at 11:54 PM ^

if(post.title.match(new Regex("\w+[ND|MSU|brian " +
        "kelly|dantonio|notre dame|harbaugh|" +
        "weisisfatlolol]\w+", "i")) != -1) {
   forum.manager.deleteThreadByID(post.header.id);
   forum.manager.executeUser(post.op.username,'ban', 
                             days:int = 3);
}
Oughta do it. HOWEVA, that is a very mean regex. It'll kick plenty of people that might not deserve it.

Dark Blue

December 3rd, 2009 at 11:14 AM ^

But its so much fun to speculate.....In all seriousness I agree with you. This is mgoblog not mwhoisthenextcoachatnotredamegobriankelly. Thank god our bball team play Arkansas Pine Bluff next, maybe that will get us back on track.

Tater

December 3rd, 2009 at 2:00 PM ^

The ND search is such a big story that it is overshadowing the championship games this weekend; it is natural for people to post and speculate. When you have a lot of passionate sports fans in the same place, it is usually difficult to get them to agree on what is important and what isn't. Usually, live and let live works the best. After all, it's not like anyone is forcing anyone to read a thread they don't want to read.

maizenbluedevil

December 3rd, 2009 at 7:39 PM ^

A lot of people are interested in it (obvs) so it's reasonable to discuss it. I agree though that the many, many threads are not only redundant but they're saying the same thing over and over again. So, why not just have a single, stickied thread called, "ND Coach Search"? All posts about it go there, any new thread about it gets deleted.