UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible 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 offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Get id of currently viewed profile

Jan Bergare · ·
9:02 AM Wednesday, 26 June 2019
High
How can I obtain the user id of the profile I'm currently viewing (when it is not the logged in user's profile)?

I'm having the same issue in two places:

1) I want to place info from the currently viewed profile in the es-sidebar position of EasySocial (not the currently logged in user)
2) I want to place info from the currently viewed blogger in a separate module in the single blogger view of EasyBlog

Using php in a custom module, I figure it would be something like:


<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$user = ES::user($id);
echo $user->getFieldValue( UNIQUEVALUE );
?>



...but how can I get the $id of currently displayed profile/blogger?

Thanks for any assisance!
The replies under this section are restricted to logged in users or users with an active subscription with us