Hello guys,

Want to share with you how we add some custom fields information as location in users popup,
You can do it in less then 5mn, all you need is custom fields names.

File to edit : /components/com_easysocial/themes/wireframe/profile/popbox.php
Before all backup this file

You'll need to replace this code :


<div class="profile-desp">
<?php if($this->template->get('profile_lastlogin', true )) { ?>
<?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 } ?>
<?php } ?>
</div>


With :

	<div class="profile-desp">

<?php echo $fonction = $user->getFieldValue('JOB')?> - <?php echo $location = $user->getFieldValue('ADDRESS')?>
</div>


In this example we show members job title (custom field name:JOB, location field : ADRESS)

thats all.
9 replies

We are sorry, you need a valid subscription for EasyDiscuss
in order to view replies for this post in this category.

Your time
Stack Ideas time
Support is
Offline
It's weekend!

It is currently a weekend from where we are at. Some answers may already be available on our documentation at http://stackideas.com/docs

Rest assured that we will get back to your posts as soon as the week starts!


Official support hour is:
Monday — Friday. 10:00 am - 7:00 pm
Our timezone:
Kuala Lumpur (GMT +8)