I adapted the given solution to show the lastvisit, so it now both shows the joined AND the lastvisit
Had a little more work to do in the viewtopic.php (declaring new variable 'lastvisit' and parsing it)
However, is there a possibility to strip the time from both, and maybe a possibility to only show to admin and/or moderators?
edit:
tampered with chatGPT for the date format, got the following working solution, but is it any good?
Code: Select all
'joined' => explode(' ', $user->format_date($row['user_regdate']))[0] . ' ' . explode(' ', $user->format_date($row['user_regdate']))[1] . ' ' . explode(' ', $user->format_date($row['user_regdate']))[2],
'lastvisit' => explode(' ', $user->format_date($row['user_lastvisit']))[0] . ' ' . explode(' ', $user->format_date($row['user_lastvisit']))[1] . ' ' . explode(' ', $user->format_date($row['user_lastvisit']))[2],