1
deepak267
Where can i download latest version of Xoops stats
  • 2009/11/26 0:27

  • deepak267

  • Quite a regular

  • Posts: 352

  • Since: 2008/8/15


Can anybody tell me where can i download the Xoop Stat by IBDeeming?.


the link Xoop stat v1.0 seems to broken. let me know if there is any more higher version available.

Thanks in advance

Deepak

2
iHackCode
Re: Where can i download latest version of Xoops stats

i only have/know of the v .60

http://sourceforge.net/projects/xoops/files/XOOPS%20Module%20Repository/XOOP-Statistics/

3
deepak267
Re: Where can i download latest version of Xoops stats
  • 2009/11/26 22:58

  • deepak267

  • Quite a regular

  • Posts: 352

  • Since: 2008/8/15


Thanks Bandit.


I installed the v0.6. however i am stuck as the instruction say
------------------------------

Add the following to your header.php (XOOPS 2.0.x) or bottom of common.php (XOOPS 2.2.x) file located in the root of XOOPS

// for stats by XOOPS@IBDeeming!
include_once XOOPS_ROOT_PATH.'/modules/statistics/include/hitcounter.php';
for XOOPS 2.0.x
at the top of the file header.php under the line
include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
for XOOPS 2.2.x
at the bottom of the file include/common.php under the line
$xoopsLogger->context = "module";
but before the last ' } ' (curly brace)
-----------------

I am not able to find either lines mentioned in header.php or common.php on XOOPS v2.4.1. Do you know where should i include the "hitcounter.php" on the core files.

Deepak

4
iHackCode
Re: Where can i download latest version of Xoops stats

for those XOOPS 2.4.1 users.

add a folder called preloads in that module. so it looks like (modules/statistics/preloads)

create the file core.php
<?php
defined
('XOOPS_ROOT_PATH') or die('Restricted access');

/**
 *  core preload
 */
class StatisticsCorePreload extends XoopsPreloadItem
{
    function 
eventCoreHeaderStart(&$args)
    {
        global 
$xoopsConfig;
        include_once 
XOOPS_ROOT_PATH.'/modules/statistics/include/hitcounter.php'
    }

}
?>


but only include this file in that folder when the module is installed, or there will be errors.

5
ghia
Re: Where can i download latest version of Xoops stats
  • 2009/11/27 1:15

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Isn't the loader testing if the module is active, before loading module specific preloads?

6
iHackCode
Re: Where can i download latest version of Xoops stats

right ghia. module preloads should only be included on modules that are active. ( submitted to bugs.https://sourceforge.net/tracker/index.php?func=detail&aid=2904777&group_id=41586&atid=430840 )

7
trabis
Re: Where can i download latest version of Xoops stats
  • 2009/11/28 12:00

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


True, but preload class is one of the first to load and does not have access to database when instantiated. This need to be done using a cache file holding the current installed and active modules. That will be done on XOOPS 2.5. For now modules will have to check if they are installed and active in the preload itself before executing any code.

Look on example from profile preload:
function eventCoreUserinfoStart($args)
    {
        if ( 
ProfileCorePreload::isActive()  ) {
            
header("location: ./modules/profile/userinfo.php" . (empty($_SERVER['QUERY_STRING']) ? "" "?" $_SERVER['QUERY_STRING']) );
            exit();
        }
    }

    function 
isActive()
    {
        
$module_handler =& xoops_getHandler('module');
        
$module $module_handler->getByDirname('profile');
        return (
$module && $module->getVar('isactive') ) ? true false;
    }


8
ghia
Re: Where can i download latest version of Xoops stats
  • 2009/11/28 15:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


But I assume that after doing the loadings for the system, the database becomes available and that isactive function can also be done in the search for module preloads loop?

I think there should also be some list that can enable and disable preloads for a module in some preference or module managment function.

9
Hasanibrahim
Re: Where can i download latest version of Xoops stats

Hello,

i am using XOOPS 2.3.3. i couldn't find a statistic module that counts visitors.

i tried 4 modules and all have problems. now i installed this (statistics) module but now it's not increasing :(

i created "preloads" folder under statistics and created "core.php" as you said. And put this (core.php) into preloads. i mean

http://root/modules/statistics/preloads/core.php

must i do anything more ?

i want to make a block like on the left of this site:

http://www.alumniqber.org/alumnionline/

called membership and webstats :(

10
Hasanibrahim
Re: Where can i download latest version of Xoops stats

Also there is no "istats 2.2" module anywhere. i have tried to search on google. myxoops.de web site closed so the download page is over.

Login

Who's Online

215 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

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

Latest GitHub Commits