<xen:if is="{$post.last_activity} >= {$serverTime}-900">
Online
<xen:else />
Offline
</xen:if>
I don't suppose I can use that conditional in the message_user_info.css template? Looks like the avatar css is located there, making it tough to do what I was wanting to do with the image border.He means add something like this to the message_user_info template:
Code:<xen:if is="{$post.last_activity} >= {$serverTime}-900"> Online <xen:else /> Offline </xen:if>
The 900 equates to 15 minutes.
The "Online" and "Offline" could be substituted with phrases, images, whatever you wish.
I'll knock a TM up later when I have time.
Not sure what I'm doing wrong then... here's what I have posted:It works, I tested it.
It depends what value is stored in last_activity.
<xen:if is="{$post.last_activity} >= {$serverTime}-900">
<div class="online-status-postbit">Online</div>
<xen:else />
<div class="offline-status-postbit">Offline</div>
</xen:if>
Yes. Would like to see this as default. Looks simple enough but the only addon is that half-abandoned.That addon has many issues.
It does, true...but for our purposes it works fine as-is. It need not be perfect, but if this feature were "official" I would be more confident knowing that it works properly, and is supported. I've gotten burned by too many add-ons that were abandoned. Can't afford it on a big board like ours.That addon has many issues.
The biggest problem seems to be the resource hog that it causes? Is it the case on your big board?It does, true...but for our purposes it works fine as-is. It need not be perfect, but if this feature were "official" I would be more confident knowing that it works properly, and is supported. I've gotten burned by too many add-ons that were abandoned. Can't afford it on a big board like ours.
I haven't noticed any slowdowns--we are well within our server's usage limits.The biggest problem seems to be the resource hog that it causes? Is it the case on your big board?
Read on the addon thread, there is a discussion and some temp fix but we either need the author to fix it or look for alternative.I haven't noticed any slowdowns--we are well within our server's usage limits.
However, you have me wondering now. PHP memory has been through the roof. I've had to bump it way up over the months (up to 512M currently, to get errors to go away) and we still end up getting errors. Now this makes me wonder if this add-on is the culprit. Our number of online visitors has grown, and PHP memory usage has crept up with it.
It's still crazy that this is not yet included in XenForo !
We use essential cookies to make this site work, and optional cookies to enhance your experience.