$userinfo = verify_id('user', $userid, 1, 1, 15);
$whichlist = "buddylist"; // (Dis)Likes $outuserids = array(); $outuserids = explode(' ', trim($userinfo[$whichlist])); if (trim($userinfo[$whichlist]) != "") { $outusers = $DB_site->query("SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM ".TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE ".TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND ".TABLE_PREFIX."user.userid IN (".implode(',',$outuserids).") ORDER BY username"); while ($outuser = $DB_site->fetch_array($outusers)) { if ($outuser[avatarurl]!= ""){$outuser[avatarurl]="clear.gif";} else {$outuser[avatarurl] = fetch_avatar_url($outuser['userid']);} $buddyavatar .= "<img src=\"$vboptions[bburl]/$outuser[avatarurl]\">"; $outuserlist .= "<a class=\"smallfont\" href=\"$vboptions[bburl]/member.php?u=$outuser[userid]\"/>$outuser[username]</a>"; } }
Show Your Support
$userinfo = verify_id('user', $vbulletin->GPC['userid'], 1, 1, 15);