1
Calipsy
xoops-stats - xoops 2.2.1
  • 2005/8/8 22:15

  • Calipsy

  • Just popping in

  • Posts: 87

  • Since: 2003/4/30


Hello, I am trying to install the xoops-stats 0.45, but how to add the bellow code to XOOPS 2.2.1?


Add the following to your header.php file located in the root of XOOPS

// for stats by XOOPS@IBDeeming!
include_once XOOPS_ROOT_PATH.'/modules/statistics/include/hitcounter.php';

at the top of the file header.php under the line

include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
Enjoy your day!
Cyber-Minds.Network......

2
DefJef
Re: xoops-stats - xoops 2.2.1
  • 2005/8/8 23:21

  • DefJef

  • Just popping in

  • Posts: 53

  • Since: 2005/8/8 2


are you able to edit the header.php file?

3
Calipsy
Re: xoops-stats - xoops 2.2.1
  • 2005/8/8 23:44

  • Calipsy

  • Just popping in

  • Posts: 87

  • Since: 2003/4/30


yes, I am. But the header.php in x2.2 is like this now:

"$GLOBALS['xoopsLogger']->context = "core";

// Get blocks
$block_handler =& xoops_gethandler('block');
$block_handler->assignBlocks();

$GLOBALS['xTheme']->checkCache();

if (!isset($GLOBALS['xoopsOption']['template_main'])) {
// new themes using Smarty does not have old functions that are required in old modules, so include them now
include XOOPS_ROOT_PATH.'/include/old_theme_functions.php';
// need this also
$xoopsTheme['thename'] = $GLOBALS['xoopsConfig']['theme_set'];
}
$GLOBALS['xoopsLogger']->context = "module";
?>"

So I don't know where to add the code for stats
Enjoy your day!
Cyber-Minds.Network......

4
jlm69
Re: xoops-stats - xoops 2.2.1
  • 2005/8/9 3:59

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


you can add it before

// Get blocks

It works for me.

5
Calipsy
Re: xoops-stats - xoops 2.2.1
  • 2005/8/10 0:50

  • Calipsy

  • Just popping in

  • Posts: 87

  • Since: 2003/4/30


Thanks jlm69

It worked!
Enjoy your day!
Cyber-Minds.Network......

Login

Who's Online

381 user(s) are online (336 user(s) are browsing Support Forums)


Members: 0


Guests: 381


more...

Donat-O-Meter

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

Latest GitHub Commits