<![CDATA[ [PLUGIN] Spongestats - My Forums]]> https://forums.modx.com/thread/?thread=16878 <![CDATA[Re: [PLUGIN] Spongestats]]> https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91437 http://modxcms.com/forums/index.php/topic,19575.0.html Thanks Laurent!

Maybe others like to check it out too, and compare it to other solutions, like Slimstat. To compare either Spongestats and FireStats with Slimstat, you can just add the following line to your Spongestats/FireStats plugin code, assuming Slimstat is already installed:

 @include_once( $_SERVER["DOCUMENT_ROOT"]."/assets/plugins/slimstat/inc.stats.php" );


]]>
nightsignals Nov 05, 2007, 01:50 PM https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91437
<![CDATA[Re: [PLUGIN] Spongestats]]> https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91436
You can add a check on "Log stats" feature of the document to make it follow more precisely.

regards.]]>
zaigham Nov 05, 2007, 07:18 AM https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91436
<![CDATA[Re: [PLUGIN] Spongestats]]> https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91435 ]]> davidm Nov 05, 2007, 07:08 AM https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91435 <![CDATA[Re: [PLUGIN] Spongestats]]> https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91434 )

$e = &$modx->Event;
switch ($e->name) {
        case 'OnWebPagePrerender':
         @include_once( $modx->config['base_path']."spongestats/stats.php" );
        break;
        default :
            return;
        break;
}

]]>
laurentc Nov 05, 2007, 05:55 AM https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91434
<![CDATA[ [PLUGIN] Spongestats]]> https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91433 Here an alpha version of a MODx Plugin to use the Spongestats stats system.
I can’t test it on a live server for the moment so if you can do this test for me, an report any problems it will be great !

* Instructions :
* - Install Spongestats at the root of your site  e.g. yoursite root/spongestats/
* /!\ The Spongestats tables MUST be on the same database as MODx

* - Copy the spongestats folder in your assets/plugins/ folder
* - Create a new plugin named Spongestats
* - Copy/Paste this code in it
* - Config Parameters :
*  &dbSPS_prefix=SPS table prefix if not sps_;string;   //OPTIONAL

* - Check the OnWebPagePrerender event
* - Save
* - To see the stats go to "yoursite root/spongestats/"
*/



]]>
laurentc Nov 05, 2007, 03:59 AM https://forums.modx.com/thread/16878/plugin-spongestats#dis-post-91433