creaky

Registered
I have merged the users and staff online blocks using the XB option which works great. I would now like to remove the username & title from the block, similar to option 3 of your Xf1 template modification.

online.PNG

What would be the easiest way of doing this, a template modification or edit the template directly.
 
Open up: widget_members_online

Find towards the top:

Code:
                <ul class="block-body-inner">
                <xf:contentcheck>
                    <xf:foreach loop="$online.users" value="$user">
                        <xf:if is="$user.is_staff">
                            <li class="block-row">
                                <div class="contentRow">
                                    <div class="contentRow-figure">
                                        <xf:avatar user="$user" size="xs" />
                                    </div>
                                    <div class="contentRow-main contentRow-main--close">
                                        <xf:username user="$user" rich="true" />
                                        <div class="contentRow-minor">
                                            <xf:usertitle user="$user" />
                                        </div>
                                    </div>
                                </div>
                            </li>
                        </xf:if>
                    </xf:foreach>
                </xf:contentcheck>
                </ul>

Replace it all with:

Code:
                <ul class="listInline listInline--comma">
                <xf:contentcheck>
                    <xf:foreach loop="$online.users" value="$user">
                        <xf:if is="$user.is_staff">
                            <li>
                                    <xf:username user="$user" rich="true" />
                            </li>
                        </xf:if>
                    </xf:foreach>
                </xf:contentcheck>
                </ul>

We shouldn't be modifying this template any further unless we require additional bug fixes or XF has an update for it.
 
Try this out:

Code:
                <ul class="listInline">
                <xf:contentcheck>
                    <xf:foreach loop="$online.users" value="$user">
                        <xf:if is="$user.is_staff">
                            <li>
                                    <xf:avatar user="$user" size="xs" />
                            </li>
                        </xf:if>
                    </xf:foreach>
                </xf:contentcheck>
                </ul>
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back