Support how to change live stats new member time to date or time

blu3men

Registered
@newmoon

The span title & data-xf-init="tooltip" This is an XF Template Prefix and can be used anywhere where you want to achieve the ToolTip.
Ok. You don't want to use it now.
Well.... open the lfs_tab.new_members template:

Rich (BB code):
****************************************INFORMATION

        <xf:foreach loop="$users" value="$user">
            <xf:set var="$rightIcon">  <<<< This is a setings parameter. Turn ON or Turn OFF display clock icon, maybe.
                <span title="{{ phrase('joined:') }} {{ date($user.register_date, 'Y-M-d') }}" data-xf-init="tooltip"> <<<< You will need this, this will write down the data you want.
                    <xf:fa icon="far fa-clock" /> <<<< This is the watch icon.
                </span>
            </xf:set>
            
************************************************************************

So:
FIND >>
<xf:set var="$rightIcon">
                <span title="{{ phrase('joined:') }} {{ date($user.register_date, 'l') }}" data-xf-init="tooltip">
                    <xf:fa icon="far fa-clock" />
                </span>
            </xf:set>
>> AND DELETE

*The text written with red can be different than you.

Now open the "lfs_tab_member_definition_macros" template

Rich (BB code):
FIND >>
<xf:if is="$rightIcon is not empty">
            <div class="structItem-cell structItem-cell--rightIcon">
                {{ $rightIcon|raw }}
            </div>
        </xf:if>
>> AND REPLACE
<div class="lbs_joindate">
                <span > {{ phrase('joined:') }} {{ date($user.register_date, 'l') }}
                </span>
            </div>

Effect:
User5 Joined: Monday
XYz Joined: Monday
Somebody Joined: Saturday
etcetcetc....

Rich (BB code):
<div class="lbs_joindate"> This is the CSS. If you want to style the text, or box.
 
Back
Top Bottom