2010/2/14 17:56
deka87
Friend of XOOPS
Posts: 1125
Since: 2007/10/5
2010/2/14 19:09
kris_fr
Theme Designer
Posts: 1009
Since: 2005/12/31
2010/2/14 19:21
2010/2/14 19:26
Bleekk
Posts: 941
Since: 2002/12/14
2010/2/14 19:34
mariane
Posts: 649
Since: 2008/1/11
2010/2/14 19:50
by the way I like the block called : OUR MEMBERS
2010/2/14 20:38
Mamba
Moderator
Posts: 11409
Since: 2004/4/23
it displays 45 random avatars linking to their owners.
2010/2/14 20:52
global $xoopsDB; $sql = "SELECT u.uid, u.user_avatar FROM ".$xoopsDB->prefix("users")." u, ".$xoopsDB->prefix("groups_users_link")." g, ".$xoopsDB->prefix("profile_profile")." p WHERE u.uid = g.uid AND u.uid = p.profile_id AND u.level > 0 AND user_avatar <> 'blank.gif' AND u.uid NOT IN (1) ORDER BY RAND()"; $result = $xoopsDB->query($sql, 45); while (list($uid, $user_avatar) = $xoopsDB->fetchRow($result)) { echo '. XOOPS_URL . '/userinfo.php?uid=' . $uid . '">. XOOPS_URL . '/uploads/' . $user_avatar . '" alt="Avatar" height="30" width="30"/>'; } echo '';
2010/2/14 22:31
bjuti
Just can't stay away
Posts: 871
Since: 2009/1/7 2
2010/2/15 0:18
sailjapan
Posts: 1672
Since: 2005/11/16
Advanced Search
408 user(s) are online (282 user(s) are browsing Support Forums)
Members: 0
Guests: 408