; 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
[ERROR]
Login error:
Login and/or password not valid.
In case you have forgotten your user name or password,
please send an email to [MAIL info@example.com]E-Mail[/MAIL].
[/ERROR][ERROR_ELSE]
Please login:
Some contents on our page are only availabe for logged in users.
Fill in your acount data, please!
[/ERROR_ELSE]
Forgotten your user name or password?
Please send an email to [MAIL info@example.com]E-Mail[/MAIL].
[PHP]
// === forwarded by redirect to Category 06
if ( _getFeUserLoginStatus()) { // === the user is logged in, then
// headerRedirect('category05.phtml', 301);
headerRedirect('index.php?category05', 301);
exit;
}
[/PHP]
\\
If an automatic transmission is not desired, a link can be used. If so, please replace the entire part **%%[PHP] ..... [/PHP]%%** with:
You are logged in as: {LOGIN}
\\
==== CSS: ====
File: fe_login.css \\
Folder: template/inc_css/*
The file fe_login.css must be included in the template (css file:).
/* -------- 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 ------ */
\\
==== Positioning of the logout button ====
The logout button is issued by the second call of the CP frontend login. For this purpose, the CP is given an appropriate template.
The location of the output is defined in the page template.
Please add the following to this point:
{SHOW_CONTENT:CP,24}
The CP ID in ##{SHOW_CONTENT:CP,24}## needs to be paired with the ID of the CP in which the template fe_logout_en.tmpl is used.
~~UP~~
\\
===== Little helpers =====
==== Two tags available for hiding content: ====
== heyhey ==
and\\
== oh-oh! ==
\\
== Example for a template ==
Customer Information
[URL_TEXT]{URL_TEXT}[/URL_TEXT][URL_TEXT_ELSE]more...[/URL_TEXT_ELSE]
==== The user is logged in? ====
##%%_getFeUserLoginStatus()%%## [not available vorhanden | 1]
=== Forwarding example: ===
[PHP]
// === forwarded by redirect to a category
if ( _getFeUserLoginStatus() ) { // === if the user is logged in, then goto ...
// headerRedirect('category_alias.phtml', 301);
headerRedirect('index.php?category_alias', 301);
exit;
}
[/PHP]
\\
==== Read username from session variable ====
Forum: [[http://forum.phpwcms.org/viewtopic.php?p=119716]][DE]
File: 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()%%##
\\