wo muss ich {_boxes_login} einfügen und was muss ich in die login.php Datei rein schreiben?
Hier meinen Quelltext von meiner Login Box:
<div class="login-box"> <form method="post" name="login" id="login"> <label for="mod_login_username" class="login-box_username"> <span>Username</span> <input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" name="name" size="13" value="Username" onfocus="if (value == 'Username') {value = ''}" onblur="if (value == '') {value = 'Username'}" /> </label> <br /> <label for="mod_login_password" class="login-box_password"> <span>Passwort</span> <input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password" value="Passwort" onfocus="if (value == 'Passwort') {value = ''}" onblur="if (value == '') {value = 'Passwort'}" /> </label> <br /> <label for="mod_login_remember"> <input type="hidden" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" /> </label> <br /> <input type="submit" name="Submit" class="button" value="" /> <br /> <div class="login-box-links"> <a href="index.php?user-remind">Passwort vergessen?</a> <br /> <a href="index.php?user-regist">Jetzt Registrieren!</a> <br /> </div> <input type="hidden" name="option" value="com_user" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="return" value="L2pvb21sYS1leHRlbnNpb25zL2xvZ2luLWZvcm0tc2xpZGVy" /> <input type="hidden" name="7f6e9fa9745c454c627138d1423e3d5d" value="1" /> </form> </div>
Meine login.php sieht so aus:
<?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 class="box" 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 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 ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'Passwort'; } $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); ?>
Ich habe leider so gut wie keine Erfahrung mit PHP
Könnte vllt. jemand das so um schreiben das es so aussieht:
Der jetzige Quellcode von dieser Box lautet so:
<div class="login-box"> <form method="post" name="login" id="login"> <label for="mod_login_username" class="login-box_username"> <span>Username</span> <input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" name="name" size="13" value="Username" onfocus="if (value == 'Username') {value = ''}" onblur="if (value == '') {value = 'Username'}" /> </label> <br /> <label for="mod_login_password" class="login-box_password"> <span>Passwort</span> <input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password" value="Passwort" onfocus="if (value == 'Passwort') {value = ''}" onblur="if (value == '') {value = 'Passwort'}" /> </label> <br /> <label for="mod_login_remember"> <input type="hidden" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" /> </label> <br /> <input type="submit" name="Submit" class="button" value="" /> <br /> <div class="login-box-links"> <a href="index.php?user-remind">Passwort vergessen?</a> <br /> <a href="index.php?user-regist">Jetzt Registrieren!</a> <br /> </div> <input type="hidden" name="option" value="com_user" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="return" value="L2pvb21sYS1leHRlbnNpb25zL2xvZ2luLWZvcm0tc2xpZGVy" /> <input type="hidden" name="7f6e9fa9745c454c627138d1423e3d5d" value="1" /> </form> </div>
ICH BEDANKE MICH SCHON MAL IM VORRAUS FÜR ANTWORT UND HILFE!
Zuletzt modifiziert von Jannyeis am 26.02.2012 - 00:00:44