By Pieter on Tuesday, 20 June 2017
Posted in General Issues
Replies 1
Likes 0
Views 294
Votes 0
When using RSForm pro i can fetch profile info with a php code as shown below. Is it possible to fetch other profilefields from Easy Social profile with a php code?


//<code>
$user = JFactory::getUser();
return $user->get('name');
//</code>
Hi there,

Yes you can and you are required to do modifications at this path /components/com_easysocial/themes/wireframe/users/default/items.php on codes below


<?php if ($user->getFieldValue('TEXTBOX-1')) { ?>
<li data-breadcrumb="ยท">
<?php echo $user->getFieldValue('TEXTBOX-1')->toDisplay('listing', true); ?>
<?php } else { ?>
<?php echo JText::_('COM_EASYSOCIAL_NO_FOLLOWERS_YET'); ?>
<?php } ?>
</li>


Hope this help

Note:
those '$user->getFieldValue' will follow what have set here http://take.ms/JUThy. In order for you to show specific field, paste it accordingly on the code below.
·
Tuesday, 20 June 2017 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post