ok hier die user_details.php:
<?php
# Copyright by: Manuel
# 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)) {
$row = db_fetch_assoc($erg);
$avatar = '';
if ( file_exists($row['avatar'])) {
$avatar = '<img src="'.$row['avatar'].'" border="0">';
}
$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 ) );
$ar = array (
'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,
);
$title = $allgAr['title'].' :: Users :: Details von '.$row['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Details von '.$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);
} 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 />';
}
$abf = 'SELECT ua.id as id, ua.time as time, a.name as award, a.bild as bild, ua.text as text FROM `prefix_awards` a LEFT JOIN `prefix_userawards` ua ON a.id=ua.awardid LEFT JOIN `prefix_user` u ON ua.uid=u.id where a.wofur ="Orden" and ua.uid ="'.$uid.'" order by time desc';
$erg = db_query($abf);
while ($row = db_fetch_object($erg)) {
if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; }
$ar = array ( 'ONAME' => $row->award,
'CLASS' => $class,
'OBILD' => $row->bild,
'ODATE' => date('d.m.Y',$row->time),
'OTEXT' => $row->text
);
$tpl->set_ar_out($ar,1);
}
$design->footer();
?>
die userdetail.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>
<table width="90%" border="0" cellpadding="3" cellspacing="1" class="border">
<tr class="Chead" >
<th align="center" height="30" width="30%">Orden</th>
<th align="center" width="50%">Begründung</th>
<th width="20%">Auszeichnungsdatum</th>
</tr>{EXPLODE}<tr class="{CLASS}">
<td>{ONAME}<br><img src="/include/images/awards/27klein.jpg" border="0"></td>
<td align="center"><font style="font-size: 10px">{OTEXT}</font></td>
<td>{ODATE}</td>
</tr>{EXPLODE}
</table>
<br />
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
index_forum.html - hier kommt der footer her.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{TITLE}</title>
<link rel="stylesheet" type="text/css" href="include/designs/mar_BlackLabel/style.css">
<link rel="stylesheet" type="text/css" href="include/designs/mar_BlackLabel/tabcontent.css" />
<script type="text/javascript" src="include/includes/js/BBCodeGlobal.js"></script>
<script type="text/javascript" src="include/designs/mar_BlackLabel/tabcontent.js">
/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>
<h1><a name="anfang"></a></h1>
<div align="center"><div id="all">
<!-- BREAK //-->
<table id="headbereich" cellpadding="0" cellspacing="0" style="margin-top: 20px">
<tr>
<td id="img01" align="left" valign="top">
<div id="img1_login">{_boxes_logincs}</div>
</td>
<td id="img02" align="left" valign="top">
<div id="pettabs" class="indentmenu">
<ul>
<li><a href="#" rel="dog1">LastEntries</a></li>
<li><a href="#" rel="dog2">TopTopic</a></li>
<li><a href="#" rel="dog3">TopPoster</a></li>
</ul>
<br style="clear: left" />
</div>
<div style="border:0px ; width:222px; height: 189px; padding: 5px; margin-bottom:1em">
<div id="dog1" class="tabcontent">
{_boxes_lastforumbl}
</div>
<div id="dog2" class="tabcontent">
{_boxes_toptopicbl}
</div>
<div id="dog3" class="tabcontent">
{_boxes_topmemberbl}
</div>
</div>
<script type="text/javascript">
var mypets=new ddtabcontent("pettabs")
mypets.setpersist(true)
mypets.setselectedClassTarget("link")
mypets.init(4000)
</script>
</div>
</td>
<td id="img03" align="left" valign="top">
<div id="buttonsmenu"><a href="index.php" title="Home" onmouseover="document.getElementById('indexbutton').src='include/designs/mar_BlackLabel/bilder/home_a.png';" onmouseout="document.getElementById('indexbutton').src='include/designs/mar_BlackLabel/bilder/home.png';"><img src="include/designs/mar_BlackLabel/bilder/home.png" alt="Home" border="0" id="indexbutton" /></a>
<a href="?forum" title="Forum" onmouseover="document.getElementById('forumbutton').src='include/designs/mar_BlackLabel/bilder/forum_a.png';" onmouseout="document.getElementById('forumbutton').src='include/designs/mar_BlackLabel/bilder/forum.png';"><img src="include/designs/mar_BlackLabel/bilder/forum.png" alt="Forum" border="0" id="forumbutton" /></a>
<a href="?teams" title="Organisation" onmouseover="document.getElementById('newsbutton').src='include/designs/mar_BlackLabel/bilder/orga_a.png';" onmouseout="document.getElementById('newsbutton').src='include/designs/mar_BlackLabel/bilder/orga.png';"><img src="include/designs/mar_BlackLabel/bilder/orga.png" alt="Organisation" border="0" id="newsbutton" /></a>
<a href="?gallery" title="Gallery" onmouseover="document.getElementById('gbutton').src='include/designs/mar_BlackLabel/bilder/gallery_a.png';" onmouseout="document.getElementById('gbutton').src='include/designs/mar_BlackLabel/bilder/gallery.png';"><img src="include/designs/mar_BlackLabel/bilder/gallery.png" alt="Gallery" border="0" id="gbutton" /></a>
<a href="?contact" title="Contact" onmouseover="document.getElementById('cbutton').src='include/designs/mar_BlackLabel/bilder/contact_a.png';" onmouseout="document.getElementById('cbutton').src='include/designs/mar_BlackLabel/bilder/contact.png';"><img src="include/designs/mar_BlackLabel/bilder/contact.png" alt="Contact" border="0" id="cbutton" /></a></div>
<div id="buttonsfont">Home Forum Organisation Gallery Contact</div>
</td>
</tr>
</table>
<div id="img04forum" align="left" valign="top" >
</div>
<div id="contentblforum">
<div id="left_col">
{_list_menunr1@
<div id="menu_heading_left" >
<div id="menu_heading_left_font">%1</div>
</div>
<div id="menuleftmiddle" align="left" valign="top" class="menuone">%2</div>
<div id="menuleftbottom" align="left" valign="bottom" ></div>
}
</div>
<div id="topmenuforum" align="left" valign="top" ><font><b> ∇ </b>{HMENU}</font>
<div id="main_colforum">{EXPLODE}</div>
</div>
<br style="clear: both;" />
</div>
<div id="blfootforum" align="left" valign="top" >
<div id="footerfont1"><a href="index.php" class="footermenu">Home</a> ∼ <a href="?forum" class="footermenu">Forum</a> ∼ <a href="?news" class="footermenu">News</a> ∼ <a href="?contact" class="footermenu">Contact</a> ∼ <a href="?impressum" class="footermenu">Impressum</a><span class="footerstatic"> | Statistik: </span>{_boxes_statisticbl}</div>
<div id="footerfont2"><span class="footerstatic">Alle Rechte vorbehalten | {SITENAME} | <a href="http://www.maretz.eu/" title="Maretz.eu - Digital Art" class="footermenu">Blacklabel © maretz.eu</a></span></div>
<div id="footerfont3"><a href="#anfang" title="Top Page"><img src="include/designs/mar_BlackLabel/bilder/top.png" width="60" height="60" border="0"></a><a onclick="location.reload();" title="Seite neu laden"><img src="include/designs/mar_BlackLabel/bilder/reload.png" width="60" height="60" border="0"></a></div>
<div id="footerfont4"><img src="include/designs/mar_BlackLabel/bilder/brand.png" width="118" height="65" border="0"></div>
</div>
</body>
</html>
<!-- {_list_DDDmenupoint@<strong><big>·</big></strong><a %1 class="box" href="%2">%3</a><br />}
{_list_hmenupoint@<li><a target="%1" class="box" href="%2">%3</a>|</li>|<br />|</ul></li>}
{_list_hmenubegi@<ul>}
{_list_hmenuende@</ul>}
{_list_vmenupoint@<a target="%1" class="menu" href="%2">%3</a>}
{_list_vmenubegi@}
{_list_vmenuende@}//-->
Zuletzt modifiziert von Bastifantastie am 27.03.2011 - 14:26:50