Zitat geschrieben von
holzkommt der status 2 aus der datenbank? oder wo her kommt der wert?
Ich habe dieses Modul installiert:
externer Link
Ich schick euch mal die aktuelle user_details.php
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined('main') or die('no direct access');
$uid = intval($menu->get(2));
$abf = 'SELECT * FROM prefix_user WHERE id = "' . $uid . '"';
$erg = db_query($abf);
if (db_num_rows($erg))
{
#Award Ausgabe
$awards = '';
$ax = 0;
$sqlA = db_query("SELECT a.platz, a.text, a.wofur, a.team, a.bild, DATE_FORMAT(a.`time`, '%d.%m.%Y') AS time FROM `prefix_awards` a INNER JOIN prefix_user b ON a.team = b.name WHERE b.id = " . $uid . " ORDER BY `time` ASC");
while ($rowA = db_fetch_assoc($sqlA))
{
$ax++;
if ($ax == 8)
{
$awards .= '<br />';
$ax = 0;
}
$awards .= (!empty($rowA['bild']) ? '<img style="padding:1px;border:0px;" src="' . $rowA['bild'] . '" alt="' . $rowA['wofur'] . '" title="' . $rowA['wofur'] . '"/>' : $rowA['wofur']);
}
$awards = '<br /><div style="text-align:center;">' . $awards . '</div>';
$lastbes_anz = 5; //Bei höhere Anzahl muss ggf. in der Datenbank die Größe der Felder bzw der Typ geändert werden
if ($_SESSION['authid'] != $uid AND $_SESSION['authid'] != 0)
{
$lb = db_fetch_object(db_query('SELECT last_bes, last_user_time FROM prefix_user WHERE id = ' . $uid));
$lba = explode('#', $lb->last_bes);
$lbt = explode('#', $lb->last_user_time);
$i = array_search($_SESSION['authid'], $lba);
if ($i !== false)
{
unset($lba[$i]);
unset($lbt[$i]);
}
elseif (count($lba) >= $lastbes_anz)
{
$lba = array_slice($lba, 0, $lastbes_anz - 1);
$lbt = array_slice($lbt, 0, $lastbes_anz - 1);
}
array_unshift($lba, $_SESSION['authid']);
array_unshift($lbt, time());
$i_lb = implode('#', $lba);
$i_lbt = implode('#', $lbt);
db_query("UPDATE prefix_user SET last_bes = '$i_lb', last_user_time = '$i_lbt' WHERE id = $uid");
}
include('user_infos.php');
$ar = array(
'UID' => $uid,
'NAME' => $row['name'],
'JOINED' => date('d.m.Y', $row['regist']),
'LASTAK' => date('d.m.Y - H:i', $row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'RANG' => userrang($row['posts'], $uid),
'AVATA' => $avatar,
'LASTUSER' => last_user($uid),
'STATUS2' => $online,
'USERTITEL' => $usertitel,
'EMAIL' => $email,
'HOMEPAGE' => $homepage,
'GESCHLECHT' => $geschlecht,
'GEBDATUM' => $gebdatum,
'ALTER' => $alter,
'WOHNORT' => $wohnort,
'FORUMTOPICS' => $row4['forumtopics'],
'NEWSTOPICS' => $row5['newstopics'],
'NEWSPOSTS' => $row6['newsposts'],
'FORUMPOSTS' => $row7['forumposts'],
'SIGNATUR' => bbcode($row['sig']),
'STAAT' => $staat,
'UID' => $uid,
'STERNZEICHEN' => $sternzeichen,
'GB_EINTRAEGE' => $gb_eintraege,
'GALLERIE_EINTRAEGE' => $gallery_eintraege,
'ICQ' => $icq,
'GAME' => $game,
'SPIELERFAHRUNG' => $spielerfahrungen,
'CLAN' => $clan,
'MAP' => $map,
'WAFFE' => $waffe,
'ESSEN' => $essen,
'TRINKEN' => $trinken,
'FILM' => $film,
'MUSIK' => $musik,
'SPORT' => $sport,
'CPU' => $cpu,
'MAINBOARD' => $mainboard,
'RAM' => $ram,
'MONITOR' => $monitor,
'GRAFIKKARTE' => $grafikkarte,
'SOUNDKARTE' => $soundkarte,
'FESTPLATTE' => $festplatte,
'I_NET_VERBINDUNG' => $i_net_verbindung,
'TASTATUR' => $tastatur,
'MAUS' => $maus,
'JAPPY' => $jappy,
'FACEBOOK' => $facebook,
'WKW' => $wkw,
'STUDIVZ' => $studivz,
'MYSPACE' => $myspace,
'YOUTUBE' => $youtube,
'AWARDS' => $awards
);
$title = $allgAr['title'] . ' :: Users :: Details von ' . $row['name'];
$hmenu = $extented_forum_menu . '<a class="smalfont" href="?user">Users</a><b> » </b> <a href=index.php?user-details-' . $uid . '>Details von ' . $row['name'] . "</a>" . $extented_forum_menu_sufix;
$design = new design($title, $hmenu, 1);
$design->header();
$tpl = new tpl('user/userdetails');
$l = profilefields_show($uid);
$ar['rowspan'] = 4 + substr_count($l, '<tr><td class="');
$ar['profilefields'] = $l;
$tpl->set_ar_out($ar, 0);
}
else
{
$title = $allgAr['title'] . ' :: Users :: User nicht gefunden';
$hmenu = $extented_forum_menu . '<a class="smalfont" href="?user">Users</a> ' . $extented_forum_menu_sufix;
$design = new design($title, $hmenu, 1);
$design->header();
echo 'Der Benutzer wurde nicht gefunden bzw. die Seite wurde nicht richtig aufgerufen.<br />';
}
$design->footer();
?>
Zeile 59 ist status2 definiert.