I tried the code above but for some reason it posts the message and then brings up the error message. If you try and then go into the thread aferwards it just syays ' you last post had too many blah blah' so I'm not sure why this is not working for us.
Quote:
Originally posted by Logician
My code above checks the message before it is inserted into the database so it shouldnt behave like you said if you applied the code correctly and used "exit" command as I suggested.
If it's a common problem, the best practise will be changing the spammer's usergroup to banned/ moderated or restricted users inside the code to get rid of them easy and quick.
Don't forget to use "exit" command, otherwise the script will not stop and it will write the post to the database which will cause problems like you mentioned..
|