Ich habe den Profilmod 1.2 raufgemacht
Userdetails.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' => 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);
$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 bgcolor="#000000" border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top" width="60%"><table border="1" cellpadding="2" cellspacing="0" width="99%">
<tbody>
<tr>
<td colspan="2"><b> • <u>Persönliche Informationen</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td bgcolor="#191919" width="35%"><img src="include/images/userdetails/user.png" height="16" border="0" width="16"> Nickname:</td>
<td bgcolor="#424242" width="65%"><strong>{NAME}</strong></td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/status.png" height="16" border="0" width="16"> Status:</td>
<td bgcolor="#424242">{STATUS2}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/titel.png" height="16" border="0" width="16"> Benutzertitel:</td>
<td bgcolor="#424242">{USERTITEL}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/email.png" height="16" border="0" width="16"> Kontakt:</td>
<td bgcolor="#424242">{EMAIL}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/homepage.png" height="16" border="0" width="16"> Homepage:</td>
<td bgcolor="#424242">{HOMEPAGE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/icq.png" height="16" border="0" width="16"> ICQ:</td>
<td bgcolor="#424242">{ICQ}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/sex.png" height="16" border="0" width="16"> Geschlecht:</td>
<td bgcolor="#424242">{GESCHLECHT}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/gebdatum.png" height="16" border="0" width="16"> Geburtstag:</td>
<td bgcolor="#424242">{GEBDATUM} {ALTER}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/sternzeichen.png" height="16" border="0" width="16"> Sternzeichen</td>
<td bgcolor="#424242">{STERNZEICHEN}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/land.png" height="16" border="0" width="16"> Land:</td>
<td bgcolor="#424242">{WOHNORT} {STAAT}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/reg.png" height="16" border="0" width="16"> Dabei seit:</td>
<td bgcolor="#424242">{JOINED}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/letzteakt.png" height="16" border="0" width="16"> Letzte Aktivität:</td>
<td bgcolor="#424242">{LASTAK} Uhr</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/warn.jpeg" height="16" border="0" width="16"> Verwarnungen:</td>
<td bgcolor="#424242">{VERW}</td>
</tr>
</tbody>
</table>
<br>
<table border="1" cellpadding="2" cellspacing="0" width="99%">
<tbody>
<tr>
<td><b><img src="include/images/userdetails/signatur.png" height="16" border="0" width="16"><u>Signatur</u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#424242">{SIGNATUR}</td>
</tr>
</tbody>
</table>
<br>
<table border="1" cellpadding="2" cellspacing="0" width="99%">
<tbody>
<tr>
<td colspan="2"><b> • <u>Game / Sonstiges</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/games.png" height="16" border="0" width="16"> Spiele:</td>
<td bgcolor="#424242" width="77%">{GAME}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/fadenkreuz.gif" height="16" border="0" width="16"> Skill:</td>
<td bgcolor="#424242">{SPIELERFAHRUNG}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/clan.png" height="16" border="0" width="16"> Clan:</td>
<td bgcolor="#424242">{CLAN}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/map.png" height="16" border="0" width="16"> Map:</td>
<td bgcolor="#424242">{MAP}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/waffe.png" height="16" border="0" width="16"> Waffe:</td>
<td bgcolor="#424242">{WAFFE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/essen.png" height="16" border="0" width="16"> Essen:</td>
<td bgcolor="#424242">{ESSEN}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/trinken.png" height="16" border="0" width="16"> Trinken:</td>
<td bgcolor="#424242">{TRINKEN}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/film.png" height="16" border="0" width="16"> Filme:</td>
<td bgcolor="#424242">{FILM}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/musik.png" height="16" border="0" width="16"> Musik:</td>
<td bgcolor="#424242">{MUSIK}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/sport.png" height="16" border="0" width="16"> Sport:</td>
<td bgcolor="#424242">{SPORT}</td>
</tr>
</tbody>
</table>
<br>
<table border="1" cellpadding="2" cellspacing="0" width="99%">
<tbody>
<tr>
<td colspan="2" height="24" valign="middle" align="left"><b> • <u>Computer Technik </u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/cpu.png" height="16" border="0" width="16"> Cpu:</td>
<td bgcolor="#424242" width="66%">{CPU}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/mainboard.png" height="16" border="0" width="16"> Mainboard:</td>
<td bgcolor="#424242">{MAINBOARD}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/arbeitsspeicher.png" height="16" border="0" width="16"> Ram:</td>
<td bgcolor="#424242">{RAM}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/monitor.png" height="16" border="0" width="16"> Monitor:</td>
<td bgcolor="#424242">{MONITOR}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/grafik.png" height="16" border="0" width="16"> Grafikkarte:</td>
<td bgcolor="#424242">{GRAFIKKARTE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/soundkarte.png" height="16" border="0" width="16"> Soundkarte:</td>
<td bgcolor="#424242">{SOUNDKARTE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/festplatte.png" height="16" border="0" width="16"> Festplatte:</td>
<td bgcolor="#424242">{FESTPLATTE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/modem.png" height="16" border="0" width="16"> DSL:</td>
<td bgcolor="#424242">{I_NET_VERBINDUNG}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/tastatur.png" height="16" border="0" width="16"> Tastatur:</td>
<td bgcolor="#424242">{TASTATUR}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/maus.png" height="16" border="0" width="16"> Maus:</td>
<td bgcolor="#424242">{MAUS}</td>
</tr>
</tbody>
</table></td>
<td width="0%"> </td>
<td valign="top" width="40%"><table border="1" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td><b> • <u>Benutzerbild:</u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td height="215" align="center">{AVATA}</td>
</tr>
</tbody>
</table>
<br>
<table border="1" 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 bgcolor="#191919" width="37%">Instant Messanger:</td>
<td bgcolor="#424242" width="63%"><a href="javascript:void(0)" onclick="javascript:chatWith({UID},'{NAME}')">IM Fenster öffnen</a></td>
</tr> -->
<tr>
<td bgcolor="#191919" width="37%">Usergallerie:</td>
<td bgcolor="#424242" width="63%">{GALLERIE_EINTRAEGE} (<a href="index.php?user-usergallery-{UID}">ansehen)</a></td>
</tr>
<tr>
<td bgcolor="#191919" width="37%">Gästebuch:</td>
<td bgcolor="#424242" width="63%"><a href="index.php?user-usergb-view-{UID}">Klicke hier!</a></td>
</tr>
<tr>
<td bgcolor="#191919" width="37%">Private Mail:</td>
<td bgcolor="#424242" width="63%"><a href="index.php?forum-privmsg-new=0&empfid={UID}">schreiben</a></td>
</tr><tr>
<td bgcolor="#191919" width="37%">Mehr Details:</td>
<td bgcolor="#424242" width="63%"><div id="nav"><a href="javascript:onClick=details()">anzeigen</a></div></td>
</tr>
</tbody>
</table>
<br>
<table border="1" width="100%">
<tbody>
<tr>
<td><b> • <u>Letzte Besucher </u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr bgcolor="#424242">
<td><table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#191919">{LASTUSER}</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br>
<table border="1" 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" bgcolor="#191919" width="27%">Forumtopics:</td>
<td height="25" bgcolor="#191919" width="73%">{FORUMTOPICS}</td>
</tr>
<tr>
<td height="25" bgcolor="#191919" width="27%">Newstopics:</td>
<td height="25" bgcolor="#191919" width="73%">{NEWSTOPICS}</td>
</tr>
<tr>
<td height="25" bgcolor="#191919" width="27%">Newsposts:</td>
<td height="25" bgcolor="#191919" width="73%">{NEWSPOSTS}</td>
</tr>
<tr>
<td height="25" bgcolor="#191919" width="27%">Forumposts:</td>
<td height="25" bgcolor="#191919" width="73%">{POSTS}</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br> <table border="1" cellpadding="2" cellspacing="0" width="98%">
<tbody>
<tr>
<td colspan="2" valign="middle" align="left"><b> • <u>Community</u></b></td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/jappy.png" height="16" border="0" width="16"> Jappy:</td>
<td bgcolor="#424242">{JAPPY}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/facebook.png" height="16" border="0" width="16"> Facebook:</td>
<td bgcolor="#424242">{FACEBOOK}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/wkw.png" height="16" border="0" width="16"> WkW:</td>
<td bgcolor="#424242">{WKW}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/studivz.png" height="16" border="0" width="16"> StudiVz:</td>
<td bgcolor="#424242">{STUDIVZ}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/myspace.png" height="16" border="0" width="16"> MySpace:</td>
<td bgcolor="#424242">{MYSPACE}</td>
</tr>
<tr>
<td bgcolor="#191919"><img src="include/images/userdetails/youtube.png" height="16" border="0" width="16"> YouTube:</td>
<td bgcolor="#424242">{YOUTUBE}</td>
</tr><tr>
<td colspan="4"><div id="more_details" style="display:none">{profilefields}<table></table></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br>
<center> </center><table class="border" cellpadding="3" cellspacing="1" width="100%">
<tbody><tr class="Chead">
<th colspan="2"><center>Auszeichnungen von {NAME}</center></th></tr><tr>
</tr></tbody></table>
<table cellpadding="3" cellspacing="1" width="100%">
<tbody><tr><th colspan="2" bgcolor="#424242">{AWARDS}</th>
</tr></tbody></table>
<br>
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>