Ah, I see..
Okay, I tried this new approach out but I'm still getting only one result (I have two registered users right now as I'm developing the site..), only user id2 is showing up..
PHP Code:
require_once(DIR . '/includes/functions_user.php');
// Gather the six newest members to join
$newest_members = $vbulletin->db->query_read("SELECT userid, username, joindate
FROM " . TABLE_PREFIX . "user
ORDER BY userid DESC
LIMIT 6");
while ($new_members = $vbulletin->db->fetch_array($newest_members))
{
// Get users avatar
if($new_members[userid])
{
$new_members[avatarurl] = fetch_avatar_url($new_members[userid]);
if (!$new_members[avatarurl]) {
$new_members[avatarurl] = $stylevar['imgdir_misc'] . '/noavatar.gif';
} else {
$new_members[avatarurl] = $vbulletin->options['bburl'] . '/' . $new_members[avatarurl][0];
}
}
eval('$newest_members .= "' . fetch_template('newest_members') . '";');
}
There's also a weird, "Resource id #21" that is being displayed now above the user..
Any ideas??
Thanks, Marco