user_details.php
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = $menu->get(2);
#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 = '<b><b><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' => rangbild ($rp),
'RANGNAME' => $rangname,
'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);
$design->footer();
?>
userdetails.htm
<!--<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
<br />
<br />
<table width="100%" cellpadding="3" cellspacing="1" class="border">
<tr class="Chead">
<th colspan="3"><b>{_lang_detailsfrom} {NAME}</b></th>
</tr><tr>
<td class="Cmite" width="30%">{_lang_nickname}</td>
<td class="Cnorm" width="40%">{NAME}</td>
<td class="Cnorm" width="30%" rowspan="{rowspan}" valign="top" align="center">
{AVATA}
<br /><br />
<font class="smalfont">{RANG}</font>
</td>
</tr><tr>
<td class="Cmite">{_lang_regsince}</td>
<td class="Cnorm">{JOINED}</td>
</tr><tr>
<td class="Cmite">{_lang_lastactivity}</td>
<td class="Cnorm">{LASTAK}</td>
</tr><tr>
<td class="Cmite">{_lang_posts2}</td>
<td class="Cnorm">{POSTS}, {_lang_perday}: {postpday}</td>
</tr>
{profilefields}
</table>
<br />
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>-->
<br />
<script language="javascript" type="text/javascript">
function details()
{
if(document.getElementById('more_details').style.display=='block'){
document.getElementById('more_details').style.display='none';
}else{
document.getElementById('more_details').style.display='block';
}
}
</script>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top" width="60%"><table border="0" cellpadding="2" cellspacing="0" width="80%">
<tbody>
<tr>
<td colspan="2"><b> • <u>Persönliche Informationen</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="35%"><img src="include/images/userdetails/user.png" class="gradualfader" border="0" height="16" width="16" /> Nickname:</td>
<td width="65%"><strong>{NAME}</strong></td>
</tr>
<tr>
<td><img src="include/images/userdetails/status.png" class="gradualfader" border="0" height="16" width="16"> Status:</td>
<td>{STATUS2}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/titel.png" class="gradualfader" border="0" height="16" width="16"> Benutzertitel:</td>
<td>{USERTITEL}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/email.png" class="gradualfader" border="0" height="16" width="16"> Kontakt:</td>
<td>{EMAIL}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/homepage.png" class="gradualfader" border="0" height="16" width="16"> Homepage:</td>
<td>{HOMEPAGE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/icq.png" class="gradualfader" border="0" height="16" width="16"> ICQ:</td>
<td>{ICQ}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/sex.png" class="gradualfader" border="0" height="16" width="16"> Geschlecht:</td>
<td>{GESCHLECHT}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/gebdatum.png" class="gradualfader" border="0" height="16" width="16" />Geburstag:</td>
<td>{GEBDATUM} {ALTER}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/sternzeichen.png" class="gradualfader" border="0" height="16" width="16" />Sternzeichen</td>
<td>{STERNZEICHEN}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/land.png" class="gradualfader" border="0" height="16" width="16"> Land:</td>
<td>{WOHNORT} {STAAT}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/reg.png" class="gradualfader" border="0" height="16" width="16"> Dabei seit:</td>
<td>{JOINED}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/letzteakt.png" class="gradualfader" border="0" height="16" width="16"> Letzte Aktivität:</td>
<td>{LASTAK} Uhr</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td><b><img src="include/images/userdetails/signatur.png" class="gradualfader" border="0" height="16" width="16"><u>Signatur</u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td class="gradualfader">{SIGNATUR}</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="80%">
<tbody>
<tr>
<td colspan="2"><b> • <u>Game / Sonstiges</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="23%">• Favorit</td>
</tr>
<tr>
<td><img src="include/images/userdetails/games.png" class="gradualfader" border="0" height="16" width="16"> Game:</td>
<td width="77%">{GAME}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/fadenkreuz.gif" class="gradualfader" border="0" height="16" width="16"> Skill:</td>
<td>{SPIELERFAHRUNG}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/clan.png" class="gradualfader" border="0" height="16" width="16"> Clan:</td>
<td>{CLAN}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/map.gif" class="gradualfader" border="0" height="16" width="16"> Map:</td>
<td>{MAP}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/waffe.png" class="gradualfader" border="0" height="16" width="16"> Waffe:</td>
<td>{WAFFE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/essen.png" class="gradualfader" border="0" height="16" width="16"> Essen:</td>
<td>{ESSEN}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/trinken.png" class="gradualfader" border="0" height="16" width="16"> Trinken:</td>
<td>{TRINKEN}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/film.png" class="gradualfader" border="0" height="16" width="16"> Film:</td>
<td>{FILM}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/musik.png" class="gradualfader" border="0" height="16" width="16"> Musik:</td>
<td>{MUSIK}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/sport.png" class="gradualfader" border="0" height="16" width="16"> Sport:</td>
<td>{SPORT}</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="80%">
<tbody>
<tr>
<td align="left" valign="middle" colspan="2"><b> • <u>Computer Technik </u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td><img src="include/images/userdetails/cpu.png" class="gradualfader" border="0" height="16" width="16"> Cpu:</td>
<td>{CPU}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/mainboard.png" class="gradualfader" border="0" height="16" width="16"> Mainboard:</td>
<td>{MAINBOARD}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/arbeitsspeicher.png" class="gradualfader" border="0" height="16" width="16"> Ram:</td>
<td>{RAM}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/monitor.png" class="gradualfader" border="0" height="16" width="16"> Monitor:</td>
<td>{MONITOR}</td>
</tr>
<tr>
<td width="31%"><img src="include/images/userdetails/grafik.png" class="gradualfader" border="0" height="16" width="16"> Grafikkarte:</td>
<td width="69%">{GRAFIKKARTE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/soundkarte.png" class="gradualfader" border="0" height="16" width="16"> Soundkarte:</td>
<td>{SOUNDKARTE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/festplatte.png" class="gradualfader" border="0" height="16" width="16"> Festplatte:</td>
<td>{FESTPLATTE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/modem.png" class="gradualfader" border="0" height="16" width="16">Verbindung:</td>
<td>{I_NET_VERBINDUNG}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/tastatur.png" class="gradualfader" border="0" height="16" width="16"> Tastatur:</td>
<td>{TASTATUR}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/maus.png" class="gradualfader" border="0" height="16" width="16"> Maus:</td>
<td>{MAUS}</td>
</tr>
</tbody>
</table></td>
<td width="0%"> </td>
<td valign="top" width="40%"><table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td><b> • <u>Benutzerbild:</u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td align="center" class="gradualfader" height="215">{AVATA}
<br />
{RANG}<br />
<br />
{RANGNAME}
</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td colspan="2"><b> • <u>Specials</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="37%">IM Messanger:</td>
<td width="63%"><a href="javascript:void(0)" onclick="javascript:chatWith({UID},'{NAME}')">IM Fenster öffnen</a></td>
</tr>
<tr>
<td width="37%">Usergallerie:</td>
<td width="63%">{GALLERIE_EINTRAEGE} (<a href="index.php?user-usergallery-{UID}">ansehen)</a></td>
</tr>
<tr>
<td width="37%">Gästebuch:</td>
<td width="63%"><a href="index.php?user-usergb-view-{UID}">Klicke hier!</a></td>
</tr>
<tr>
<td width="37%">Private Mail:</td>
<td width="63%"><a href="index.php?forum-privmsg-new=0&empfid={UID}">schreiben</a></td>
</tr><tr>
<td width="37%">More Details:</td>
<td width="63%"><div id="nav"><a href="javascript:onClick=details()">anzeigen</a></div></td>
</tr>
</tbody>
</table>
<br>
<table width="100%">
<tbody>
<tr>
<td><b> • <u>Letzte Besucher </u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr bgcolor="">
<td><table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td>{LASTUSER}</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br>
<table width="100%">
<tbody>
<tr>
<td><b> • <u>Statistik </u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr bgcolor="">
<td><table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td height="25" width="27%">Forumtopics:</td>
<td width="73%" height="25">{FORUMTOPICS}</td>
</tr>
<tr>
<td height="25" width="27%">Newstopics:</td>
<td width="73%" height="25">{NEWSTOPICS}</td>
</tr>
<tr>
<td height="25" width="27%">Newsposts:</td>
<td width="73%" height="25">{NEWSPOSTS}</td>
</tr>
<tr>
<td height="25" width="27%">Forumposts:</td>
<td width="73%" height="25">{POSTS}</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" valign="middle" colspan="2"><b> • <u>Community</u></b></td>
</tr>
<tr>
<td width="45%"><img src="include/images/userdetails/jappy.png" class="gradualfader" border="0" height="16" width="16"> Jappy:</td>
<td width="55%">{JAPPY}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/facebook.png" class="gradualfader" border="0" height="16" width="16"> Facebook:</td>
<td>{FACEBOOK}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/wkw.png" class="gradualfader" border="0" height="16" width="16"> WkW:</td>
<td>{WKW}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/studivz.png" class="gradualfader" border="0" height="16" width="16"> Studivz:</td>
<td>{STUDIVZ}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/myspace.png" class="gradualfader" border="0" height="16" width="16"> MySpace:</td>
<td>{MYSPACE}</td>
</tr>
<tr>
<td><img src="include/images/userdetails/youtube.png" class="gradualfader" border="0" height="16" width="16"> YouTube:</td>
<td>{YOUTUBE}</td>
</tr><tr>
<td colspan="4"><div id="more_details" style="display:none"><table>{profilefields}</table></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br />
<table width="100%" cellpadding="3" cellspacing="1" class="border">
<tr class="Chead">
<center> <th colspan="2"><center>Auszeichnungen von {NAME}</center></b></th></tr><tr>
</tr></table>
<table width="100%" cellpadding="3" cellspacing="1">
<th colspan="2" bgcolor="#F2F2F2">{AWARDS}</b></th>
<tr><td colspan="4"> </td></tr>
</table>
<br />
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
Teste es mal, aber sicher dir deine vorher ab.
Weiß net ob es funzt