; this is formatted like WIN.INI
; please: do not use comments for value lines
; Cookie expire set to 90 days
date_format = "%d/%m/%y"
set_locale = "de_DE"
cookie_expire = 7776000
[ERROR]
Anmeldefehler:
Anmeldename und/oder Passwort ist/sind nicht richtig.
Sollten Sie Ihren Anmeldenamen und/oder Passwort vergessen haben,
senden Sie uns bitte eine [MAIL info@example.com]E-Mail[/MAIL].
[/ERROR][ERROR_ELSE]
Bitte melden Sie sich an:
Einige Bereiche unserer Seite sind nur für angemeldete Benutzer zugänglich.
Bitte geben Sie ihre Anmeldedaten ein!
[/ERROR_ELSE]
Benutzername/Passwort vergessen?
Bitte senden sie uns eine [MAIL info@example.com]E-Mail[/MAIL].
[PHP]
// === weiterleiten per redirect nach Category 06
if ( _getFeUserLoginStatus()) { // === ist der User eingeloggt, dann weiter
// headerRedirect('category05.phtml', 301);
headerRedirect('index.php?category05', 301);
exit;
}
[/PHP]
\\
Wenn eine automatische Weiterleitung nicht gewünscht ist, kann auch ein Link eingesetzt werden. \\ Dazu bitte den gesamten Teil **%%[PHP] ..... [/PHP]%%** austauschen gegen:
Sie sind angemeldet als: {LOGIN}
\\
==== CSS: ====
Datei: fe_login.css \\
Verzeichnis: template/inc_css/*
Die Datei fe_login.css muss in der Vorlage unter "CSS Datei:" eingebunden werden.
/* -------- FE USer Login form --------- */
.feLoginForm {
margin: 0;
padding: 0;
}
.feLoginForm label {
float:left;
clear:both;
display:block;
width:120px;
margin-bottom:10px;
padding-right:10px;
text-align: right;
}
.feLoginForm input, .feLoginForm textarea, .feLoginForm select {
float:left;
display:block;
width:250px;
border: 1px solid #890C03;
background:#F4F4F4;
font-family: Georgia, Times New Roman, Times, serif;
font-size: 14px;
font-weight: bold;
margin-bottom:10px;
padding:1px;
}
.feLoginForm form {
/* background:#EFEFEF;
border: 1px dotted #333;
*/
width:450px;
height: 100px;
padding-top: 20px;
margin: 20px 0 0 0px;
}
/* Um den Kasten fuer hidden input der Session auszublenden */
.feLoginForm input[type=hidden] { display: none; }
.feLoginForm .option {
border:none;
background:none;
width:auto;
}
.feLoginForm #feRemember {
float:left;
display:block;
width:auto;
}
/*
.feLoginForm .ku_login {
padding-left:150px;
}
*/
/*
.feLoginForm .feLoggedIn .button {padding: 40px 0 0 115px}
*/
/* AnmeldeButton */
.feLoginForm .logInButton, .feLoginForm #feSubmit {
font:12px Arial, Helvetica;
font-weight: bold;
font-style: normal;
cursor: pointer;
color: #f5f5f5;
/* border: 1px solid #2C6ED5; */
background-color: #890C03;
float:right;
padding: 0;
margin: 0 66px 0 302px;
width:82px;
height: 20px;
}
/* Erinnerung */
.feLoginForm .link-unten {
/* float:left; */
clear:both;
display:block;
width:253px;
margin-top: 10px;
margin-bottom:10px;
margin-left: 130px;
text-align: right;
}
/* ==== ist eingeloggt ===== */
.feLoggedIn {
margin: 0;
}
/* -------- END FE USer Login form ------ */
/* -------- FE USer LogOut form ------ */
.feLogOut {
/* width: 420px; */
/* height: 18px; */
margin: 0 0 0 5px; /* kh */
padding: 0;
text-align: left;
color: #555;
font-size: 9pt;
}
.feLogOut input, .feLogOut textarea, .feLogOut select {
display:block;
width:20px;
border: 1px solid #333;
background:#F4F4F4;
font-family: Georgia, Times New Roman, Times, serif;
font-size: 8pt;
font-weight: bold;
margin: 0;
padding:1px;
}
.feLogOut form {
/* background:#EFEFEF;
border: 1px dotted #333; */
width: 100px;
/* height: 20px; */
padding: 0;
margin: 0;
}
.feLogOut .logOutButton {
font:12px Arial, Helvetica;
font-weight: bold;
font-style: normal;
cursor: pointer;
color: #555;
border: 1px solid #bbb;
background-color: #eee;
padding: 0 0 2px 0;
margin:5px 0 0 0px;
width:82px;
height: 21px;
}
.feLogOutLink {
margin: 0 0 0 5px; /* kh */
padding: 0;
text-align: left;
color: #555;
font-size: 11pt;
}
.feLogInOutContainer {
width:180px;
margin-top: 10px;
padding: 5px 2px 5px 5px;
background-color: #E1C4F2;
border: 1px solid #aaa;
}
.feLogInOutContainer a {
padding-top: 10px;
display: block;
font-size: 12px
}
/* -------- END FE USer LogOut form ------ */
\\
==== Positionierung des Logout Button ====
Der Logout Button wird durch den zweiten Aufruf des CPs Frontend Login ausgegeben. Hierzu wird dem CP ein entsprechendes Template mitgegeben.
Der Ort der Ausgabe wird in der Seitenvorlage festgelegt.
Fügen sie dort bitte folgendes ein:
{SHOW_CONTENT:CP,24}
Die CP ID in ##{SHOW_CONTENT:CP,24}## muss natürlich mit der ID des CPs abgeglichen werden in dem das Template fe_logout_de.tmpl verwendet wird, also dem CP für das Logout //(in der Kategorie FE-Logout)//.
~~UP~~
\\
===== Kleine Hilfen =====
==== Zwei Tags für versteckten Content: ====
== heyhey ==
und\\
== oh-oh! ==
\\
==== Ist der User eingeloggt? ====
##%%_getFeUserLoginStatus()%%## [nicht vorhanden | 1]
=== Am Beispiel einer Weiterleitung: ===
[PHP]
// === weiterleiten per redirect zu einer bestimmten Kategorie
if ( _getFeUserLoginStatus() ) { // === ist der User eingeloggt, dann weiter
// headerRedirect('category_alias.phtml', 301);
headerRedirect('index.php?category_alias', 301);
exit;
}
[/PHP]
\\
==== FE Username aus Sessionvariable auslesen ====
Forum: [[http://forum.phpwcms.org/viewtopic.php?p=119716]]
Datei: template/inc_Script/frontend_render/fe_username.php
$content['all'] = str_replace(
'{FE-URSERNAME}',
empty($_SESSION[ session_id().'_userdata']) ? 'nicht angemeldet' : html_specialchars($_SESSION[ session_id().'_userdata']['name']),
$content['all']
);
\\
**Session-Hash:** ##%%session_id()%%##
\\