help converting this xenForo 1.x syntax to xenForo 2.3 syntax

Status
This content is read-only, or is not open for further replies.

island

Guest
offline
Can someone help convert the following excellent xf 1.4/1.5 code to work in the xf 2.3.10 message macros template:

Valhalla said:
Code:

{xen:if '{$user.register_date} < {xen:calc '{$serverTime} - 86400 * 7'}', '{xen:date $user.register_date, 'M Y'}', '{xen:date $user.register_date}'}
Click to expand...

The purpose is to display Join Date as Month Year instead of Month Day Year, while maintaining Today and Yesterday for those join dates in the postbit only

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom