Ich check das nicht!
Regt mich das grad auf...
Neues Profilfeld in diesen Mod einfügen, kein Problem das krieg ich hin.. aber eine Abfrage aus anderen Modulen im Profil ausgeben lassen da kack mein Gehirn ab..
Wenn ich das über die profilfields.php mache, dann kann ich es ja nicht gezielt in der HTM darstellen.
Und hierzu sagt mein Kopf auch nur "waaaaas?" Dachte das wäre mit der Abfrage vorher schon gemacht.
Zitat
Die Abfrage muss halt noch passend in den Userdetails eingebunden und das Ergebnis ans Template ausgegeben werden.
<div id="dhtmltooltip"></div>
<div id="Profmen_1" style="width:100%px; display:;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td style="padding-left:11px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" ><a href="javascript:void(0);" onClick="toggleProfmen(1);"><span class="hoch"> Daten</span></a></td>
<td align="left" valign="bottom"><a href="javascript:void(0);" onClick="toggleProfmen(2);"><span class="runter"> Charakter</span></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="30">
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="500" valign="top" style="padding-left:30px;">
<table width="500" cellpadding="2" cellspacing="1" border="0" class="derrand">
<tr>
<td colspan="2" class="hintergrundhead" height="20">Daten zu : {NAME}</td>
</tr>
<tr class="inhalthintergrund">
<td width="250" height="25"> <img src="include/images/profilmod/user.png" border="0" alt="nick" /> Name</td>
<td width="250">{NAME} {GESCHLECHT} </td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/user.png" border="0" alt="nick" /> Status</td>
<td>{ONLINE}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/house.png" border="0" alt="nick" /> Wohnort | Land </td>
<td>{WOHNORT} {STAAT}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/cake.png" border="0" alt="nick" /> Geburtstag | Alter</td>
<td>{GEBDATUM} {ALTER} </td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/bild.png" border="0" alt="nick" /> Bilderalbum</td>
<td><span class="boxes" style="padding-right:5px;">{GALLERIE_EINTRAEGE}</span>(<a href="index.php?user-usergallery-{UID}">ansehen</a>)</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/star.png" border="0" alt="nick" /> Anwesendheitspunkte</td>
<td>{AWP}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/reg_seid.png" border="0" alt="nick" /> Registriert seid:</td>
<td>{JOINED}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/last_login.png" border="0" alt="nick" /> Letzter Login</td>
<td>{LASTAK} Uhr</td>
</tr>
</table>
<br />
</td>
<td width="150" align="center" valign="top">
<div class="inhalthintergrund" style="width:120px; padding:5px;">{AVATA}</div>
<br />
<div class="inhalthintergrund2" style="width:120px; padding:5px;">{USERTITEL}</div>
<br />
<div style="width:120px;" align="center">
<a href="index.php?forum-privmsg-new=0&empfid={UID}"><img src="/include/images/profilmod/pm.png" border="0" /></a>
{FACEBOOK}
</div>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="500" valign="top" style="padding-left:30px;">
<table width="500" cellpadding="2" cellspacing="1" border="0" class="derrand">
<tr>
<td colspan="2" class="hintergrundhead" height="20">Forumdaten von : {NAME}</td>
</tr>
<tr class="inhalthintergrund">
<td width="250" height="25"> <img src="include/images/profilmod/toppix.png" border="0" alt="toppic" /> Topics</td>
<td width="250">{TOPICS} von {TOPICSGE}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/page.png" border="0" alt="forum" /> Posts</td>
<td>{POSTS} von {POSTSGE}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/comment.png" border="0" alt="comment" /> Shoutbox</td>
<td>{SHOUTU} von {SHOUTGE}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/news.png" border="0" alt="nick" /> PM gesendet</td>
<td>{PMGESENDET} von {PMGE}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> <img src="include/images/profilmod/news.png" border="0" alt="nick" /> PM eingang</td>
<td>{PMGESENDET}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" style="padding-left:30px; padding-right:35px;">
<table width="500" cellpadding="2" cellspacing="1" border="0" class="derrand">
<tr>
<td height="20" class="hintergrundhead">Forumsignatur von : {NAME}</td>
</tr>
<tr class="inhalthintergrund">
<td height="25" valign="middle"><div style="padding:10px;">{SIGNATUR}</div></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="30">
</td>
</tr>
</table>
</div>
<div id="Profmen_2" style="width:100%; display:none;">
<table width="550" cellpadding="0" cellspacing="0" border="0">
<tr><td style="padding-left:11px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="bottom"><a href="javascript:void(0);" onClick="toggleProfmen(1);"><span class="runter"> Daten</span></a></td>
<td align="left"><a href="javascript:void(0);" onClick="toggleProfmen(2);"><span class="hoch"> Charakter</span></a></td>
</tr>
</table>
</td></tr>
</table>
<table width="550" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="30">
</td>
</tr>
</table>
<table width="550" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="550" valign="top" style="padding-left:30px;"><table width="550" cellpadding="1" cellspacing="1" border="0" class="derrand">
<tr class="inhalthintergrund"></tr>
<tr>
<td width="225" height="20" class="hintergrundhead" style="padding-left:10px;">Klasse</td>
<td width="200" height="20" class="hintergrundhead" style="padding-left:10px;">Name</td>
<td width="125" height="20" class="hintergrundhead" align="center">Level</td>
</tr>
<tr class="inhalthintergrund">
<td width="225" height="25"> {CHAR1}</td>
<td width="200" height="25"> {CHARNAME1}</td>
<td width="125" valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL1}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL1}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR2}</td>
<td height="25"> {CHARNAME2}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL2}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL2}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR3}</td>
<td height="25"> {CHARNAME3}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL3}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL3}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR4}</td>
<td height="25"> {CHARNAME4}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL4}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL4}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR5}</td>
<td height="25"> {CHARNAME5}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL5}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL5}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR6}</td>
<td height="25"> {CHARNAME6}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL6}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL6}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR7}</td>
<td height="25"> {CHARNAME7}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL7}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL7}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR8}</td>
<td height="25"> {CHARNAME8}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL8}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL8}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR9}</td>
<td height="25"> {CHARNAME9}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL9}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL9}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR10}</td>
<td height="25"> {CHARNAME10}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL10}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL10}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR11}</td>
<td height="25"> {CHARNAME11}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL11}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL11}</span></div>
</div></td>
</tr>
</table></td>
</tr>
<tr class="inhalthintergrund">
<td height="25"> {CHAR12}</td>
<td height="25"> {CHARNAME12}</td>
<td valign="bottom" background="include/images/profilmod/skala.png"><table border="0" cellpadding="0" cellspacing="0" width="125" height="12" align="left">
<tr class="balkenhintergrund">
<td height="10" valign="middle"><div style="min-width: 1px; width:{LEVEL12}px; height:10px; background:#000 url(include/images/profilmod/skill_balken.png) repeat scroll 0% 0% ; text-align: center">
<div style="width:125px; height:8px; text-align:center"><span class="skillangabe">Lvl {LEVEL12}</span></div>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="34"> </td>
</tr>
</table>
</div>
<br />
<div align="left">
<a href="javascript:history.back(1)"><img src="include/images/profilmod/zuruck.png" border="0" alt="zuruck"/></a>
<div class="profcopy">Profilmod v2.2 & Copyright by: <a href="http://www.pintura-arts.de" target="_blank">Pintura-Arts</a></div>
</div>
<?php
# Copyright Original Dateien und Einträge by: Manuel Staechele
# Support: www.ilch.de
# Profil Mod by: orsnipe
# Profil Mod Code by: orsnipe, IRvD, Lord|Schirmer & www.ilch.de/forum
# Profil Mod Copyright by: www.capfx.de
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$user_name = $row['name'];
$abf2 = "SELECT * FROM prefix_online";
$erg2 = db_query($abf2);
$row2 = db_fetch_assoc($erg2);
$recht = $row['recht'];
$abf3 = "SELECT * FROM prefix_grundrechte WHERE id = ".$recht."";
$erg3 = db_query($abf3);
$row3 = db_fetch_assoc($erg3);
$abf4 = "SELECT COUNT(*) AS forumtopics FROM prefix_topics WHERE erst = '$user_name'";
$erg4 = db_query($abf4);
$row4 = db_fetch_assoc($erg4);
$abf5 = "SELECT COUNT(*) AS newstopics FROM prefix_news WHERE user_id = ".$uid."";
$erg5 = db_query($abf5);
$row5 = db_fetch_assoc($erg5);
$abf6 = "SELECT COUNT(*) AS newsposts FROM prefix_koms WHERE name = '$user_name'";
$erg6 = db_query($abf6);
$row6 = db_fetch_assoc($erg6);
$abf7 = "SELECT COUNT(*) AS newsposts FROM prefix_koms WHERE name = '$user_name'";
$erg7 = db_query($abf7);
$row7 = db_fetch_assoc($erg7);
$abf8 = "SELECT * FROM prefix_warstats";
$erg8 = db_query($abf8);
$row8 = db_fetch_assoc($erg8);
$abf9 = "SELECT COUNT(*) AS gallery_eintraege FROM prefix_usergallery WHERE uid = ".$uid."";
$erg9 = db_query($abf9);
$row9 = db_fetch_assoc($erg9);
$erg = db_query('SELECT COUNT(*) FROM `prefix_warmember` a INNER JOIN `prefix_wars` b ON a.wid = b.id AND a.aktion = 1 AND b.status = 3 WHERE a.uid = ' . $uid);
$awp = db_result($erg);
if(!empty($row['awp'])){
$awp = $row['awp'];
} else {
$awp = "<span style=\"font-size:9px\"><i>Keine Angabe</i></span>";
}
if($row9['gallery_eintraege'] == 0){
$gallery_eintraege = "<span style=\"font-size:9px\"><i>keine Bilder</i></span>";
}elseif($row9['gallery_eintraege'] == 1){
$gallery_eintraege = "1 Bild vorhanden";
} else {
$gallery_eintraege = $row9['gallery_eintraege']." Bilder";}
if(!empty($row['email']) && $row['opt_mail'] == 1){
$email = "<a href=\"mailto:".$row['email']."\"><img src=\"include/images/profilmod/email.png\" border=\"0\" /></a>";
}elseif(!empty($row['email']) && $row['opt_mail'] == 0){
$email = "<img src=\"include/images/profilmod/email.png\" border=\"0\" /></a>";
} else {
$email = "<img src=\"include/images/profilmod/keine_email.png\" border=\"0\" />";}
if(!empty($row['homepage'])){
$homepage = "<a href=\"".$row['homepage']."\" target=\"_blank\"><img src=\"include/images/icons/website_icon.png\" border=\"0\" /></a>";
} else {
$homepage = "<img src=\"include/images/icons/no_website_icon.png\" border=\"0\" /> <span style=\"font-size:9px\"><i>Keine Angabe</i></span>";}
if(!empty($row['facebook'])){
$facebook = "<a href=\"".$row['facebook']."\" target=\"_blank\"><img src=\"include/images/profilmod/facebook.png\" border=\"0\" /></a>";
} else {
$facebook = "";}
if(!empty($row['staat'])){
$staat = "<img src=\"include/images/flags/".$row['staat']."\" border=\"0\" />";
} else {
$staat = "<img src=\"include/images/flags/na.gif\" border=\"0\" />";}
$row['koms'] = db_count_query('SELECT COUNT(id) FROM `prefix_koms` WHERE name="'.$row['name'].'"');
$pmge = db_result(db_query("SELECT COUNT(ID) FROM `prefix_pm`"),0);
$pmu = db_result(db_query("SELECT COUNT(ID) FROM prefix_pm WHERE sid = '".$uid."'"),0);
$postsge = db_result(db_query("SELECT COUNT(ID) FROM `prefix_posts`"),0);
$postsu = db_result(db_query("SELECT COUNT(id) FROM `prefix_posts` WHERE `erst` = '".$row['name']."'"),0);
####################################################
$pollge = db_result(db_query("SELECT COUNT(poll_id) FROM prefix_poll WHERE recht = '2' "),0);
$pollu = db_result(db_query("SELECT COUNT(*) FROM prefix_poll WHERE recht = '2' AND text REGEXP '#".$uid."(#|$)'"),0);
$shoutge = db_result(db_query("SELECT COUNT(id) FROM prefix_shoutbox"),0);
$shoutu = db_result(db_query("SELECT COUNT(id) FROM prefix_shoutbox WHERE nickname = '".$row['name']."'"),0);
####################################################
if(!empty($row['posten'])){
$posten = "<img src=\"include/images/profilmod/posten/".$row['posten']."\" border=\"0\" />";
} else {
$posten = "<img src=\"include/images/profilmod/posten/na.png\" border=\"0\" />";
}
$avatar = '';
if (file_exists($row['avatar'])) {
$avatar = '<img src="'.$row['avatar'].'" align="center" border="0" width="120">';
} elseif ($row['avatar'] == "" && $row['geschlecht'] == "1") {
$avatar = '<img src="include/images/avatars/gast.png" align="center" border="0" width="120">';
} elseif ($row['avatar'] == "" && $row['geschlecht'] == "2") {
$avatar = '<img src="include/images/avatars/gast.png" align="center" border="0" width="120">';
} else {
$avatar = '<img src="include/images/avatars/gast.png" align="center" border="0" width="120">';
}
$regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist'];
$regday = round($regsek / 86400);
$postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) );
$usertitel = $row3['name'];
if($row2['uid'] == $uid){
$online = '<b><span style="color:#009900;">online</span></b>';
}else{
$online = "<b>offline</b>";}
if($row['geschlecht'] == 1){
$geschlecht = '<img src="include/images/profilmod/male.png" height="12" border="0" />';
}elseif($row['geschlecht'] == 2){
$geschlecht = '<img src="include/images/profilmod/female.png" height="12" border="0" />';
}else{
$geschlecht = "";}
if($row['gebdatum'] !== "0000-00-00"){
$gebdatum = date('d.m.Y',strtotime($row['gebdatum']));
$tag = date('d',strtotime($row['gebdatum']));
$monat = date('m',strtotime($row['gebdatum']));
$jahr = date('Y',strtotime($row['gebdatum']));
$jetzt = mktime(0,0,0,date("m"),date("d"),date("Y"));
$geburtstag = mktime(0,0,0,$monat,$tag,$jahr);
$alter = "(".intval(($jetzt - $geburtstag) / (3600 * 24 * 365)).")";
} else {
$gebdatum = "<span style=\"font-size:9px\"><i>Kein Datum angegeben</i></span>";
$alter = "<span style=\"font-size:9px\"><i>Kein Alter angegeben</i></span>";}
function Sternzeichen($t,$m,$j) {
$tag = date("d",mktime(0,0,0,$m,$t,$j));
$monat = date("n",mktime(0,0,0,$m,$t,$j));
if ($tag > 20 && $monat == 3 || $tag < 21 && $monat == 4) {
$zeichen = "Widder";}
if ($tag > 20 && $monat == 4 || $tag < 21 && $monat == 5) {
$zeichen = "Stier";}
if ($tag > 20 && $monat == 5 || $tag < 22 && $monat == 6) {
$zeichen = "Zwillinge";}
if ($tag > 21 && $monat == 6 || $tag < 23 && $monat == 7) {
$zeichen = "Krebs";}
if ($tag > 22 && $monat == 7 || $tag < 24 && $monat == 8) {
$zeichen = "Löwe";}
if ($tag > 23 && $monat == 8 || $tag < 24 && $monat == 9) {
$zeichen = "Jungfrau";}
if ($tag > 23 && $monat == 9 || $tag < 24 && $monat == 10) {
$zeichen = "Waage";}
if ($tag > 23 && $monat == 10 || $tag < 23 && $monat == 11) {
$zeichen = "Skorpion";}
if ($tag > 22 && $monat == 11 || $tag < 22 && $monat == 12) {
$zeichen = "Schütze";}
if ($tag > 21 && $monat == 12 || $tag < 21 && $monat == 1) {
$zeichen = "Steinbock";}
if ($tag > 20 && $monat == 1 || $tag < 20 && $monat == 2) {
$zeichen = "Wassermann";}
if ($tag > 19 && $monat == 2 || $tag < 21 && $monat == 3) {
$zeichen = "Fische";}
return "$zeichen";}
if($row['gebdatum'] !== "0000-00-00"){
$sternzeichen = Sternzeichen($tag,$monat,$jahr);
} else {
$sternzeichen = "<span style=\"font-size:9px\"><i>Unbekannt</i></span>";
}
if(!empty($row['wohnort'])){
$wohnort = $row['wohnort'];
} else {
$wohnort = "<span style=\"font-size:9px\"><i>Keine Angabe</i></span>";
}
$string = $row['char1'];
$search = array("Ae", "Oe", "Ue", "ae", "oe", "ue", "ss", ".png");
$replace = array("Ä", "Ö", "Ü", "ä", "ö", "ü", "ss", "");
if(!empty($row['char1'])){
$char1 = "<img src=\"include/images/profilmod/char/".$row['char1']."\" height=\"20\" border=\"0\" align=\"absmiddle\" /> ".str_replace($search, $replace, $string);
} else {
$char1 = "<span style=\"font-size:9px\"><i>Keine Klasse angegeben</i></span>";
}
#
##
###
####Charakter Charnamen
if(!empty($row['charname1'])){
$charname1 = $row['charname1'];
} else {
$charname1 = "<span style=\"font-size:8px\"><i>Keine Namensangabe</i></span>";
}
#
##
###
####Charakter Level
if(!empty($row['level1'])){
$level1 = $row['level1'];
} else {
$level1 = "1";
}
#
##
###
####Erfahrung/NächsterRang
if($row['posts'] != 0)
{
$postar = array(1,5,25,50,75,100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,625,650,675,700,725,750,775,800,2500);
$postarnames = array(Level_1,Level_2,Level_3,Level_4,Level_5,Level_6,Level_7,Level_8,Level_9,Level_10,Level_11,Level_12,Level_13,Level_14,Level_15,Level_16,Level_17,Level_18,Level_19,Level_20,Level_21,Level_22,Level_23,Level_24,Level_25,Level_26,Level_27,Level_28,Level_29,Level_30,Level_31,Level_32,Level_33,Level_34,Level_35);
$i=0;
while($postar[$i] < $row['posts'])
{
$next = round(100/($postar[$i+1]-$postar[$i])*($row['posts']-$postar[$i]),2);
if($postar[$i+1] != $row['posts']) { $pointsleft = $postar[$i+1] - $row['posts']; $nextrank = $postarnames[$i+1]; } else { $pointsleft = $postar[$i+2] - $row['posts']; $nextrank = $postarnames[$i+2]; }
$i++;
}
}
else
{
$next = "0%";
}
$erfahrung = round (100/350*$row['posts'],2);
#### ende
###
##
#
?>
<?php
# Copyright Original Dateien und Einträge by: Manuel Staechele
# Support: www.ilch.de
# Profil Mod by: orsnipe
# Profil Mod Code by: orsnipe, IRvD, Lord|Schirmer & www.ilch.de/forum
# Profil Mod Copyright by: www.capfx.de
defined ('main') or die ( 'no direct access' );
$uid = intval($menu->get(2));
######### Zufalls Gallerybild
$randbild = '';
$res = db_query('SELECT id, endung FROM `prefix_usergallery` WHERE `uid` = "'.$uid.'" ORDER BY rand() LIMIT 5');
if (db_num_rows($res))
{
while ($row = db_fetch_assoc($res))
{
$randbild .= '<a target="_new" href="/include/images/usergallery/img_'.$row['id'].'.'.$row['endung'].'"><img class="bilderrahmen" src="include/images/usergallery/img_thumb_'.$row['id'].'.'.$row['endung'].'" border="2" width="80" height="60"></a> ';
}
}
else
{
$randbild = '<img src="include/images/profilmod/no_usergallery.jpg" border="0">';
}
########## Ende
#Hits hochzählen
if ($_SESSION['authid'] != $uid and !isset($_SESSION['visited_profils'][$uid])) {
$_SESSION['visited_profils'][$uid] = true;
db_query("UPDATE prefix_user SET hits = hits + 1 WHERE id = ".$uid);
}
#Ende
#### punkte
if ( $row['posts'] != 0 AND userbwpoints($row['erstid']) > 0 ) {
$row['USERPOINTS'] = 'Punkte: '.userbwpoints($row['erstid']).'<br />';
} else {
$row['USERPOINTS'] = '';
}
#### ENDE
include('user_infos.php');
$abf8 = "SELECT * FROM prefix_online WHERE uid = '".$uid."'";
$erg8 = db_query($abf8);
$row8 = db_fetch_assoc($erg8);
if(isset($row8['uid'])){
$online = '<font color="#009900">online</font>';
}else{
$online = '<b>offline</b>';
}
$ar = array (
'NAME' => $row['name'],
'HITS' => $row['hits'],
'JOINED' => date('d.m.Y',$row['regist']),
'LASTAK' => date('d.m.Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'AUSGABE' => $ausgabe,
'AUSGABEN' => $ausgaben,
'RANDBILD' => $randbild,
'UID' => $uid,
'RANG' => userrang ($row['posts'],$uid),
'RANGGRAFIK' => $row['rang'],
'AVATA' => $avatar,
'ONLINE' => $online,
'USERTITEL' => $usertitel,
'HOMEPAGE' => $homepage,
'GESCHLECHT' => $geschlecht,
'GEBDATUM' => $gebdatum,
'ALTER' => $alter,
'WOHNORT' => $wohnort,
'AWP' => $awp,
'LASTUSER' => last_user($uid),
'LOGINS' => $row['logins'],
### Skills ###
'SKILLS' => $row['SKILLS'],
'CHAR1' => $char1,
'CHAR2' => $char2,
'CHAR3' => $char3,
'CHAR4' => $char4,
'CHAR5' => $char5,
'CHAR6' => $char6,
'CHAR7' => $char7,
'CHAR8' => $char8,
'CHAR9' => $char9,
'CHAR10' => $char10,
'CHAR11' => $char11,
'CHAR12' => $char12,
'CHAR13' => $char13,
'CHAR14' => $char14,
'CHAR15' => $char15,
'CHARNAME1' => $charname1,
'CHARNAME2' => $charname2,
'CHARNAME3' => $charname3,
'CHARNAME4' => $charname4,
'CHARNAME5' => $charname5,
'CHARNAME6' => $charname6,
'CHARNAME7' => $charname7,
'CHARNAME8' => $charname8,
'CHARNAME9' => $charname9,
'CHARNAME10' => $charname10,
'CHARNAME11' => $charname11,
'CHARNAME12' => $charname12,
'CHARNAME13' => $charname13,
'CHARNAME14' => $charname14,
'CHARNAME15' => $charname15,
'LEVEL1' => $level1,
'LEVEL2' => $level2,
'LEVEL3' => $level3,
'LEVEL4' => $level4,
'LEVEL5' => $level5,
'LEVEL6' => $level6,
'LEVEL7' => $level7,
'LEVEL8' => $level8,
'LEVEL9' => $level9,
'LEVEL10' => $level10,
'LEVEL11' => $level11,
'LEVEL12' => $level12,
'LEVEL13' => $level13,
'LEVEL14' => $level14,
'LEVEL15' => $level15,
'CHARAKTER1' => $charakter1,
'POSTS' => $row['posts'],
'NEWSPOSTS' => $row6['newsposts'],
'POSTPDAY' => $postpday,
'FORUMTOPICS' => $row4['forumtopics'],
'NEWSTOPICS' => $row5['newstopics'],
'FORUMPOSTS' => $row7['forumposts'],
'KOMS' =>$row['koms'],
'PMGESENDET' => @db_result(db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE `sid` = '".$uid."'"),0),
'PMGE' => @db_result(db_query("SELECT COUNT(ID) FROM `prefix_pm`"),0),
'POSTSGE' => @db_result(db_query("SELECT COUNT(ID) FROM `prefix_posts`"),0),
'POSTSU' => @db_result(db_query("SELECT COUNT(id) FROM `prefix_posts` WHERE `erst` = '".$row['name']."'"),0),
'NEWS' => @db_result(db_query("SELECT COUNT(news_id) FROM `prefix_news` WHERE `user_id` = '".$uid."'"),0),
'NEWSGE' => db_result(db_query("SELECT COUNT(news_id) FROM `prefix_news`"),0),
'TOPICS' => @db_result(db_query("SELECT COUNT(id) FROM `prefix_topics` WHERE `erst` = '".$row['name']."'"),0),
'TOPICSGE' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_topics`"),0),
'KOMGE' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_koms`"),0),
'KOMU' => db_result(db_query("SELECT COUNT(id) FROM prefix_koms WHERE name='".$row['name']."'"),0),
'POLLGE' => db_result(db_query("SELECT COUNT(poll_id) FROM prefix_poll WHERE recht = '2' "),0),
'POLLU' => db_result(db_query("SELECT COUNT(*) FROM prefix_poll WHERE recht = '2' AND text REGEXP '#".$uid."(#|$)'"),0),
'SHOUTGE' => db_result(db_query("SELECT COUNT(id) FROM prefix_shoutbox"),0),
'SHOUTU' => db_result(db_query("SELECT COUNT(id) FROM prefix_shoutbox WHERE nickname = '".$row['name']."'"),0),
'PMGES' => @db_result($pmGes,0),
'ANZBAL' => '<img src="/include/images/vote/votebalkenbox.gif" height="5" width="'.@round($pmGes/$pmGes *267).'" align="left" alt="">',
##############################
'NEXT' => $next,
'NEXTRANK' => $nextrank,
'POINTSLEFT' => $pointsleft,
'ERFAHRUNG' => $erfahrung,
'SIGNATUR' => bbcode($row['sig']),
'STAAT' => $staat,
'STERNZEICHEN' => $sternzeichen,
'GALLERIE_EINTRAEGE' => $gallery_eintraege,
'FACEBOOK' => $facebook,
);
$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();
?>
So hab ich es.. und im Feld Anwesenheitspunkte kommt "Keine Angabe"