Forums / Developer / User Stats

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

eZ debug

Timing: Jan 14 2025 21:38:13
Script start
Timing: Jan 14 2025 21:38:13
Module start 'content'
Timing: Jan 14 2025 21:38:14
Module end 'content'
Timing: Jan 14 2025 21:38:14
Script end

Main resources:

Total runtime0.8247 sec
Peak memory usage6,144.0000 KB
Database Queries195

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 684.8125214.8125
Module start 'content' 0.00590.7171 899.62501,875.0313
Module end 'content' 0.72300.1016 2,774.6563636.1406
Script end 0.8246  3,410.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00740.8951210.0004
Check MTime0.00160.1895210.0001
Mysql Total
Database connection0.00070.087910.0007
Mysqli_queries0.733188.89541950.0038
Looping result0.00150.18081920.0000
Template Total0.797096.620.3985
Template load0.00450.546820.0023
Template processing0.792596.091620.3962
Template load and register function0.00130.163310.0013
states
state_id_array0.00130.156710.0013
state_identifier_array0.00070.082220.0003
Override
Cache load0.00410.5025310.0001
Sytem overhead
Fetch class attribute can translate value0.00150.185440.0004
Fetch class attribute name0.00200.246170.0003
XML
Image XML parsing0.00120.146640.0003
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00090.1122280.0000
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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