Find Friends, I made for our new social profiles. I used stock code on this one, as its a test runner but works good.
findfriends.php
[ATTACH type="full" alt="FindFriendsFeature.png"]5638[/ATTACH]
findfriends.php
<?
require_once("backend/functions.php");
dbconn(false);
stdhead("Find Friends");
?>
<div><!-- add style or theme class -->
<?
// Profile : Find Friends
$total_reg = 110;
$query = "SELECT id, username, avatar FROM users WHERE status='confirmed' ORDER BY id DESC LIMIT $total_reg";
$res = SQL_Query_exec($query);
while ($arr = mysql_fetch_assoc($res)) {
if (!$arr['avatar']) // no avatar
echo "<a href=\"" . $site_config['SITEURL'] . "/user/?id=" . $arr['id'] . "\">
<img style='width:45px;height:45px;border-radius:50%;margin-right:5px;' src='" . $site_config['SITEURL'] . "/images/noavatar.png' /></a>";
elseif ($arr['avatar']) // avatar
echo "<a href=\"" . $site_config['SITEURL'] . "/user/?id=" . $arr['id'] . "\">
<img itemprop=\"image\" class=\"responsive-img\" src=\"" . $site_config['SITEURL'] . "/" . htmlspecialchars($arr["avatar"]) . "\" style='width:50px;height:50px;border-radius:50%;margin:5px' /></a>";
}
?>
</div>
<? std foot(); ?>
[ATTACH type="full" alt="FindFriendsFeature.png"]5638[/ATTACH]