I've been working on a simple mod to view how many times a user has posted in a thread (using thread_view). I've been running something like:
As you can guess, it comes out as:
James - 1
Test - 1
James - 1
James - 1
I'm not sure (perhaps I was just tired at 3am) how to merge all the 'James' posts into one, with accumulating post numbers.
I get the feeling I'm gonna facepalm when I find out a quick method.
Code:
<xen:foreach loop="$posts" as ="$post">
{$post.username} - {xen:count $post.username}
</xen:foreach>
James - 1
Test - 1
James - 1
James - 1
I'm not sure (perhaps I was just tired at 3am) how to merge all the 'James' posts into one, with accumulating post numbers.
I get the feeling I'm gonna facepalm when I find out a quick method.