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!