11
belia
Re: myreferer & uservisit module with preloads xoops 2.4?
  • 2010/1/9 5:50

  • belia

  • Just popping in

  • Posts: 83

  • Since: 2007/12/18


Yes Thanks Ghia renaming it to core.php solve it...





12
Dylian
Re: myreferer & uservisit module with preloads xoops 2.4?
  • 2010/1/10 0:21

  • Dylian

  • Friend of XOOPS

  • Posts: 237

  • Since: 2007/7/21


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:
<?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:
<?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.

13
solo71
Re: myreferer & uservisit module with preloads xoops 2.4?
  • 2010/6/2 13:42

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


*noted*


14
belia
Re: myreferer & uservisit module with preloads xoops 2.4?
  • 2010/6/2 16:00

  • belia

  • Just popping in

  • Posts: 83

  • Since: 2007/12/18


hi solo....

any chance to have updates with new features for these great module?

Login

Username:
Password:

Lost Password? Register now!

Who's Online

67 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 67


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits