Ich möchte gerne in der Loginbox nach dem einloggen einen "Profil anzeigen" Link haben, der dann das eigene Profil anzeigt. Ist das möglich? Habe es ürgendwie per Links versucht, aber jeder User hat ja seine user-details-ID
include/contents/login.php:
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } 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 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 ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Benutzername'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Noch nicht angemeldet?</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
include/templates/user/boxen_login.htm:
<table width="221" height="194" border="0" cellspacing="0" cellpadding="10" background="include/designs/test/Images/Kundenmenue.jpg"> <tr> <td align="left" valign="top"> <div class="login_kundenmenue_main"> <div class="login_kundenmenue_willkommen">Willkommen <b>{NAME}</b>!</div><br /> <div id="login_kundenmenue_nachrichten">{NACHRICHTEN}</div> <div id="login_kundenmenue_profil"><a class="box" href="index.php?user-8">{_lang_profil}</a></div> <div id="login_kundenmenue_logout"><a class="box" href="index.php?user-3">{_lang_logout}</a></div> <div id="login_kundenmenue_admin">{ADMIN}</div> </div> </td> </tr> </table> {EXPLODE} <table width="221" height="194" border="0" cellspacing="0" cellpadding="10" background="include/designs/test/Images/Kundenlogin.jpg"> <tr> <td width="221" height="194" align="left" valign="top"> <form method="POST"> <input id="login_benutzername" type="text" name="name" size="13" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="15"/><br /> <input id="login_passwort" type="password" size="13" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="pass"/><br /> <input type="hidden" name="wdlink" value="{wdlink}" /> <input id="login_button" type="submit" name="user_login_sub" value="Login"/> <div class="lost_passwort"><a href="index.php?user-remind">{_lang_forgottenpassword}?</a></div> <div class="regist">{regist}</div> </form> </td> </tr> </table>
MfG. Swamp