By Avinash on Sunday, 10 August 2014
Posted in General Issues
Likes 0
Views 657
Votes 0
Hi guys,

I am trying to display the content stored in the EasyBlog Profile Custom Field for EasySocial in the USERS list view. I have no issues with the other custom fields which are displaying fine. Only the data stored in the EasyBlog Profile Field is not being shown...

Any tips?

Cheers
Avinash
Hello Avinash,

Ah, okay the EasyBlog "field" is a little different because it's data is stored within EasyBlog and not EasySocial (If my memory serves me correctly). You can just run the codes below to render EasyBlog to display the biography field,


<?php
require_once(JPATH_ROOT . '/components/com_easyblog/helpers/helper.php');
$eb = EasyBlogHelper::getTable('Profile');
$eb->load($user->id);

echo $eb->getBiography();
?>
·
Sunday, 10 August 2014 21:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Avinash,

I am really sorry for the delay of this reply as it is a weekend for us here. Sorry but I am not really sure if I understand you here. Would you kindly please elaborate more on this please?
·
Sunday, 10 August 2014 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I am using the EasyBlog Cutom Field (for Biography) for EasySocial during registration. I want to display the content from that field in the Users List view where all users are listed.

Using this code:
							
<?php echo $user->getFieldValue('WXP');?>
<?php echo $user->getFieldValue('PROSUM');?>


WXP is the Unique Name for a Custom Text Area and PROSUM is the Unique Name for the EasyBlog Biography Field. While a value is being returned/displayed for the Custom text Area, this is not the case for the EasyBlog Custom Field. Any thoughts?

I did check the database entries and didnt seem to find a value for the EasyBlog Custom Field is the EasySocial tables but it was present in the EasyBlog profile... (MIGHT BE THE PROBLEM - but need the Stackideas team to confirm....)

Thanks
Avinash
·
Sunday, 10 August 2014 21:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks a Ton!!

Cheers
Avinash
·
Sunday, 10 August 2014 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Monday, 11 August 2014 02:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post