Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: table

Parašė moonlike· 2009 Vas. 14 20:02:52
#12

na man ne img reikia... man reikia jog sitas kodas butu desineje, kaireje ir per viduri... :
$id = dbresult(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_avatar!='' ORDER BY RAND()"), 0);

$count = dbcount("(user_id)", "users", "user_avatar!=''");
$rez = dbcount("(user_id)", "users");

$proc = number_format($rez / 100 * $count);

$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$id'"));
echo"<div style='text-align: center;'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' border='0'><br>".$data['user_name']."</a></div>";

$id = dbresult(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_avatar!='' ORDER BY RAND()"), 0);

$count = dbcount("(user_id)", "users", "user_avatar!=''");
$rez = dbcount("(user_id)", "users");

$proc = number_format($rez / 100 * $count);

$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$id'"));
echo"<div style='text-align: center;'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' border='0'><br>".$data['user_name']."</a></div>";

$id = dbresult(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_avatar!='' ORDER BY RAND()"), 0);

$count = dbcount("(user_id)", "users", "user_avatar!=''");
$rez = dbcount("(user_id)", "users");

$proc = number_format($rez / 100 * $count);

$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$id'"));
echo"<div style='text-align: center;'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' border='0'><br>".$data['user_name']."</a></div>";
echo "<div style='text-align: center;'><span class='small'><b>$count Vartotojai</b> (".$proc."%)<br>Jau turi po foto.</span>";
if (!$userdata['user_avatar'] && iMEMBER) {
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>Ir man reikia foto!</a>




Na jog atsitiktinai avatarai rodytu 3 stulpelius... kaip one.lt foto draugu...

Redagavo moonlike· 2009 Vas. 14 20:02:09