5
Do you want users to be able to turn it off?
If so, then it's just a matter of hacking the user activation process so that it is automatically set to be notified of new forum posts.
$module_handler =& xoops_gethandler('module');
$forummodule =& $module_handler->getByDirname('newbb');
$moduleid = $forummodule->getVar('mid');
$notification_handler =& xoops_gethandler('notification');
$notification_handler->subscribe('global', 0, 'new_post', null, $moduleid, $user->getVar('uid'));
Stick this code in kernel/member.php
in the activateUser() function in between lines 413 and 414
so the code looks like this:
function activateUser(&$user)
{
if ($user->getVar('level') != 0) {
return true;
}
$user->setVar('level', 1);
$module_handler =& xoops_gethandler('module');
$forummodule =& $module_handler->getByDirname('newbb');
$moduleid = $forummodule->getVar('mid');
$notification_handler =& xoops_gethandler('notification');
$notification_handler->subscribe('global', 0, 'new_post', null, $moduleid, $user->getVar('uid'));
return $this->_uHandler->insert($user, true);
}