ezstats works but view.tpl wont show anything but 0

Author Message

Matthew Almand

Tuesday 12 July 2005 12:13:52 am

I have set up ezstats successfully for one client, everything runs fine. So for another client I also set up ezstats but the view.tpl is not grabbing the numbers from the DB. I know the plugin is working as I can look in the DB and the table is full with recorded entries but the view.tpl just will not display the info it always says 0. Any help?

Thanks

Eivind Marienborg

Tuesday 12 July 2005 12:26:08 am

Is there anything in the debug output?

Have you added the ActiveExtensions[]=stats to your site.ini.append?

Matthew Almand

Tuesday 12 July 2005 12:39:19 am

yes the extension is activated, the DB cannot be populated prior to it being activated. It would seem that everything works it is just that the view.tpl is pointing incorrectly to the DB or something.

Konrad Mazurkiewicz

Tuesday 12 July 2005 9:17:43 am

Hi,
Are You check that every setting is ok?
It should work without problems.

Maybe try version from my svn server. It is not finished and not ready for contrib yet, but is working on few sites without problems.

Eivind - thanks for suggestions. I've made functions You're lookin for, eg.
- Viewing traffic for smaller periods than one month
- Viewing traffic for each section
- Exclude/include by class
and new operator

ezstats_get_list( hash( ['node_id', int],
                        ['section_id', int],
                        ['date', array( oper, date ) | 'date', array( array( date_from, date_to ) )],
                        ['user_id', int],
                        ['class_filter', array( 'include|exclude', array( list_of_class_id's ) ) ],
                        ['offset', int],
                        ['limit', int],
                        ['sort_by', array( 'date|section_id|node_id|user_id', 'asc|desc' )],
                        ['group_by', 'user_id|node_id']
                      ) )

Konrad

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.