User Stats

Author Message

Sandra Parente

Monday 30 August 2004 8:42:28 am

I want to display on a company site some stats (like ez Community Stats) about users: number of visits, activity, etc.
I found nothing in http://ez.no/ez_publish/documentation/reference/data_fetching/user.

There is a $userVisitArray in user.php, but I don't know how to fetch it in the template...

Thanks for any help.

Sandra Parente

Sandra Parente
www.netbliss.it

Ole Morten Halvorsen

Tuesday 31 August 2004 12:16:32 am

Hi Sandra,

eZ publish does not support fetching or filtering on owner id. If you want this check out Paul Borgermans contribution: http://www.ez.no/community/contributions/template_plugins/user_statistics

The operator used on ez.no to fetch user statistics is available here: http://www.ez.no/community/contributions/template_plugins/user_statistics

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Sandra Parente

Tuesday 31 August 2004 3:23:34 am

Thank you very much, Ole!
But where can I find Paul Bogermans' contribution? The links you submitted point both to your plug-in...

Sandra Parente

Sandra Parente
www.netbliss.it

Paul Borgermans

Tuesday 31 August 2004 3:39:34 am

Hi Sandra

http://ez.no/community/contributions/hacks/more_attribute_filter_operators_and_fetch_by_owner_id

This is only tested on 3.4.1 (or later: pubsvn.ez.no/stable/3.4)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Ole Morten Halvorsen

Tuesday 31 August 2004 3:52:03 am

Sandra,

Sorry about that :) I see Paul has posten the correct link.

Good luck!

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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

eZ debug

Timing: Jan 19 2025 09:48:16
Script start
Timing: Jan 19 2025 09:48:16
Module start 'layout'
Timing: Jan 19 2025 09:48:16
Module start 'content'
Timing: Jan 19 2025 09:48:18
Module end 'content'
Timing: Jan 19 2025 09:48:18
Script end

Main resources:

Total runtime1.2656 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 590.1641152.6094
Module start 'layout' 0.00600.0035 742.773439.3984
Module start 'content' 0.00941.2545 782.1719599.0000
Module end 'content' 1.26400.0016 1,381.171916.5156
Script end 1.2655  1,397.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2539160.0002
Check MTime0.00130.1012160.0001
Mysql Total
Database connection0.00120.097810.0012
Mysqli_queries1.203795.1098650.0185
Looping result0.00090.0673630.0000
Template Total1.232597.420.6163
Template load0.00240.185920.0012
Template processing1.230197.199720.6151
Template load and register function0.00010.008710.0001
states
state_id_array0.00130.105710.0013
state_identifier_array0.00100.080720.0005
Override
Cache load0.00190.1534310.0001
Sytem overhead
Fetch class attribute can translate value0.00090.069530.0003
Fetch class attribute name0.00150.116070.0002
XML
Image XML parsing0.00150.117530.0005
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00150.1152230.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs