jo hab nur grad volgendes problem mairu
Parse error: syntax error, unexpected $end in /www/htdocs/+++++++++++/include/contents/user/user_details.php on line 54
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = $menu->get(2);
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$avatar1 = '';
if ( file_exists($row['userbilder'])) {
$avatar1 = '<img src="'.$row['userbilder'].'" border="0">';
$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,
'TEAMBILD' => fileexists('include/images/userbilder/
'.$row['id'].'.jpg') ? '<img src="include/images/userbilder/
'.$row['id'].'.jpg" alt="'.$row['name'].'" info="'.$row['name'].'" />' : '',
);
$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);
$design->footer();
?> <<<<<------- diese da!!!! was is da falsch ???????????????????
so und bei der teams.php siehts wie folgt aus hab die codes gewechselt wie du das gesagt hast und das is bei rausgekommen
Parse error: syntax error, unexpected T_ELSE in /www/htdocs/+++++++/include/contents/teams.php on line 37
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
function show_members ($gid,$tpl) {
global $allgAr;
# icq team bild, hier die zahl aendern.
$teams_show_icq_pic = 7;
$tpl->out(1);
$class = 'Cnorm';
$q = "SELECT b.uid, a.icq, a.avatar, a.status, a.name, c.name as posi, staat FROM prefix_groupusers b LEFT JOIN prefix_user a ON a.id = b.uid LEFT JOIN prefix_groupfuncs c ON b.fid = c.id WHERE b.gid = ".$gid." ORDER BY c.pos ASC, a.name ASC";
$erg = db_query($q);
while($row = db_fetch_assoc($erg) ) {
$class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
$row['class'] = $class;
if ( $row['staat'] != '' ) {
$row['staat'] = '<img src="include/images/flags/'.$row['staat'].'" alt="" border="0">';
} else {
$row['staat'] = 'n/a';
}
$row['status'] = ($row['status']? 'aktiv' : 'inaktiv' );
if(!empty($row['icq'])){
$row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$row['icq'].'&action=add"><img src="http://wwp.icq.com/scripts/online.dll?icq='.$row['icq'].'&img='.$teams_show_icq_pic.'" valign="bottom" border="0"></a>';
} else {
$row['icq'] = 'n/a';
}
if($allgAr['teams_show_list']==1){
$row['avatar'] = fileexists('include/images/userbilder/
'.$row['id'].'.jpg') ? '<img src="include/images/userbilder/
'.$row['id'].'.jpg" alt="'.$row['name'].'" info="'.$row['name'].'" />' : 'n/a';
}
$tpl->set_ar_out($row,2);
} else { <---------diese da wäre nr 37
$tpl->set_ar_out($row,3);
}
}
$tpl->out(4);
}
Zuletzt modifiziert von kidkasi am 24.07.2007 - 17:43:46