No luck cleaning the datastore folder. That's what works in 4.3, 4.3 and 4.5:
/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
return parent::hookData();
}
/* End Hook Data */
public function searchResult( $indexData, $articles, $authorData, $itemData, $unread, $objectUrl, $itemUrl, $containerUrl, $containerTitle, $repCount, $showRepUrl, $snippet, $iPostedIn, $view, $canIgnoreComments=FALSE )
{
if( $indexData['index_class'] == 'IPS\forums\Topic\Post' AND ( !\in_array( $indexData['index_container_id'], explode( ',', \IPS\Settings::i()->banExcludeForums ) ) ) AND ( \IPS\Settings::i()->banGroups == '*' OR \IPS\Member::loggedIn()->inGroup( explode( ',', \IPS\Settings::i()->banGroups ) ) ) AND $view != 'condensed' )
{
$topic = \IPS\forums\Topic::loadAndCheckPerms( $itemData['tid'] );
$checkAccess = \IPS\banfromtopics\Manage::getBannedMemberStatus( $topic, \IPS\Member::loggedIn()->member_id );
if( $checkAccess === 'BANNED' )
{
$snippet = \IPS\Theme::i()->getTemplate( 'global', 'banfromtopics', 'front' )->bftNoPermission();
}
}
return parent::searchResult( $indexData, $articles, $authorData, $itemData, $unread, $objectUrl, $itemUrl, $containerUrl, $containerTitle, $repCount, $showRepUrl, $snippet, $iPostedIn, $view, $canIgnoreComments );
}