I'm trying to fix up the "Auto-Moderation by Keywords" mod because it doesn't seem to work in VB 3.6 (at least for me). The problem is that although it works for replies to messages, it will not moderate new threads.
The plugin uses the following code:
Code:
if (str_replace(explode(',', $this->registry->options['automodkeywords']), '', strtolower($this->fetch_field('pagetext'))) != strtolower($this->fetch_field('pagetext')))
{
$this->set('visible', 0);
}
This is valid and works fine in the
postdata_presave hook location (where replies are created). However it does not work in the
threadfpdata_presave hook location (where new threads are created).
The problem seems to be in the
$this->fetch_field('pagetext') code - it seems to be invalid/blank on the
threadfpdata_presave hook. Any idea what to use instead on VB 3.6.0?
Thanks in advance. I'm a newbie.