From what you have posted - no.deepkar wrote:Can someone please help me with a variable or setting I can trigger?
Not sure of the question. However, I'm looking at data inside "$message_parser->message" on submit and then applying my logic.david63 wrote:From what you have posted - no.deepkar wrote:Can someone please help me with a variable or setting I can trigger?
Which event are you you using?
As mentioned above, I'm looking for a specific pattern in what's there in the message. (the pattern is based on what I see in most of the spam posts)RMcGirr83 wrote:and how are you trying to "detect spam".
If you don't understand the question then how are you doing this?deepkar wrote:Not sure of the question.
core.message_parser_check_message
event but that's a guess.Code: Select all
if ($submit || $preview || $refresh)
{
$post_data['topic_cur_post_id'] = request_var('topic_cur_post_id', 0);
$post_data['post_subject'] = utf8_normalize_nfc(request_var('subject', '', true));
$message_parser->message = utf8_normalize_nfc(request_var('message', '', true));
I ended up editing code because that seemed to be the only way to have a customized way of preventing SPAM. And I did not find a solid anti-spam extension that would fit my needs. (And I'm tackling human spammers)david63 wrote:The whole point of phpBB 3.1 is that you do not edit core code but use extensions
Now that I'm trying to modify this extension, I'm trying to figure out how to let them submit the post and mark the post as waiting for approval (and not just throw an error preventing submission). Probably a small flag somewhere? Appreciate any pointers.RMcGirr83 wrote: ↑Fri Jul 22, 2016 1:39 pm Take a look at this extension which checks posts and signatures (needs an event for signatures which is why it is stated for 3.1.10-RC1 in ext file...if testing on 3.1.9 change the version in the ext.php file of the extension) on TLD's within the post. If found triggers an error.
Similar to what you are trying to accomplish only you would change the check_text function of the class.