hmm, ok, lets say you have $userinfo as the userinfo array of the user who belongs to that page, and of course $bbuserinfo as the array for the browsing user.
so all you have to do now is to use that code (taken from fetch_online_status):
PHP Code:
if ($bbuserinfo['buddylist'] = trim($bbuserinfo['buddylist']))
{
$bb_buddylist = preg_split('/\s+/', $bbuserinfo['buddylist'], -1, PREG_SPLIT_NO_EMPTY);
}
else
{
$bb_buddylist = array();
}
if ($userinfo['buddylist'] = trim($userinfo['buddylist']))
{
$user_buddylist = preg_split('/\s+/', $bbuserinfo['buddylist'], -1, PREG_SPLIT_NO_EMPTY);
}
else
{
$user_buddylist = array();
}
and then use that conditon:
PHP Code:
if (in_array($userinfo['userid'], $bb_buddylist) AND in_array($bbuserinfo['userid'], $user_buddylist))
{
your special code here
}