Depending on my day, the pMachine Feature Requests forum is either my favorite or least favorite forum to take a peek in. You either want to strangle people or you think their ideas are good and perhaps even clever. Probably has as much to do with their presentation of the feature as it does with the feature itself. Trying to sell me on a feature takes work, especially if I do not see a good enough reason for it to be included in the core program.
With extensions though, a large number of feature requests that we may decide not to include in ExpressionEngine can be added with a minimum of work on the part of the user. I thought with this DevBlog entry, we might do something relatively simple like taking Adam’s feature request and doing the first three suggestions he has for preventing comment spam.
Cool, thanks! I suspect someone else will come along soon and expand the extension even more (take the code and go, people!), since this was really meant more as an example than anything.
Yes, I can code fast. Deciding what to do and how to do is far more time consuming. Oh, and explaining it. Took me about ten minutes to write the extension and another five to test it (bugs bugs bugs), but the DevBlog entry took something like two hours to do. I grant I might have played some GoldenEye in the middle there though.
Thanks, EE lover. I do believe my name is Paul (could someone look into that and check?). I have been thinking about changing it to something a bit exotic like P’aul though.
Someone hack this up to add one small - but big - improvement:
I want to make it so that my Editors member group and Super Admins group are not affected by the spam settings. Earlier this morning one of my editors tried to put 4 hyperlinks into a comment, with good reason, and the extension wouldnt allow him to do it. I had to up the number of links to 4, but that is now less effective at fighting spam.
Just installed. What does this new one do? I am guessing, it is just protection to not stop Super Admins? Or will it allow ANY group with weblog posting privileges to get through the filter?
Simply protects the superadmins, no one else. You should see where I am checking for the group_id at the top of the second function so if you need to add more groups you can do it there.