XF 2.0 Newest members Widget

jakieqad

Member
Hi guys,
Newest members Widget Are pictures not letters can you help me to make it to text not avatars
Thanks for help
 
Much closer thank you!

Now the names are listed, but there is only a space between each name. How can a comma be placed after each name like in the standard "Members online" widget?
 
Thanks, that places "-&nnbsp;" after each name:

Screenshot 2021-11-02 at 17.01.17.webp

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:username user="$user" rich="true" />&nbsp;-&nnbsp;
                        </li>
                    </xf:foreach>
                </ul>
            </div>
        </div>
    </div>
</xf:if>
 
I tweaked this a bit as there was an a comma after the last username in the list

in
Code:
widget_newest_member

find
Code:
<ul class="listHeap">
                    <xf:foreach loop="$users" value="$user">
                        <li>
                            <xf:avatar user="$user" size="s" img="true" />
                        </li>
                    </xf:foreach>
                </ul>


replace with

Code:
<div class="block-row block-row--minor">
                <ul class="listHeap">
                    <xf:foreach loop="$users" value="$user">
                        <li>
                            <xf:avatar user="$user" size="s" img="true" />
                        </li>
                    </xf:foreach>
                </ul>
            </div>
 
Last edited:
Back
Top Bottom