Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2457

[3.3.x] Support Forum • Re: Last Active in Profile Area

$
0
0
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:

'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],

Statistics: Posted by Walther — Sat Aug 17, 2024 9:29 am



Viewing all articles
Browse latest Browse all 2457

Trending Articles