Parašė Jolanciux· 2008 Lap. 14 23:11:13
#1
Šitoje panelėje rodo tik nario vardą, noriu kad rodytu ir avatarą, čia kodukas
openside("Atsitiktinis narys");
$result = dbquery("SELECT * FROM ".DB_PREFIX."users ORDER BY RAND() LIMIT 1");
if(dbrows($result)){
while($data=dbarray($result)){
echo "<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
class='slink' title='".$data['user_name']."'>".trimlink($data[user_name], 23)."</a>";
}
}
closeside();
Parašė bruzgis· 2008 Lap. 15 00:11:54
#2
openside("Atsitiktinis narys");
$narys = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."users ORDER BY RAND() LIMIT 1"));
if ($narys['user_avatar']) { echo "<center><img src='".IMAGES."avatars/".$narys['user_avatar']."'></center><br>";}
echo "<center><a href='".BASEDIR."profile.php?lookup=".$narys['user_id']."' class='slink' title='".$narys['user_name']."'>".trimlink($narys[user_name], 23)."</a></center>";
closeside();
Redagavo bruzgis· 2008 Lap. 15 00:11:16