I don't think so, {{ number(($xf.time - $xf.visitor.register_date) / 86400) }} returns an integer I want to compare to "3", so that should be correct. Basically this can be understood as <xf:if is="5 <= 3">
Hi there,
in the template of a page node, I'm using the following conditional to check, if a user is registered for less than 3 days:
<xf:if is="{{ number(($xf.time - $xf.visitor.register_date) / 86400) }} <= 3">
// registered for less than 3 days
<xf:else />
// registered for 3...
There is indeed a way to check the last password change:
<xf:if is="($xf.time - $xf.user.Profile.password_date) < 604800">
// user changed password in the last 7 days
</xf:if>
Not sure about the email though.
Hi there @Ozzy47, I keep getting the following error since a few days:
XF\Db\Exception: MySQL fetch error [2014]: Commands out of sync; you can't run this command now src/XF/Db/AbstractStatement.php:230
Generated by: Unknown account Dec 20, 2022 at 12:37 AM
Stack trace
SELECT...
It's either this: https://xenforo.com/community/resources/remidev-member-staff-in-conversations.5585/
Or that: https://xenforo.com/community/resources/xen-soluce-staff-conversation.7415/
Both add-ons offer the above functionality.