By Neel on Wednesday, 10 September 2014
Posted in General Issues
Likes 0
Views 689
Votes 0
How do I show registration date and last login date in user profile information?
Hello Neel,

Please understand that customizations are not supported by our support policy but we'll help you out just this once. You can add the codes below in the theme file /components/com_easysocial/themes/wireframe/profile/default.header.php


<?php echo $user->getRegistrationDate()->format(JText::_('DATE_FORMAT_LC1'));?>
<?php echo $user->getLastVisitDate();?>
·
Wednesday, 10 September 2014 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark.
·
Thursday, 11 September 2014 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Thursday, 11 September 2014 02:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you
·
Monday, 27 October 2014 10:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I tried to copy on almost all lines but I don't see it on the profile

Which line should I had it ?

Thanks my users will be happy
·
Monday, 27 October 2014 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lili Marchand,

You're welcome.
First thing you need to make sure that which theme are you using :
JoomlaFolder\components\com_easysocial\themes\frosty\profile\default.header.php -> frosty theme
JoomlaFolder\components\com_easysocial\themes\wireframe\profile\default.header.php -> wireframe theme

Then i will try give some example here : (I'm using the frosty theme)

//LINE 65
<div class="fd-small">
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'GENDER' , $user ) ); ?>
</div>
<?php echo $user->getRegistrationDate()->format(JText::_('DATE_FORMAT_LC1'));?> // i put at here
<?php echo $user->getLastVisitDate();?> // i put at here

Hope this help.
·
Monday, 27 October 2014 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
As per the first example I am using wireframe so not the same as yours
·
Monday, 27 October 2014 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lili,

Can you try following this :
JoomlaFolder\components\com_easysocial\themes\wireframe\profile\default.header.php

//LINE 180
<?php if( $this->template->get( 'profile_gender' , true ) ){ ?>
<div class="mt-5 teaser-about">
<div class="fd-small">
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'GENDER' , $user ) ); ?>
</div>
<br>
<?php echo $user->getRegistrationDate()->format(JText::_('DATE_FORMAT_LC1'));?>
<?php echo $user->getLastVisitDate();?>
</br>
</div>


If still can't, can you provide us with your Joomla backend and FTP access so we can help you check on this? Please advise.
·
Monday, 27 October 2014 11:44
·
0 Likes
·
0 Votes
·
0 Comments
·
I did

<?php if( $this->template->get( 'profile_gender' , true ) ){ ?>
<div class="mt-5 teaser-about">
<div class="fd-small">
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'GENDER' , $user ) ); ?>
</div>
</div>

<?php } ?>

<?php if( $this->template->get( 'profile_address' , true ) ){ ?>
<div class="mt-5 teaser-about">
<div class="fd-small"><?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderB' , array( 'ADDRESS' , $user ) ); ?></div><br>
<?php echo $user->getRegistrationDate()->format(JText::_('DATE_FORMAT_LC1'));?>
<?php echo $user->getLastVisitDate();?>
</br>
</div>

And I don't see it

Thank you
·
Monday, 27 October 2014 21:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Also here

<?php if( $this->template->get( 'profile_gender' , true ) ){ ?>
<div class="mt-5 teaser-about">
<div class="fd-small">
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'GENDER' , $user ) ); ?>
</div> <br>
<?php echo $user->getRegistrationDate()->format(JText::_('DATE_FORMAT_LC1'));?>
<?php echo $user->getLastVisitDate();?>
</br>
</div>

<?php } ?>

<?php if( $this->template->get( 'profile_address' , true ) ){ ?>
<div class="mt-5 teaser-about">
<div class="fd-small"><?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderB' , array( 'ADDRESS' , $user ) ); ?></div>
</div>

Didn't worked either

Thanks
·
Monday, 27 October 2014 21:58
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Lili Marchand,

Can you provide us with your Joomla backend and FTP access so we can add this for you? Please advise.
·
Monday, 27 October 2014 23:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Ticket placed thanks !
·
Tuesday, 28 October 2014 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Lili,

You're welcome, i have replied on your ticket # 30836 Please have a check.
·
Tuesday, 28 October 2014 01:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks ! Always fast and professional ! Thanks !
·
Tuesday, 28 October 2014 02:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lili Marchand,

You're welcome.
·
Tuesday, 28 October 2014 02:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post