2011/10/17 11:59
deka87
Friend of XOOPS
Posts: 1125
Since: 2007/10/5
global $xoopsDB; $sql = "SELECT u.uid, u.user_avatar, u.uname 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, 12); while (list($uid, $user_avatar, $uname) = $xoopsDB->fetchRow($result)) { echo '. XOOPS_URL . '/userinfo.php?uid=' . $uid . '" title="' . $uname . '">. XOOPS_URL . '/uploads/' . $user_avatar . '" alt="Avatar" class="mosh" />'; } ...
2011/10/17 15:59
zyspec
Module Developer
Posts: 1095
Since: 2004/9/21
2011/10/17 18:43
trabis
Core Developer
Posts: 2269
Since: 2006/9/1 1
global $xoopsDB; $sql = "SELECT u.uid, u.user_avatar, u.uname 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 user_avatar <> 'avatar/blank.gif' AND u.uid NOT IN (1) ORDER BY RAND()"; $result = $xoopsDB->query($sql, 12); while (list($uid, $user_avatar, $uname) = $xoopsDB->fetchRow($result)) { echo '. XOOPS_URL . '/userinfo.php?uid=' . $uid . '" title="' . $uname . '">. XOOPS_URL . '/uploads/' . $user_avatar . '" alt="Avatar" class="mosh" />'; } ...
2011/10/18 4:37
2011/10/18 12:45
global $xoopsDB; $sql = "SELECT u.uid, u.user_avatar, u.uname 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 user_avatar <> 'avatars/blank.gif' AND u.uid NOT IN (1) ORDER BY RAND()"; $result = $xoopsDB->query($sql, 12); while (list($uid, $user_avatar, $uname) = $xoopsDB->fetchRow($result)) { echo '. XOOPS_URL . '/userinfo.php?uid=' . $uid . '" title="' . $uname . '">. XOOPS_URL . '/uploads/' . $user_avatar . '" alt="Avatar" class="mosh" />'; }
2011/10/18 13:03
Advanced Search
240 user(s) are online (130 user(s) are browsing Support Forums)
Members: 0
Guests: 240