2
$module_handler = xoops_gethandler("module");
$pd_module = $module_handler->getByDirname("PDdownloads");
$comment_handler = xoops_gethandler("comment");
$criteria = new Criteria("com_modid", $pd_module->getVar('mid'));
$criteria->setGroupBy("com_uid");
$counts_per_user = $comment_handler->getCount($criteria);
At least for XOOPS 2.2.x, this should work and give you an array of
uid => number of comments in PD downloads module
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software