1
wizanda
Guide on adding waiting contents block for CBB in Xoops
  • 2007/3/3 17:21

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


You can find where the other modules are defined and added this code to it, just below the others to match

\modules\system\blocks

le="color: #000000"><?php 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
le="color: #000000"><?php define("_NWB_REPORTS_SUBMITTED","Reported"); define("_NWB_WAITING_SUBMITTED","Submitted");


That gives you CBB Reports and Submission in the waiting contents block of Xoops.


Who's Online

210 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits