Forums / Extensions / Get user posts of the forum,,,

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