XF 2.0 Displaying latest user from specific user group in statistics widget

gorman

Member
Hi! Since we've implemented a two tier user approval process, I would like to display only the "really approved" latest user in the regular forum statistics widget I have in Forums list page.

Anyone knows how to modify this portion of widget_forum_statistics template?

<dl class="pairs pairs--justified"> <dt>{{ phrase('latest_member') }}</dt> <dd><xf:username user="{$forumStatistics.latestUser}" /></dd> </dl>

User group title is: Registered Confirmed

Same question applies for template widget_newest_members and this code:

<xf:if is="$users is not empty"> <div class="block"{{ widget_data($widget) }}> <div class="block-container"> <h3 class="block-minorHeader">{$title}</h3> <div class="block-body block-row"> <ul class="listHeap"> <xf:foreach loop="$users" value="$user"> <li> <xf:avatar user="$user" size="s" img="true" /> </li> </xf:foreach> </ul> </div> </div> </div> </xf:if>

Thanks in advance.
 
Last edited:
Back
Top Bottom