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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

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