WebSite X5Help Center

 
Tommaso Tarallo
Tommaso Tarallo
User

All'accesso, sostituire automaticamente il login con il logout  it

Author: Tommaso Tarallo
Visited 1533, Followers 2, Shared 0  

Salva a tutti,

trovo DAVVERO INCREDIBILE che ancora nella versione 14, appena mi loggo mi compare semre i campi del login:

trovo SENSATO sostiturlo automaticamente con il link "Logout".

Come si può fare con codice esterno?

Grazie!

Posted on the
9 ANSWERS - 2 USEFUL
Giorgio C.
Giorgio C.
User

Con la versione 13 funziona la 14 non ho provato.

Se vuoi omettere il saluto all'utente cancella la parte in grassetto.

Il tutto in un'oggetto codice html e in una pagina php.

Ciao

<?php
require_once("res/x5engine.php");
$pa = Configuration::getPrivateArea();
$user = $pa->whoIsLogged();
if ($user)
{ echo "Benvenuto <b>".$user['realname']."</b>";
echo'<span class=\"imLogout\" style=\"font-weight: normal; font-style: normal;font-family:Tahoma; font-size:10pt; color: #000000\"></span>'; } else {
?>
<!-- Private Area.Login: START -->
<div id="imLogin" style="width: 100%; max-width: 100px">
<form method="post" action="imlogin.php" onsubmit="_jq(this).attr('action', x5engine.settings.currentPath + 'imlogin.php'); return (x5engine.utils.isOnline() || !x5engine.utils.showOfflineMessage(x5engine.l10n.get('blog_offline_message')));">
  <div class="imLoginBlock" style="width: 100%;">
    <label for="imUname"><span style="font-weight: normal; font-style: normal;font-family:Tahoma; font-size:10pt; color: #000000">Username:</span></label><br />
    <input type="text" name="imUname" id="imUname" style="box-sizing: border-box; font-weight: normal; font-style: normal;border: 1px solid #ccc; font-family:Tahoma; font-size:10pt; background-color: #FFFFFF; color: #000000; width: 100%; max-width: 100px"><br />
  </div>
  <div class="imLoginBlock" style="width: 100%;">
    <label for="imPwd"><span style="font-weight: normal; font-style: normal;font-family:Tahoma; font-size:10pt; color: #000000">Password:</span></label><br />
    <input type="password" name="imPwd" id="imPwd" style="box-sizing: border-box; font-weight: normal; font-style: normal;border: 1px solid #ccc; font-family:Tahoma; font-size:10pt; background-color: #FFFFFF; color: #000000; width: 100%; max-width: 100px"><br />
  </div>
  <div class="imLoginBlock" style="width: 100%; margin-top: 5px; text-align: center">
    <input type="submit" value="Accedi" class="imLoginSubmit" style="font-weight: normal; font-style: normal;border: 1px solid #ccc; background-color: #DDDDDD; font-family:Tahoma; font-size:10pt; color: #000000">
  </div>
</form>
</div>
<!-- Private Area.Login: END -->
<?php
}
?>

Read more
Posted on the from Giorgio C.
Incomedia
Riccardo P.
Incomedia

Buongiorno SitiWeb App,

ho modificato il topic come idea così da poterlo valutare. Grazie.

Read more
Posted on the from Riccardo P.
Tommaso Tarallo
Tommaso Tarallo
User
Author

Grazie Giorgio!

Riccardo spero che create un unico oggetto Login/Logout perchè nel 2017 ancora non si può vedere questo ..... grazie!

Read more
Posted on the from Tommaso Tarallo
A. Kris
A. Kris
User
SitiWeb App
Grazie Giorgio! Riccardo spero che create un unico oggetto Login/Logout perchè nel 2017 ancora non si può vedere questo ..... grazie!
+1 sono d'accordo con la tua richiesta

Read more
Posted on the from A. Kris
Armando Mendolicchio
Armando Mendolicchio
User

buongiono,

e possibile personalizzare la pagina utente inserendo non solo il benvenuto con il suo nome ma bensì altri dati tipo indirizzo, citta', email.. ect prendendo i dati dall'ordine che effettua?

Read more
Posted on the from Armando Mendolicchio
Claudio D.
Claudio D.
Moderator
Best User of the month IT
Armando Mendolicchio
buongiono, e possibile personalizzare la pagina utente inserendo non solo il benvenuto con il suo nome ma bensì altri dati tipo indirizzo, citta', email.. ect prendendo i dati dall'ordine che effettua?

apri un post IDEA , non accodarti qui ...

Read more
Posted on the from Claudio D.
Armando Mendolicchio
Armando Mendolicchio
User

ok grazie

Read more
Posted on the from Armando Mendolicchio
Tommaso Tarallo
Tommaso Tarallo
User
Author

per la v.14 sostituisci "username" con "firstname"

Read more
Posted on the from Tommaso Tarallo
Tommaso Tarallo
Tommaso Tarallo
User
Author

scusate per la v.14 sostituisci "realname" con "firstname"

Read more
Posted on the from Tommaso Tarallo