If you’ve worked with Dolphin for any length of time you’re probably aware that spam signups are an on-going problem. In the past I’ve covered some techniques to stop these unwanted guests from spreading their advertising all over your site. Today I’ll show you how to add a “spam question” to your join page and stop even more of them.
We’ll start out by logging into the Dolphin admin panel and going to the “Builder” menu on the left side menu. Then click “Profile fields” and drag a “New_Item” block to the join form. Click the new block and change the “System Name” to “SpamQuestion”. For the “Caption” enter any question you like. For this example, we will use “What’s 3 + 2?” Now click the advanced tab and put a check mark next to “Mandatory” and under “Check” enter this:
return strtolower($arg0) == ’5′;
You would replace the number 5 with the answer to your actual question.
That’s it! Now you have one more speed bump to stop the sea of spammers!
Until next time happy social networking!