User group summary information

Author Message

Karl H

Sunday 05 August 2007 7:32:19 pm

Hello,

We've got a members site, where we have a page on which we'd like to output information about the membership. There are three parts:

1. Number of members
2. Countries with members and members per country
3. Individual preference

The first one wasn't a problem, and we're now displaying the number of members, but with the other two I'm struggling. A little more info:

We have a user class - 30 - where the #country# attribute is 10. I don't know how to fetch a country list and then only output the ones which is actually selected by at least one member. Then secondly, output the number of members for that coutry rather than having to repeat a country name if there is more than one member there.

The third part above, is again from the same user class, but this time a single choice selection attribute (10). Again, I'd like to output a list of the ones which have been selected by at least one member and then list the number of member's having selected each one, next to them.

Would be very happy to hear some ideas!

Karl

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 21:13:17
Script start
Timing: Jan 18 2025 21:13:17
Module start 'layout'
Timing: Jan 18 2025 21:13:17
Module start 'content'
Timing: Jan 18 2025 21:13:18
Module end 'content'
Timing: Jan 18 2025 21:13:18
Script end

Main resources:

Total runtime0.9871 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9141152.6250
Module start 'layout' 0.00530.0035 740.539139.4609
Module start 'content' 0.00870.9761 780.0000401.2266
Module end 'content' 0.98490.0022 1,181.22668.1641
Script end 0.9870  1,189.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3536160.0002
Check MTime0.00150.1526160.0001
Mysql Total
Database connection0.00060.059710.0006
Mysqli_queries0.949796.2153460.0206
Looping result0.00040.0433440.0000
Template Total0.956496.920.4782
Template load0.00230.231720.0011
Template processing0.954196.660020.4771
Template load and register function0.00010.013110.0001
states
state_id_array0.00080.079110.0008
state_identifier_array0.00200.207620.0010
Override
Cache load0.00180.1830130.0001
Sytem overhead
Fetch class attribute can translate value0.00050.052710.0005
Fetch class attribute name0.00050.052210.0005
XML
Image XML parsing0.00010.010310.0001
class_abstraction
Instantiating content class attribute0.00000.001610.0000
General
dbfile0.00140.1432100.0001
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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs