Number of Post on the forum

Author Message

Pierre Rigal

Wednesday 13 April 2005 10:59:54 am

Hello,
I use the forum package on my website and I want to know how can I display the number of post of each members under their "User Image" in forum topic and forum replies.

Just like this :

Member since:
10/01/2005
Posts: 19

Thanks

Ɓukasz Serwatka

Thursday 14 April 2005 2:22:52 am

Hi Pierre,

You can use object_count_by_user_id

Code example with object_count_by_user_id here
http://ez.no/ez_publish/documentation/reference/data_fetching/content/object_count_by_user_id

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 03:37:24
Script start
Timing: Jan 31 2025 03:37:24
Module start 'layout'
Timing: Jan 31 2025 03:37:24
Module start 'content'
Timing: Jan 31 2025 03:37:24
Module end 'content'
Timing: Jan 31 2025 03:37:24
Script end

Main resources:

Total runtime0.0220 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1328151.2109
Module start 'layout' 0.00440.0033 739.3438220.6875
Module start 'content' 0.00770.0127 960.0313997.9141
Module end 'content' 0.02040.0016 1,957.945329.9922
Script end 0.0220  1,987.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.9734140.0002
Check MTime0.00114.9215140.0001
Mysql Total
Database connection0.00062.840410.0006
Mysqli_queries0.002310.630530.0008
Looping result0.00000.035710.0000
Template Total0.00125.410.0012
Template load0.00104.472610.0010
Template processing0.00020.938910.0002
Override
Cache load0.00073.347710.0007
General
dbfile0.003013.397480.0004
String conversion0.00000.029240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs