UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online
I've been reading the documentation and was hoping to get some info, hopefully someone can help point me in the right direction.

Basically, I want to pull user info so that when I'm logged into my account, I can see other users data in the postbit associated to their account.

Example:

I'm logged in as John Smith and another user Jane Doe posts on the forum, if Jane Doe has 150 EasySocial Points, I want to see her total EasySocial points display in the postbit instead of mine.

- - - - -

Below is the code I found in the documentation, however, it displays the total points associated to my currently logged in account rather than the other user.


require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$my = ES::user();
$points = $my->getPoints();


What would I have to change in the code above so that other users info will show up in the associated Kunena postbit rather than my own info?

I'm also interested in retrieving custom profile fields as well to display in the postbit.

Thanks and I appreciate any assistance that can be provided :)

*Edit - Realized this should probably go in the Tutorials category, hopefully that's correct.

*Edit - I found the solution to my problem. I haven't tried retrieving extra fields from users, will try this eventually but if someone has a few pointers in the meantime, that would be great.
The replies under this section are restricted to logged in users or users with an active subscription with us