Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Member since and Last online in "About me"

8 years 10 months ago
  • Paulo's Avatar
    Topic Author
  • Paulo
  • Offline
  • Fresh Boarder
  • Posts: 73
  • Thank you received: 3
Licenses:
JomSocial Active Socialize Expired

Hi,

With new updates for Jomsocial 4.0.6 I noticed that the information "Member since" and "Last online" in "About me" disappeared.. But it is a relevant information that can't disappear in the profiles.

How to solve this problem?

Attachments:
8 years 10 months ago
Licenses:

Hi Paulo,

please follow this steps:
1. copy profile.about.php from /components/com_community/templates/jomsocial/layouts/ to /templates/[frontend tempalte]/html/com_community/layouts/
2. edit it, and put this new code after line 107

<ul class="joms-list__row joms-push">
<li>
    <hr />
    <?php
    $user = CFactory::getUser($profile['id']);
    $lastLogin = JText::_('COM_COMMUNITY_PROFILE_NEVER_LOGGED_IN');
    if ($user->lastvisitDate != '0000-00-00 00:00:00') {
        //$now = JFactory::getDate();
        $userLastLogin = new JDate($user->lastvisitDate);
        //CFactory::load( 'libraries' , 'activities');
        $lastLogin = CActivityStream::_createdLapse($userLastLogin);
    }
    ?>
    <dl class="dl-horizontal">
        <dt><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></dt>
        <dd><?php echo JHTML::_('date', $user->registerDate , JText::_('DATE_FORMAT_LC2')); ?></dd>
        <dt><?php echo JText::_('COM_COMMUNITY_LAST_LOGIN'); ?></dt>
        <dd><?php echo $lastLogin; ?></dd>
    </dl>
</li>
</ul>

Regards

The following user(s) said Thank You: Matt, Paulo
8 years 10 months ago
  • Paulo's Avatar
    Topic Author
  • Paulo
  • Offline
  • Fresh Boarder
  • Posts: 73
  • Thank you received: 3
Licenses:
JomSocial Active Socialize Expired

Hi Albertus,

Perfect correction. Tks!
A big hug!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW