Hallo zusammen!
Ich weiß, es ist ein alter Thread, aber ich wollte ebenfalls das Team des Members im Profil aufscheinen lassen.
Nun habe ich alle so eingefügt wie beschrieben, aber im Profil wird immer noch kein Team sondern nur {teams} ausgegeben. Habe den Profil-Mod installiert und wollte nun fragen, ob ich in der user_infos.php auch noch etwas Einfügen muss um es angezeigt zu bekommen?
Hier meine Dateien:
user_details.php
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
function user_get_teams ($uid) {
$erg = db_query("SELECT b.name, c.name as posi
FROM `prefix_groupusers` a
LEFT JOIN `prefix_groups` b ON b.id = a.gid
LEFT JOIN `prefix_groupfuncs` c ON a.fid = c.id
WHERE a.uid = ".$uid);
if (db_num_rows($erg) > 0 ) {
while ($r = db_fetch_assoc($erg)) {
if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; }
$l .= '<td class="'.$class.'" width="70%">'.$r['name'].'</td><td class="'.$class.'" width="30%">'.$r['posi'].'</td></tr>';
}
} else {
$l .= '<td class="Cmite" width="10%">In keinem Team.</td>';
}
return ($l);
}
$uid = intval($menu->get(2));
if ($uid == 0 and loggedin()) {
$uid = $_SESSION['authid'];
}
if ($uid == 0 and !loggedin()) {
header("Location: index.php?user");
}
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
if (db_num_rows($erg)) {
$row = db_fetch_assoc($erg);
if ((($row['opt_sec'] == 2 AND $_SESSION['authright'] > -7) OR ($row['opt_sec'] == 1 AND $_SESSION['authid'] == 0)) AND $_SESSION['authid'] != $uid) {
$title = $allgAr['title'].' Details von '.$row['name'];
$hmenu = '<a class="xx">Details von </a>'.$row['name'].$extented_forum_menu_sufix;
$design = new design ($title,$hmenu,1);
$design->header();
wd('index.php?'.$allgAr['smodul'],'Du darfst dieses Profil nicht sehen...');
$design->footer();
exit;
}
#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'],
'VORNAME' => $row['vorname'],
'NACHNAME' => $row['nachname'],
'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,
'SKYPE' => $skype,
'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,
'DARTSG' => $dartsg,
'DARTSH' => $dartsh,
'VEREIN' => $verein,
'VEREINL' => $vereinl,
'BLAND' => $bland,
'ESSEN' => $essen,
'TRINKEN' => $trinken,
'FILM' => $film,
'MUSIK' => $musik,
'SPORT' => $sport,
'HOBBIES' => $hobbies,
'LZAHL' => $lzahl,
'JAPPY' => $jappy,
'FACEBOOK' => $facebook,
'WKW' => $wkw,
'STUDIVZ' => $studivz,
'MYSPACE' => $myspace,
'YOUTUBE' => $youtube,
'AWARDS' => $awards,
);
$title = $allgAr['title'].' Details von '.$row['name'];
$hmenu = '<a class="xx">Details von </a>'.$row['name'].$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);
$tpl->set_out('teams', user_get_teams($uid),1);
$tpl->out(2);
} else {
$title = $allgAr['title'].' Mitglied nicht gefunden';
$hmenu = '<a class="xx">Mitglied nicht gefunden</a>';
$design = new design ( $title , $hmenu, 1);
$design->header();
echo 'Der Benutzer wurde nicht gefunden bzw. die Seite wurde nicht richtig aufgerufen.<br />';
}
$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>-->
<style type="text/css">
.txarea {
font-size: 10px;
color: #CCC;
background-color: #000;
}
.header {
font-size: 12px;
color: #CCC;
}
.a {
vertical-align: middle;
}
</style>
<body link="#c10000">
<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 width="47%" height="932" valign="top"><table border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
</tbody>
<tbody>
<tr>
<td colspan="3" class="header"><b> • <u>Persönliche Informationen</u></b></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/user.png" class="gradualfader" border="0" height="16" width="16" /> Nickname:</td>
<td class="a"><strong>{NAME}</strong></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/name.png" class="gradualfader" border="0" height="16" width="16"> Vorname:</td>
<td class="a">{VORNAME}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/name.png" class="gradualfader" border="0" height="16" width="16"> Nachname:</td>
<td class="a">{NACHNAME}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/status.png" class="gradualfader" border="0" height="16" width="16"> Status:</td>
<td class="a">{STATUS2}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/titel.png" class="gradualfader" border="0" height="16" width="16"> Benutzertitel:</td>
<td class="a">{USERTITEL}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/email.png" class="gradualfader" border="0" height="16" width="16"> Kontakt:</td>
<td class="a">{EMAIL}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/homepage.png" class="gradualfader" border="0" height="16" width="16"> Homepage:</td>
<td class="a">{HOMEPAGE}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/icq.png" class="gradualfader" border="0" height="16" width="16"> ICQ:</td>
<td class="a">{ICQ}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/skype.png" class="gradualfader" border="0" height="16" width="16"> Skype:</td>
<td class="a">{SKYPE}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/sex.png" class="gradualfader" border="0" height="16" width="16"> Geschlecht:</td>
<td class="a">{GESCHLECHT}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/gebdatum.png" class="gradualfader" border="0" height="16" width="16" /> Geburstag:</td>
<td class="a">{GEBDATUM} {ALTER}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/sternzeichen.png" class="gradualfader" border="0" height="16" width="16" /> Sternzeichen</td>
<td class="a">{STERNZEICHEN}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/land.png" class="gradualfader" border="0" height="16" width="16"> Herkunftsland:</td>
<td class="a">{STAAT}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/haus.png" class="gradualfader" border="0" height="16" width="16"> Wohnort/Bundesland:</td>
<td class="a">{WOHNORT} / {BLAND}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/reg.png" class="gradualfader" border="0" height="16" width="16"> Dabei seit:</td>
<td class="a">{JOINED}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/letzteakt.png" class="gradualfader" border="0" height="16" width="16"> Letzte Aktivität:</td>
<td class="a">{LASTAK} Uhr</td>
</tr>
</tbody>
<tbody>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="header"><b> •<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="100%">
<tbody>
</tbody>
<tbody>
<tr>
<td colspan="2" class="header"><b> • <u>Spielerinformationen</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="53%" class="a"><img src="include/images/userdetails/squad.png" class="gradualfader" border="0" height="16" width="16" /> Mitglied im Team:</td>
<td width="47%">{teams}</td>
</tr>
<tr>
<td width="53%" class="a"><img src="include/images/userdetails/dart.png" class="gradualfader" border="0" height="16" width="16" /> Gewicht der Darts in Gramm:</td>
<td width="47%">{DARTSG}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/bullet.png" class="gradualfader" border="0" height="16" width="16" /> Hersteller der Darts:</td>
<td>{DARTSH}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/180.png" class="gradualfader" border="0" height="16" width="16" /> Lieblings-Check-Zahl:</td>
<td>{LZAHL}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/club.png" class="gradualfader" border="0" height="16" width="16" /> Verein:</td>
<td>{VEREIN}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/wohnort.png" class="gradualfader" border="0" height="16" width="16" /> Name des Vereinslokals:</td>
<td>{VEREINL}</td>
</tr>
</tbody>
<tbody>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" valign="middle" colspan="2" class="header"><b> • <u>Persönliche Informationen </u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="53%" class="a"><img src="include/images/userdetails/hobby.png" class="gradualfader" border="0" height="16" width="16"> Hobbies:</td>
<td width="47%" rowspan="2"><textarea class="txarea" cols="18" rows="2" name="hobbies">{HOBBIES}</textarea></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/film.png" class="gradualfader" border="0" height="16" width="16"> Lieblings-Filme:</td>
<td rowspan="2"><textarea class="txarea" cols="18" rows="2" name="film">{FILM}</textarea></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/musik.png" class="gradualfader" border="0" height="16" width="16" /> Lieblings-Musik:</td>
<td rowspan="2"><textarea class="txarea" cols="18" rows="2" name="musik">{MUSIK}</textarea></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/trinken.png" alt="Getränk" width="16" height="16" border="0" class="gradualfader" /> Lieblings-Getränk:</td>
<td>{TRINKEN}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/essen.png" class="gradualfader" border="0" height="16" width="16"> Lieblings-Speise:</td>
<td>{ESSEN}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/sport.png" class="gradualfader" border="0" height="16" width="16" /> Lieblings-Sport:</td>
<td>{SPORT}</td>
</tr>
</tbody>
</table></td>
<td width="1%"> </td>
<td valign="top" width="52%"><table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="header"><b> • <u>Benutzerbild:</u></b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td align="left" class="gradualfader" height="247" width="120"><div align="center">{AVATA}</div></td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td colspan="2" class="header"><b> • <u>Specials</u></b></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/messanger.png" alt="Messanger" width="16" height="16" border="0" class="gradualfader" /> IM Messanger:</td>
<td><a href="javascript:void(0)" onClick="javascript:chatWith({UID},'{NAME}')">IM Fenster öffnen</a></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/gallery.png" alt="Gallery" width="16" height="16" border="0" class="gradualfader" /> Usergallerie:</td>
<td>{GALLERIE_EINTRAEGE} (<a href="index.php?user-usergallery-{UID}">ansehen)</a></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/book.png" alt="Gbook" width="16" height="16" border="0" class="gradualfader" /> Gästebuch:</td>
<td><a href="index.php?user-usergb-view-{UID}">Klicke hier!</a></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/mail.png" alt="Pmail" width="16" height="16" border="0" class="gradualfader" /> Private Mail:</td>
<td><a href="index.php?forum-privmsg-new=0&empfid={UID}">schreiben</a></td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td><span class="header"><b> • <u>Letzte Besucher </u></b></span></td>
</tr>
<tr>
<td>{LASTUSER} </td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td colspan="2"><span class="header"><b> • <u>Statistik </u></b></span></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/news.png" alt="Newstopic" width="16" height="16" border="0" class="gradualfader" /> Newstopics:</td>
<td>{NEWSTOPICS}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/news.gif" alt="Newsposts" width="16" height="16" border="0" class="gradualfader" /> Newsposts:</td>
<td>{NEWSPOSTS}</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" valign="middle" colspan="2" class="header"><b> • <u>Community</u></b></td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/jappy.png" class="gradualfader" border="0" height="16" width="16"> Jappy:</td>
<td class="a">{JAPPY}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/facebook.png" class="gradualfader" border="0" height="16" width="16"> Facebook:</td>
<td class="a">{FACEBOOK}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/wkw.png" class="gradualfader" border="0" height="16" width="16"> WkW:</td>
<td class="a">{WKW}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/studivz.png" class="gradualfader" border="0" height="16" width="16"> Studivz:</td>
<td class="a">{STUDIVZ}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/myspace.png" class="gradualfader" border="0" height="16" width="16"> MySpace:</td>
<td class="a">{MYSPACE}</td>
</tr>
<tr>
<td class="a"><img src="include/images/userdetails/youtube.png" class="gradualfader" border="0" height="16" width="16"> YouTube:</td>
<td class="a">{YOUTUBE}</td>
</tr><tr>
<td height="2" colspan="4"><div id="more_details" style="display:none"><table>{profilefields}</table></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br />
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
Schonmal Danke im Voraus!
humpti
Zuletzt modifiziert von humpti am 01.11.2011 - 06:48:20