I'm trying to add interfaces to some 3rd party modules for the incoming content area of the menu block. I've followed the code in /includes/blocks/menu.php that supports the core modules but I've run into a problem. One of the modules I tried was for incoming business listings in the bizpages module. It only works when I'm on the bizpages module page. If I'm on the home page or any other page it will not display the incoming content on the menu or incoming block. The core module stuff works no matter what page you have loaded. I've referenced http://community.pos…pic-topic-49229.htm for DB connection information but still cannot understand why it only works when the module is loaded. Is the database tables for 3rd party modules loaded only when the page is loaded and not global like the core module tables ?? Any help with clues on this problem would be appreciated.
Here is my code:
Quote
// bizpages module :: Pending new and changed bizpage listings.
///////////////////////////////////////////////////////////////
if (pnSecAuthAction(0, "bizpages::", '::', ACCESS_ADD) && pnModAvailable('bizpages')) {
$result =& $dbconn->Execute("SELECT count(1) FROM $pntable[bizpages_bizpending]");
if ($dbconn->ErrorNo() == 0) {
list($fnum) = $result->fields;
$result->Close();
if ($fnum) {
$waiting .= addMenuStyledUrl($vars['style'], "BizPages: $fnum", "index.php?module=bizpages&type=admin&func=bizselect&swhere=pending&bfield=status&btable=bizpending", "");
}
}
