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.

Missing profile fields

8 years 11 months ago
Licenses:
JomSocial Expired

Hello,

how can i integrate the fields like "Member since" or "Last Login" into the user profiles ?

I couldnt find them into the fields selection...

Thanx!

8 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Joerg,

You should add new code inside this file components/com_community/templates/jomsocial/profile.about.php :

<?php 
     $mainframe    = JFactory::getApplication();
     $jinput       = $mainframe->input;
     $my           = CFactory::getUser();
     $config       = CFactory::getConfig();
     $userid       = $jinput->get('userid', $my->id, 'INT');
     $user         = CFactory::getUser($userid);

     $registerDate = $user->registerDate;

      $lastLogin = JText::_('COM_COMMUNITY_PROFILE_NEVER_LOGGED_IN');
        if ($user->lastvisitDate != '0000-00-00 00:00:00') {
            $userLastLogin = new JDate($user->lastvisitDate);
            $lastLogin = CActivityStream::_createdLapse($userLastLogin);
        }
    ?>
    <dl>
        <dt><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></dt>
        <dd><?php echo JHTML::_('date', $registerDate , JText::_('DATE_FORMAT_LC2')); ?></dd>
        <dt><?php echo JText::_('COM_COMMUNITY_LAST_LOGIN'); ?></dt>
        <dd><?php echo $lastLogin; ?></dd>
    <dl>

I hope it will help

thank you

8 years 11 months ago
Licenses:
JomSocial Expired

Hello,

thank you for your answer.

Unfortunately, that was not helpful because I do not know where I need to paste this code exactly.
In addition, both date fields are unequal formatted.
One shows the exact date and the other xx hours ago.

I ask me, why these two important fields are not selectable by default as profile fields.

Greetings
Joerg

8 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

That is default bahavior from our old code, that time lapse will change to excact date if the user not login for a long time..

I am sorry.. since version 4.x we remove those informations :)

7 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi Dimas,
I implemented this like a year ago, but the text label property look different to the other like Groups, Events, so to make this look like other label and change size, color, but after that all text in the jomsocial got this change, so how can i edit to show this only in the label Member since, without affect other thing in jomsocial?
PFA
prntscr.com/dsc73q
prntscr.com/dscd4o
Thanks in advance.

7 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Romulo,

Please try this code :

ul.joms-focus__link .half  {
    color: #3b5998;
}

thank you!

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