By Fidel Carrera on Sunday, 02 April 2017
Posted in General Issues
Likes 0
Views 294
Votes 0
Is it possible to show the community when a user last logged in on their profiles?
You can add the block of html codes below into the theme file.

[gist]
<span>
<?php echo JText::_('COM_EASYSOCIAL_PROFILE_LAST_SEEN');?>, <strong><?php echo $user->getLastVisitDate('lapsed'); ?></strong>
</span>
[/gist]
·
Sunday, 02 April 2017 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome, thanks so much! Which file is it exactly and where should I paste it?
·
Sunday, 02 April 2017 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
You could try placing it here, /components/com_easysocial/themes/wireframe/profile/default/default.php
·
Sunday, 02 April 2017 22:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome thanks!
·
Sunday, 02 April 2017 23:02
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem sir!
·
Sunday, 02 April 2017 23:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello again,

I found this in the file already

<?php if ($this->template->get('profile_last_online')) { ?>
<span>
<?php echo JText::_('COM_EASYSOCIAL_PROFILE_LAST_SEEN');?>, <strong><?php echo $user->getLastVisitDate('lapsed'); ?></strong>
</span>
<?php } ?>

but i doesnt show the users last login. Is this not the same line you suggested I should add?

Thanks
·
Monday, 03 April 2017 08:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It is the same as those is comes from theme's configurations as those are provided on our older version, that is 1.4 and below. These already removed on our v2.0 above.

By the way, you can just use that code by appending '!' as follow and see how it goes.

<?php if (!$this->template->get('profile_last_online')) { ?>
<span>
<?php echo JText::_('COM_EASYSOCIAL_PROFILE_LAST_SEEN');?>, <strong><?php echo $user->getLastVisitDate('lapsed'); ?></strong>
</span>
<?php } ?>
·
Monday, 03 April 2017 12:10
·
0 Likes
·
0 Votes
·
0 Comments
·
AMAZING!!!!!!!!!!
·
Monday, 03 April 2017 12:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Monday, 03 April 2017 14:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post