Larry Barasch Member Jul 29, 2021 #1 Is there any way to add "Last seen" or "Last Activity" date to a member's avatar (as in past versions), instead of just in the user's member card?
Is there any way to add "Last seen" or "Last Activity" date to a member's avatar (as in past versions), instead of just in the user's member card?
A and2 Member Apr 21, 2022 #2 I have the same question I think. I would like to add the last seen/last activitivy field here: Is this possible with custom fields somehow? Thanks Andreas Upvote 0 Downvote
I have the same question I think. I would like to add the last seen/last activitivy field here: Is this possible with custom fields somehow? Thanks Andreas
BassMan Well-known member Apr 21, 2022 #3 In template message_macros FIND: HTML: <div class="message-userExtras"> ADD BELOW: HTML: <dl class="pairs pairs--justified"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> Upvote 0 Downvote
In template message_macros FIND: HTML: <div class="message-userExtras"> ADD BELOW: HTML: <dl class="pairs pairs--justified"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl>
Alan_SP Well-known member Apr 21, 2022 #4 That's great addition. Can we get info about last post in similar way? To have both under avatar? EDIT: Code to show only to mods and admins: HTML: $0 <xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator"> <xf:if contentcheck="true"> <dl class="pairs pairs--justified"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> </xf:if> </xf:if> Taken from here: https://xenforo.com/community/threads/conditional-statements-for-xenforo-2.136639/post-1571989 Last edited: Apr 21, 2022 Upvote 0 Downvote
That's great addition. Can we get info about last post in similar way? To have both under avatar? EDIT: Code to show only to mods and admins: HTML: $0 <xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator"> <xf:if contentcheck="true"> <dl class="pairs pairs--justified"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> </xf:if> </xf:if> Taken from here: https://xenforo.com/community/threads/conditional-statements-for-xenforo-2.136639/post-1571989
A and2 Member Apr 23, 2022 #5 Thank you guys! Is there a way to do this without changing the templates? How about adding a customer field and calling some Xenforo callback? Upvote 0 Downvote
Thank you guys! Is there a way to do this without changing the templates? How about adding a customer field and calling some Xenforo callback?
ActorMike Well-known member Feb 23, 2023 #6 Sadly, it doesn't look right on mobile devices because it shows too much information like what thread they are viewing. Upvote 0 Downvote
Sadly, it doesn't look right on mobile devices because it shows too much information like what thread they are viewing.
BassMan Well-known member Feb 23, 2023 #7 ActorMike said: Sadly, it doesn't look right on mobile devices because it shows too much information like what thread they are viewing. Click to expand... If I add this code I can not see it on mobile. It is hidden. Upvote 0 Downvote
ActorMike said: Sadly, it doesn't look right on mobile devices because it shows too much information like what thread they are viewing. Click to expand... If I add this code I can not see it on mobile. It is hidden.
ActorMike Well-known member Feb 23, 2023 #8 BassMan said: If I add this code I can not see it on mobile. It is hidden. Click to expand... Shows up on my Samsung Galaxy S20 for some reason. Upvote 0 Downvote
BassMan said: If I add this code I can not see it on mobile. It is hidden. Click to expand... Shows up on my Samsung Galaxy S20 for some reason.
ActorMike Well-known member Feb 23, 2023 #10 BassMan said: Can I see this on a forum? Click to expand... Try now- https://forums.fordthunderbirdforum.com/threads/1957-adjust-speedometer-needle.14901/ Upvote 0 Downvote
BassMan said: Can I see this on a forum? Click to expand... Try now- https://forums.fordthunderbirdforum.com/threads/1957-adjust-speedometer-needle.14901/
BassMan Well-known member Feb 23, 2023 #11 That's because you have this somewhere in the code (I guess in the extra.less template): Less: .message-userExtras { display: block !important; } I would remove the code completely. Unless you would like to show other two fields on mobile. Upvote 0 Downvote
That's because you have this somewhere in the code (I guess in the extra.less template): Less: .message-userExtras { display: block !important; } I would remove the code completely. Unless you would like to show other two fields on mobile.
ActorMike Well-known member Feb 23, 2023 #12 BassMan said: That's because you have this somewhere in the code (I guess in the extra.less template): Less: .message-userExtras { display: block !important; } I would remove the code completely. Unless you would like to show other two fields on mobile. Click to expand... We show the Year of Car they own and joined date and that seems to work on mobile so I would hate to get rid of it. Upvote 0 Downvote
BassMan said: That's because you have this somewhere in the code (I guess in the extra.less template): Less: .message-userExtras { display: block !important; } I would remove the code completely. Unless you would like to show other two fields on mobile. Click to expand... We show the Year of Car they own and joined date and that seems to work on mobile so I would hate to get rid of it.
BassMan Well-known member Feb 24, 2023 #13 ActorMike said: We show the Year of Car they own and joined date and that seems to work on mobile so I would hate to get rid of it. View attachment 281978 Click to expand... In that case, you can add an extra class like this: Less: <dl class="pairs pairs--justified noMobile"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> You can see I've added the class noMobile (you can add whatever you want to identify it). After that add this to your extra.less template: Less: @media (max-width: @xf-responsiveMedium) { .noMobile { display: none; } } Upvote 0 Downvote
ActorMike said: We show the Year of Car they own and joined date and that seems to work on mobile so I would hate to get rid of it. View attachment 281978 Click to expand... In that case, you can add an extra class like this: Less: <dl class="pairs pairs--justified noMobile"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> You can see I've added the class noMobile (you can add whatever you want to identify it). After that add this to your extra.less template: Less: @media (max-width: @xf-responsiveMedium) { .noMobile { display: none; } }