Sunday 15 August 2004 6:55:25 am
I'm trying to use the object_count_by_user_id to show the number of forum-posts done by each user. I've inserted the following code in my forum_topic.tpl:
{let objcount=fetch( 'content', 'object_count_by_user_id',
hash( 'class_id', 45,
'user_id', $owner.main_node_id ) )}
{$owner.main_node_id}
<p>{$objcount} posts</p>
{/let}
It returns "0 posts" for all users, no matter how many posts they've actually done.. Any ideas as to why this doesn't work?
|