Parašė moonlike· 2009 Vas. 11 14:02:25
#3
As nesuprantu kaip cia daryti...
va kodas pwz.:
openside("Atsitiktinis Avataras");
$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();
Tai kaip man padaryti jog rodytu salia dar 2 avatarus ir apacioje (t.y. zemiau) Bukit zmones padekit..