You may be able to adapt the featured member island.
(cache_builders/featured_member.php)

This is the query used...

SQL Query
$query = "
	SELECT t1.USER_DISPLAY_NAME,t1.USER_ID,t2.USER_NAME_COLOR,t1.USER_MEMBERSHIP_LEVEL,t2.USER_AVATAR,t1.USER_REGISTERED_ON,t2.USER_TOTAL_POSTS,t2.USER_AVATAR_WIDTH,t2.USER_AVATAR_HEIGHT
	FROM   {$config['TABLE_PREFIX']}USERS as t1,
		   {$config['TABLE_PREFIX']}USER_PROFILE as t2,
		   {$config['TABLE_PREFIX']}USER_DATA as t3
	WHERE  t1.USER_ID = t2.USER_ID
	AND	   t1.USER_ID = t3.USER_ID
	AND    t1.USER_IS_BANNED != '1'
	AND	   t1.USER_ID > 1
	$thisclause
	ORDER BY rand() limit 1 
";


Of course you'd need to remove ORDER By rand() and set your own clause for $thisclause

...but I think if I needed to do this - it's probably where I'd start.

Just a thought smile

Last edited by driv; 01/14/2013 6:39 AM. Reason: ooops - sorry just realised this doesn't cover the 'logged in' aspect - but leaving the post in case it helps somehow.