Members count

Author Message

Martynas Bilevičius

Wednesday 09 July 2008 4:42:39 am

Hello, how to count registered users from one member group.
I try this but is no results.

12 - user gruoup ID

{def $node_list=fetch( 'content', 'list', hash( 'parent_node_id', 12 ) ) }
{foreach $node_list as $node}
{$node.name|wash}
{/foreach}
{undef $node_list}

André R.

Wednesday 09 July 2008 4:53:11 am

You probably don't have read rights to that folder, try to login as admin ( <site>/user/login ) to see if that is the case.

If you want to list out all members even if the user doesn't have read access to that folder, then you can use the 'limitation', array() functionality mentioned in the doc.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Martynas Bilevičius

Wednesday 09 July 2008 9:36:11 am

Thanks, now OK

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 18 2025 11:04:10
Script start
Timing: Jan 18 2025 11:04:10
Module start 'layout'
Timing: Jan 18 2025 11:04:10
Module start 'content'
Timing: Jan 18 2025 11:04:11
Module end 'content'
Timing: Jan 18 2025 11:04:11
Script end

Main resources:

Total runtime0.8866 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7891152.6094
Module start 'layout' 0.00610.0038 740.398439.4141
Module start 'content' 0.00990.8753 779.8125532.6328
Module end 'content' 0.88520.0014 1,312.44538.1953
Script end 0.8866  1,320.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4206160.0002
Check MTime0.00140.1534160.0001
Mysql Total
Database connection0.00100.110010.0010
Mysqli_queries0.839694.6988570.0147
Looping result0.00060.0637550.0000
Template Total0.851896.120.4259
Template load0.00330.372420.0017
Template processing0.848595.704320.4243
Template load and register function0.00020.023910.0002
states
state_id_array0.00160.182410.0016
state_identifier_array0.00100.116820.0005
Override
Cache load0.00260.2986180.0001
Sytem overhead
Fetch class attribute can translate value0.00040.050320.0002
Fetch class attribute name0.00130.146340.0003
XML
Image XML parsing0.00070.076920.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00070.0832170.0000
String conversion0.00000.001040.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/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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs