3
You need to add a folder call 'preloads' and create a file inside called 'core.php' for each of those modules.
Inside myReferer/preloads/core.php use:
class MyRefererCorePreload extends XoopsPreloadItem
{
function eventCoreHeaderStart($args)
{
include XOOPS_ROOT_PATH . '/modules/myReferer/record.php';
}
}
?>
Inside uservisit/preloads/core.php use:
class UservisitCorePreload extends XoopsPreloadItem
{
function eventCoreFooterStart($args)
{
include XOOPS_ROOT_PATH . '/modules/uservisit/index.php';
}
}
?>
Did not test it.
[EDIT] I did not saw Dylian post, it may need the use of globals, I did not check the module code.