ashais13 Posted November 9, 2009 Report Share Posted November 9, 2009 Gribu izmantot sho kodu ipb lietotaju sarakstam,bet saskaros ar itkaa siiku probleemu, bet neprotu to noveerst!! - Man visus lietotajsus raada vartikaali,bet gribeetu lai rada horizontaali.. Attels sheit. <?php define('WWW','http://.....'); //Tavas web lapas adrese include_once('forums/conf_global.php'); //Cels uz foruma config failu $link = mysql_connect($INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass']); mysql_query('use '.$INFO['sql_database'].';'); $page = '<div id="userlist">'; $result = mysql_query('select t1.id,t1.members_display_name,t2.avatar_location from '.$INFO['sql_tbl_prefix'].'members t1 join '.$INFO['sql_tbl_prefix'].'member_extra t2 on (t1.id = t2.id);'); if (!empty($result)) { while ($r = mysql_fetch_array($result)) { $page .='<p> <div class="members"> <img src="'.$r[2].'" alt="'.$r[1].'"><br /> <a href="forums/index.php?lietotajs='.$r[0].'"> '.$r[1].'</a></div> </p>'; } } $page .='</div>'; mysql_close($link); echo $page; ?> Quote Link to comment Share on other sites More sharing options...
Val Posted November 9, 2009 Report Share Posted November 9, 2009 izņemt <p> un </p> mēģināji? Quote Link to comment Share on other sites More sharing options...
ashais13 Posted November 9, 2009 Author Report Share Posted November 9, 2009 Jau meginaaju.. Quote Link to comment Share on other sites More sharing options...
Val Posted November 9, 2009 Report Share Posted November 9, 2009 http://www.quirksmode.org/css/display.html Quote Link to comment Share on other sites More sharing options...
xmas12 Posted November 9, 2009 Report Share Posted November 9, 2009 (edited) <?php define('WWW','http://.....'); //Tavas web lapas adrese include_once('forums/conf_global.php'); //Cels uz foruma config failu $link = mysql_connect($INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass']); mysql_query('use '.$INFO['sql_database'].';'); $page = '<div id="userlist">'; $result = mysql_query('select t1.id,t1.members_display_name,t2.avatar_location from '.$INFO['sql_tbl_prefix'].'members t1 join '.$INFO['sql_tbl_prefix'].'member_extra t2 on (t1.id = t2.id);'); if (!empty($result)) { while ($r = mysql_fetch_array($result)) { $page .='<p> <div class="members"> <img src="'.$r[2].'" alt="'.$r[1].'"><br /> <a href="forums/index.php?lietotajs='.$r[0].'"> '.$r[1].'</a></div> </p>'; } } $page .='</div>'; mysql_close($link); echo $page; ?> un style.css failaa ieliec šo .members { float: left; white-space: nowrap; overflow: hidden; margin: 0px 9px 5px 9px; text-align: center; width: 64px; } .members a { color: #000; } .members img { width: 60px; height: 60px; } Un uzraksti iet vai nejiet, raksti sajaa topikā! Edited November 9, 2009 by xmas12 Quote Link to comment Share on other sites More sharing options...
ashais13 Posted November 9, 2009 Author Report Share Posted November 9, 2009 (edited) Tgd viss iet.. ;) Edited November 9, 2009 by ashais13 Quote Link to comment Share on other sites More sharing options...
xmas12 Posted November 9, 2009 Report Share Posted November 9, 2009 Derētu jau paldies pateikt :D :D Quote Link to comment Share on other sites More sharing options...
ashais13 Posted November 9, 2009 Author Report Share Posted November 9, 2009 Paldies paldies vecais.. ;) Quote Link to comment Share on other sites More sharing options...
xmas12 Posted November 10, 2009 Report Share Posted November 10, 2009 Nav par ko :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.