2009/10/16 15:05
deka87
Friend of XOOPS
Posts: 1125
Since: 2007/10/5
global $xoopsDB; $sql = "SELECT u.uid, u.uname, u.user_avatar, p.source_language, p.target_language, p.country FROM ".$xoopsDB->prefix("users")." u LEFT JOIN ".$xoopsDB->prefix("groups_users_link")." g on u.uid = g.uid LEFT JOIN ".$xoopsDB->prefix("profile_profile")." AS p ON u.uid=p.profile_id WHERE g.groupid = 6 AND u.level > 0 AND u.uid NOT IN (1) ORDER BY RAND() LIMIT 1"; $result = $xoopsDB->query($sql); while (list($uid, $uname,$user_avatar) = $xoopsDB->fetchRow($result) ) { echo ".$user_avatar."'alt='Avatar'>"; echo ".XOOPS_URL."/userinfo.php?uid=".$uid."'>".$uname.""; echo "Working languages:".$source_language." to ".$target_language." from ".$country.""; }
2009/10/16 15:21
ghia
Community Support Member
Posts: 4953
Since: 2008/7/3 1
2009/12/18 15:28
global $xoopsDB; $sql = "SELECT u.uid, u.uname, u.user_avatar, p.source_language, p.target_language, p.welcome 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 g.groupid = 6 AND u.level > 0 AND u.uid NOT IN (1) ORDER BY RAND()"; $result = $xoopsDB->query($sql, 5); while (list($uid, $uname, $user_avatar, $source_language, $target_language, $welcome) = $xoopsDB->fetchRow($result)) { $user_avatar = ($user_avatar != 'blank.gif') ? $user_avatar : 'default_avatar.png'; // default_avatar.png - ????????? ?????? echo '. XOOPS_URL . '/uploads/' . $user_avatar . '" alt="Avatar" width="50" height="50" />. XOOPS_URL . '/userinfo.php?uid=' . $uid . '">' . $uname . '' . $source_language . ' » ' . $target_language . ''; }
2009/12/18 15:43
2009/12/18 16:01
and they arranged in a column again. tried with tables with the same result. i missed something?
2009/12/18 16:04
2009/12/18 16:35
2009/12/18 16:48
Positioning is done with display:block; and float:left for the li tags.
Advanced Search
306 user(s) are online (200 user(s) are browsing Support Forums)
Members: 0
Guests: 306