Ich wollte meine Login Box erweitern also das noch ausser Nachrichten etc.... auch Profil anzeigen angezeigt wird, also hier mal meine boxes login.php
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $name = ($allgAr['title']); $gallery = ($allgAr['forum_usergallery']); $gb = ($allgAr['forum_usergb']); $profil = ($allgAr['user-details']); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if (!is_admin()) { $tpl->set ( 'KONFIGURATION', '' ); } else { $tpl->set ( 'KONFIGURATION', '■ <a class="box" href="admin.php?allg">Einstellungen</a>' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NICKNAME', $_SESSION['authname'] ); $tpl->set ( 'TITLE', $name ); if ($gallery == '1'){ $tpl->set ('USERGALLERY', '■ <a href="index.php?user-usergallery">User Gallery</a><br />'); }else{ $tpl->set ('USERGALLERY', ''); } $abf1 = 'SELECT id, name FROM prefix_user WHERE name = "'.$_SESSION['authname'].'"'; $erg1 = db_query($abf1); $row1 = db_fetch_object($erg1); if ($gb == '1'){ $tpl->set ('USERGAESTEBUCH', '■ <a href="index.php?user-usergb-view-'.$row1->id.'">User Gästebuch</a><br />'); }else{ $tpl->set ('USERGAESTEBUCH', ''); } if ($profil == '1'){ $tpl->set ('USERPROFIL', '■ <a href="index.php?user-details-'.$row1->id.'">Profil anzeigen</a><br />'); }else{ $tpl->set ('USERPROFIL', ''); } $tpl->set ( 'POPUP', check_for_pm_popup() ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
habe dort schon etwas rein gemacht aber es funktioniert noch net so wie ich das will also mit {USERPROFIL}
MfG freak
verwendete ilchClan Version: 1.1