James Swindle
Forum Replies Created
-
Forum: Hacks
In reply to: Blocking free email accounts with php or Contact Form 7For some reason my original method of using a separate function to test the domain wasn’t working for some reason. The function just would not work.
So, I ended up just rewriting the original validation to split the email and check.
Just replace the old function with my new one and it should work fine. At the top you will notice an array of domains, add/remove as many as you like.
Then, right after the test for email type it checks that the domain is there, and finally at the bottom it tests whether the user domain is in the array of free domains.Forum: Hacks
In reply to: Blocking free email accounts with php or Contact Form 7Hey, I did manage to get something working in theory, but it didn’t work in practice. However, before I had time to get it actually working my boss decided against the mod.
I can get you exactly what I coded, but it won’t be until Monday.
Basically, I just had an array of free email domains and created a function that split the email apart to test the domain against the array values.
I don’t remember where I added the call to this new function, but I think it was right about where you’ve been messing around.
As for your error, you have the syntax wrong. Try this.
if( strpos(strtolower( $_POST[$name] ),'[email protected]') !== false )
Forum: Plugins
In reply to: [Review Schema] [Plugin: Review Schema] Questions and Feature RequestThe url to item just gives search engines more information about the reviewed item. It doesn’t change the content at all and probably has no effect on Google, but it doesn’t hurt.
On the next version release, you will be able to place the review stars anywhere in the post.
I’m not quite sure what you mean by numerically prioritised.