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

Parašė Ginciuss· 2009 Vas. 11 15:02:50
#4

 openside("Atsitiktiniai Avatarai");
$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 avatarą.</span>";
if (!$userdata['user_avatar'] && iMEMBER) {
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>Ir aš noriu avataro!</a>";
}
echo "</div>";

closeside();





Prašom, jei taip norėjai.

Redagavo Ginciuss· 2009 Vas. 11 15:02:16