1
You can find where the other modules are defined and added this code to it, just below the others to match
\modules\system\blocks
if ($module_handler->getCount(new Criteria('dirname', 'newbb'))) {
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("bb_posts")." WHERE approved=0");
if ( $result ) {
$block['modules'][8]['adminlink'] = XOOPS_URL."/modules/newbb/admin/index.php" ;
list($block['modules'][8]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][8]['lang_linkname'] = _NWB_WAITING_SUBMITTED;
}
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("bb_report")." WHERE report_result=0");
if ( $result ) {
$block['modules'][9]['adminlink'] = XOOPS_URL."/modules/newbb/admin/admin_report.php" ;
list($block['modules'][9]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][9]['lang_linkname'] = _NWB_REPORTS_SUBMITTED;
}
}
\modules\system\languages\english\blocks
define("_NWB_REPORTS_SUBMITTED","Reported");
define("_NWB_WAITING_SUBMITTED","Submitted");
That gives you CBB Reports and Submission in the waiting contents block of Xoops.