Get user posts of the forum,,,

Author Message

D K

Friday 28 November 2008 4:02:51 am

I want to get all topics of the forum that submitted by the logged user. Anyone know how to do this. Please help me!

http://www.eyepax.com

Ivo Lukac

Friday 28 November 2008 8:37:14 am

Hello,

You can try it like this:

{def $cuser=fetch(user, current_user)}
{def $topic_list=fetch('content','list',hash( 
     parent_node_id, $forum_node_id,
     class_filter_type,include,
     class_filter_array,array('forum_topic'),
     attribute_filter, array( array('owner','=',$cuser.contentobject.id) )
) )}

For more info look here:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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 05:20:24
Script start
Timing: Jan 18 2025 05:20:24
Module start 'layout'
Timing: Jan 18 2025 05:20:24
Module start 'content'
Timing: Jan 18 2025 05:20:25
Module end 'content'
Timing: Jan 18 2025 05:20:25
Script end

Main resources:

Total runtime1.2548 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9141152.6250
Module start 'layout' 0.00640.0028 740.539139.4453
Module start 'content' 0.00921.2441 779.9844524.2891
Module end 'content' 1.25330.0015 1,304.27348.1641
Script end 1.2548  1,312.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3057160.0002
Check MTime0.00140.1126160.0001
Mysql Total
Database connection0.00100.082610.0010
Mysqli_queries1.209196.3597540.0224
Looping result0.00060.0466520.0000
Template Total1.222397.420.6112
Template load0.00220.176520.0011
Template processing1.220197.232620.6101
Template load and register function0.00020.013710.0002
states
state_id_array0.00080.061210.0008
state_identifier_array0.00100.076220.0005
Override
Cache load0.00200.1592110.0002
Sytem overhead
Fetch class attribute can translate value0.00080.065120.0004
Fetch class attribute name0.00120.092030.0004
XML
Image XML parsing0.00180.145620.0009
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00090.0725170.0001
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs