By Josh Lewis on Tuesday, 14 January 2014
Posted in General Issues
Replies 9
Likes 0
Views 1K
Votes 0
Is it possible to show on the profile about section the members registration date and the last active date? Joomla already stores this data but is not displayed on an ES profile. In my case this is important because there are cases where it's good to know how long a certain member has been a contributor and other cases of when they last signed into the site.
Hello Josh,

Yes, it was retrieved from the #_users table.
·
Thursday, 05 February 2015 19:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

Yep, you can get these attributes using our API. For example, to get the registration date:


<?php

echo $user->getRegistrationDate()->format( 'j S, M Y' );
echo $user->getLastVisitDate( 'lapsed' ); // This will output a nice beautiful x moment ago string
?>
·
Tuesday, 14 January 2014 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Looks good, so then to implement it do I put it in a custom field (Textbox) in the "Placeholder" text field and set it to read only?
·
Wednesday, 15 January 2014 02:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

The textbox does not serve this purpose unfortunately.

Where are you looking to place this code?
·
Wednesday, 15 January 2014 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm wanting to place in in the about section: http://www.alpineascent.com/profile/josh/about
·
Wednesday, 15 January 2014 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
We don't actually have a custom field for this but you can always add your own codes in /components/com_easysocial/themes/profile/default.about.php
·
Wednesday, 15 January 2014 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm really pleased to see registration date and last active date in the new version of ES. Does the custom fields use the records that Joomla already uses to stores this data?
·
Thursday, 05 February 2015 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
josh
in last ES (from yesterday) you have those files : registration date and last login

Loïc
·
Thursday, 05 February 2015 18:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I know that as alluded in my last reply. Now I'm checking up to see where that data is being pulled from. I assume the _users table that comes with Joomla?
·
Thursday, 05 February 2015 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post