12
Yup, my fault i forgot to rename the classnames according to the file names.
If you want to use header and footer.php you should use these files
myreferer/preloads/header.php:
defined('XOOPS_ROOT_PATH') or die('Restricted access');
class myRefererHeaderPreload extends XoopsPreloadItem{
function eventCoreHeaderStart(){
global $xoopsDB, $xoopsUser;
include(XOOPS_ROOT_PATH.'/modules/myReferer/record.php');
}
}
?>
uservisit/preloads/footer.php:
defined('XOOPS_ROOT_PATH') or die('Restricted access');
class UservisitFooterPreload extends XoopsPreloadItem{
function eventCoreFooterStart(){
include(XOOPS_ROOT_PATH."/modules/uservisit/index.php");
}
}
?>
But you realy don't have to change your files, because renaming them to core.php also works :), i just wanted to post the right code ;).
Greets Dylian.