By Mark on Monday, 21 December 2015
Posted in General Issues
Replies 8
Likes 0
Views 528
Votes 0
I am trying to import the author's bio to a component that I am using for user profiles in joomla so the users can go to the one profile page and update their avatar and their easy blog bio. I have the avatar's working but I need to get the bio field to work. I am using easy profile and they use the jomsocial bridge to talk to easy blog to set the avatar but it doesn't pull the easy blog bio. I was given the API call to call the easy blog bio for the author's.

Retrieve Raw User Field

$user=JsnHelper::getUser(); echo $user->field_alias
or

$user=JsnHelper::getUser(); echo $user->getValue('field_alias');

I need to know what file the bio field is in for the authors so I can add the API code.

Here is the API code sheet just in case if this is not the correct API code that will talk to this field properly.

http://docs.easy-profile.com/index.php/article/jsnuser-object
Not really sure what does their API got to do with EasyBlog's biography. Are you trying to retrieve or are you trying to set the biography value?
·
Monday, 21 December 2015 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I am trying to retrieve it to a set field in their profile and then allow them to update it or set a value as well.
·
Monday, 21 December 2015 01:16
·
0 Likes
·
0 Votes
·
0 Comments
·
To retrieve the biography of a user in EasyBlog you would do this:

·
Monday, 21 December 2015 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, this is what easy profile gave me to use to pull in the bio.

public function triggerProfileUpdate($user, &$data, $changed, $isNew)
{
$ep_bio=$data['bio_field_alias'];
$db=JFactory::getDbo();
$query='UPDATE #__easyblog_users SET biography='.$db->quote($ep_bio).' WHERE id='. (int) $user->id;
$db->setQuery($query);
$db->execute();
}

With your code how do I combined the two to get it to pull the bio into the easy profile field so users can edit and save it?
·
Monday, 21 December 2015 02:49
·
0 Likes
·
0 Votes
·
0 Comments
·
I know that my subscription is expiring and by the time you reply it will be expired but I had to create a new account for the organization that uses the two extensions as this is my personal account. The new account that the domain name is tied to that is active is accounts@bhcfe.org or username it_department. So I don't know if I need to start a new ticket or if we can finish this here?
·
Monday, 21 December 2015 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I am really sorry for the delay of this reply.

Not really sure what you are trying to achieve here but I see both code does the exact same thing which is to save/update the blog biography into user profile based on user id. The only difference is easyblog are using API level of saving the biography value while easy profile using direct query in order to save the biography.
·
Monday, 21 December 2015 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, I am trying to pull the easy blog bio into easy profile so my users have one place to go to update their profile and easy blogs profile. As all they need to update in easy blog is their avatar and bio. I have a text area built and the plugin running and its not pulling in the easy blog bio.
·
Monday, 21 December 2015 11:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

The code that the guys provided you is to update the "biography" in EasyBlog when they edit their profile. The code which I provided you contains 2 parts. The first part is to retrieve the biography and the second part which is to save the biography.


By the way, please understand that customizations are not covered within our support policy.
·
Monday, 21 December 2015 12:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post