Hi,
Can't you just use the CB trigger:
global $_CB_framework;
$id = $_CB_framework->displayedUser();
This wil retun the id and with that you can get everything you want from je jos_comprofiler of jos_users tables.
You can also use the php way:
$id = $_GET["user"];
if ($iduser == "") //for example when user is logged-in on the site
{
$user =& JFactory::getUser();
$iduser = $user->get('id');
}
Hope this answers al you needs.
Kind regards,
Nico