39
I'm at a loss here..
I inserted the code, like so:
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1");
if ( $result ) {
$block['modules'][7]['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments";
list($block['modules'][7]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][7]['lang_linkname'] =_MB_SYSTEM_COMPEND;
}
[color=0000CC]<!-- start mod -->
if ($module_handler->getCount(new Criteria('dirname', 'wfsection'))) {
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("wfs_article")." WHERE published=0");
if ( $result ) {
$block['modules'][8]['adminlink'] = XOOPS_URL."/modules/wfsection/admin/allarticles.php?action=submitted";
list($block['modules'][8]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][8]['lang_linkname'] = _MB_SYSTEM_SUBWFS;
}
}
if ($module_handler->getCount(new Criteria('dirname', 'wfsection'))) {
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("wfs_files")." WHERE submit=0");
if ( $result ) {
$block['modules'][9]['adminlink'] = XOOPS_URL."/modules/wfsection/admin/allarticles.php?action=submitted";
list($block['modules'][9]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][9]['lang_linkname'] = _MB_SYSTEM_WFDLS;
}
}
<!-- end mod -->[/color]
return $block;
}
function b_system_info_show($options)
{
global $xoopsConfig, $xoopsUser;
$xoopsDB =& Database::getInstance();
Between the <!-- start mod --> and <!-- end mod -->, but not only does my waiting contents block disappear, also my top posters and new members block is gone ??
Obviously need help here...
Thanks.