By Bethany Amborn on Sunday, 19 October 2014
Posted in Technical Issues
Replies 9
Likes 0
Views 707
Votes 0
How can I get the date the user joined and their last logged in date visible on the profile and searchable in the advanced search? I already have a feature request in to add these as sort options on the search results, but at the bare minimum at least need to be able to display them. This helps people know when someone is inactive, or has just joined the community.
Yes! I've been wondering about this for quite some time too. Especially the last log in date, this allows us to know if our friends are still active members. This data is stored in the Joomla user table, so basically we are wanting access data that already exists.
·
Sunday, 19 October 2014 06:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello guys,

You can use the API below to retrieve information about a user,


<?php
// Assuming that you want to retrieve details about the current user.
$my = FD::user();

// Retrieves the registration date
echo $my->getRegistrationDate()->toSql();

// Retrieves the last visit date
echo $my->getLastVisitDate();
·
Sunday, 19 October 2014 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the code. So how do we place it into a custom field? If this is not currently possible, perhaps it should be considered to have a way to include html/css/php/js into a custom field in the future. This way people can insert mods that do not require file over riding upon update.
·
Monday, 20 October 2014 04:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I have the same exact question. I need both - to show these on the profile and to allow them to be searched on. I can probably figure out how to get them in the header, but that wont make them searchable.
·
Monday, 20 October 2014 06:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You should add these codes in the theme file if you want to display them on your profile. We don't have a custom field for this.
·
Monday, 20 October 2014 09:49
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, I will go add this to Voices as a feature request if it is not already there. Its weird how little things like this are a really BFD to my community of users. They're ignoring all the awesomeness that they just got with EasySocial, and freaking out about no last login date search.
·
Monday, 20 October 2014 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Be sure to link to it here, it will win my vote.
·
Monday, 20 October 2014 11:42
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Monday, 20 October 2014 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks
·
Monday, 20 October 2014 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post