// Rezensionen
$stat['estats_rezensionen']['toptext'] = $lang->rezies;
$stat['estats_rezensionen']['icon'] = "<img src=\"".$theme['imgdir']."/rezensionen.gif\" border=\"0\" alt=\"".$lang->rezies."\" title=\"".$lang->rezies."\" />";
//Profilfeld laden
$profilfeld = $db->query("SELECT fid10, uid FROM ".TABLE_PREFIX."userfields ORDER BY fid10 DESC LIMIT 0,".$mybb->settings['estats_max']);
// User laden
$alleuser = $db->query("SELECT uid, username, usergroup, displaygroup FROM ".TABLE_PREFIX."users");
$stat['estats_rezensionen']['statistic'] = "";
while ($rezies = $db->fetch_array($profilfeld))
{
if ($rezies['fid10'] > 0)
{
while ($benu = $db->fetch_array($alleuser))
{
if ($benu['uid'] == $rezies['uid'])
{
$benutzer['uid'] = $benu['uid'];
$benutzer['username'] = $benu['username'];
$benutzer['usergroup'] = $benu['usergroup'];
$benutzer['displaygroup'] = $benu['displaygroup'];
}
}
$db->data_seek($alleuser, 0);
$stat['estats_rezensionen']['statistic'] .= "<tr><td><a href=\"member.php?action=profile&uid=".$benutzer['uid']."\">".format_name($benutzer['username'], $benutzer['usergroup'], $benutzer['displaygroup'])."</a></td>\n<td align=\"right\">".$rezies['fid10']."</td></tr>\n";
}
elseif ($stat['estats_rezensionen']['statistic'] == "")
{
$stat['estats_rezensionen']['statistic'] .= "<tr><td>".$lang->nobody."</td>\n<td align=\"right\">".$lang->no_posts."</td></tr>\n";
}
else
{
$stat['estats_rezensionen']['statistic'] .= "<tr><td> </td>\n<td align=\"right\"> </td></tr>\n";
}
}
if ($stat['estats_rezensionen']['statistic'] == "")
{
$stat['estats_rezensionen']['statistic'] .= "<tr><td>".$lang->nobody."</td>\n<td align=\"right\">".$lang->no_posts."</td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n<tr><td> </td>\n<td align=\"right\"> </td></tr>\n";
}
unset($benutzer, $profilfeld, $alleuser);