By Miguel on Saturday, 17 January 2015
Posted in General Issues
Likes 0
Views 546
Votes 0
Hello Friend, my question is:
How I can remove the text:
Last logged
I add an image
Hello Miguel,

I am really sorry for the delay of this reply as it is a weekend for us here. Edit the file /components/com_easysocial/themes/wireframe/profile/popbox.php and remove the codes below at line 19 onwards,


<?php if( $user->getLastVisitDate() == '0000-00-00 00:00:00' ){ ?>
<?php echo JText::_( 'COM_EASYSOCIAL_USER_NEVER_LOGGED_IN' ); ?>
<?php } else { ?>
<?php echo JText::_( 'COM_EASYSOCIAL_LAST_LOGGED_IN' ); ?> <?php echo $user->getLastVisitDate( 'lapsed' );?>
<?php } ?>
·
Saturday, 17 January 2015 15:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Friend,
thanks for your reply and help
I inform you until today because I was waiting to do the new upgrade.
Working perfectly, thanks.
·
Friday, 23 January 2015 07:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Miguel,

You're welcome.
·
Friday, 23 January 2015 10:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello friends
I'm coming back to this question (About two years)

How I can remove the text:
Last logged


Since with the new updates I have not achieved the same result.
I would appreciate your help in solving my problem.
·
Sunday, 02 April 2017 07:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Miguel,

To be honest, you are the first user that ever wants to remove the last logged in period and it wouldn't make sense for us to add this into the settings. The ideal way is to just create a template override for /components/com_easysocial/themes/wireframe/profile/popbox/user.php and remove the following codes:

[gist]
<div class="profile-desp">
<?php if($user->getLastVisitDate() == '0000-00-00 00:00:00') { ?>
<?php echo JText::_('COM_EASYSOCIAL_USER_NEVER_LOGGED_IN');?>
<?php } else { ?>
<?php echo JText::sprintf('COM_EASYSOCIAL_LAST_LOGGED_IN', $user->getLastVisitDate('lapsed'));?>
<?php } ?>
</div>
[/gist]
·
Sunday, 02 April 2017 14:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark.
Thanks for your prompt response.
How nice to be the first to something ...
My request is personal and not with the idea that you invest your time in adding it 'into the settings'
Thanks again for your help.
·
Monday, 03 April 2017 02:10
·
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 10:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post