Jump to content

How do I display a user's join date in the post bit?


Kirill N

Recommended Posts

Posted

Template hook. Think I may experiment real quick. 

​Hmm I expected it could be done by adding just one line to the template. But thanks, looking forward to it!

Posted

You could probably do it that way too. A template hook though would be more robust IMO.

​I have a very heavily modified theme so I think a template edit would be a better idea. Do you by any chance what code I should add?

  • 2 weeks later...
Posted
{{$date = $comment->author()->joined;}}
{{$date = $date->format( 'M Y' );}}

{$date} wherever you want to use it in the template

Basically what @Adriano Faria mentioned, can probably reduce and combine the lines a bit but this is for demonstration purposes.

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...