* 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/" */
$e = &$modx->Event; switch ($e->name) { case 'OnWebPagePrerender': @include_once( $modx->config['base_path']."spongestats/stats.php" ); break; default : return; break; }
@include_once( $_SERVER["DOCUMENT_ROOT"]."/assets/plugins/slimstat/inc.stats.php" );