Yes, there is a bug which obviously wasn't discovered before 'cause it's rare in use :-)
There are needed to update both Pre-moderation add-on's code and miniBB's core code. It all will be fixed in the next release(s). Until now, there are steps to modify:
miniBB Files-
bb_func_ldisc.php, find this request:
if($row=db_simpleSelect(0, $Tp, 'poster_id, poster_name, post_time, topic_id, post_text', '', '', '', 'post_id '.$ordSql))
add 'post_id' to it:
if($row=db_simpleSelect(0, $Tp, 'poster_id, poster_name, post_time, topic_id, post_text, post_id', '', '', '', 'post_id '.$ordSql))
below find this line:
if(!isset($pVals[$row[3]])) $pVals[$row[3]]=array($row[0],$row[1],$row[2],$row[4]); else continue;
add '$row[5]' to it:
if(!isset($pVals[$row[3]])) $pVals[$row[3]]=array($row[0],$row[1],$row[2],$row[4], $row[5]); else continue;
Then find this line:
else $lastPostText=$lptxt;
BEFORE of it paste this:
elseif($preModerationType>0 and isset($premodPosts) and in_array($pVals[$topic][4], $premodPosts)) $lastPostText='';
The same actions needed for the similar code of
bb_func_vtopic.php.
Pre-moderation add-on: addition to bb_plugins.php code is required.
Look up for
require_once($premodDir.'premoder_posts.php');This condition needs to be expanded to:
if((isset($textLd) and $textLd>0 and ($action=='' or $action=='vtopic') ) or $action=='vthread' or $action=='search') require_once($premodDir.'premoder_posts.php');
Let us know how it works.