ich möchte ein Frontend Login in meine Seite integrieren, und dann Inhalte zeigen, die nur für restrierte Nutzer sichtbar sein sollen.
Bei einer Seite habe ich das ohne Probleme hinbekommen (phpwcms Version 1.3.3) bei einer neueren Version (1.4.5) wird zwar angezeigt, wenn die Nutzerdaten falsch sind, aber bei korrekter Eingabe passiert gar nichts
![Sad :(](./images/smilies/icon_sad.gif)
Hier mal die Kurzform meines Templates:
Code: Select all
<!-- NOTICE: Convert file to charset of site -->
<!--LOGIN_SETTINGS_START//-->
; this is formatted like WIN.INI
; please: do not use comments for value lines
; Cookie expire set to 90 days
date_format = "%m/%d/%y"
set_locale = "en"
cookie_expire = 7776000
<!--LOGIN_SETTINGS_END//-->
<!--LOGIN_FORM_START//-->
<div class="feLoginForm">
[ERROR]
<h3>Login Fehler:</h3><br>
<p class="error">
<font color="#FF0000">Login und/oder Password stimmen nicht.</font>
</p><br>
[/ERROR][ERROR_ELSE]
<h3>Bitte HIER anmelden:</h3><br>
<p>
Das PartnerWeb ist nur nach Anmeldung sichtbar.<br><br>
</p>
[/ERROR_ELSE]
<form action="{FORM_TARGET}" method="post" name="feLoginForm" id="feLoginForm">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100"><p class="field">
<label for="feLogin">Login:</label>
</p></td>
<td><input type="text" name="feLogin" id="feLogin" value="{LOGIN}" /></td>
</tr>
<tr>
<td width="100"><p class="field">
<label for="fePassword">Password:</label>
</p>
</td>
<td><input type="password" name="fePassword" id="fePassword" value="{PASSWORD}" /></td>
</tr>
</table>
<br>
<p class="checkbox">
<input type="checkbox" name="feRemember" id="feRemember" value="1"{REMEMBER} />
<label for="feRemember">Die Daten für die nächste Anmeldung speichern?</label>
</p><br>
<p class="button">
<input type="submit" value="Login" name="feSubmit" id="feSubmit" />
</p>
</form>
</div>
<!--LOGIN_FORM_END//-->
<!--LOGIN_IS_START//-->
<div class="feLoggedIn">
<h3>Schön, dass Sie sich angemeldet haben</h3>
<p>Sie sind angemeldet als: <strong>{LOGIN}</strong></p>
<!-- [MANAGE_PROFILE]<p>You can <a href="{MANAGE_PROFILE}">edit your user profile</a></p>[/MANAGE_PROFILE] //-->
<form action="{FORM_TARGET}" method="post" name="feLoginForm" id="feLoginForm">
<p class="button">
<input type="submit" value="Logout" name="feLogout" id="feLogout" />
</p>
</form>
</div>
<!--LOGIN_IS_END//-->
Muss ich die Datei "fe_login_de_kurz.tmpl" außer unter template > inc_cntpart > felogin noch irgendwo anders ablegen?
Vielen Dank im Voraus,