Home › Forum › Amministrazione WP › Modificare Login e Registrazione
-
AutorePost
-
-
2 Ottobre 2006 alle 18:40 #2220Simona86Partecipante
Salve a tutti, vorrei modificare il login al mio blog in questo modo.
Vorrei che la sezione utente si presenti più o meno cosà¬:
UTENTE|
– LOGIN
nome utente
______________
|______________|
password
______________
|______________|
|Entra|
– Crea Nuovo Profilo
– Richiedi Nuova Password
Ho letto su questo forum che bisogna copiare il codice da wp-login.php nella sidebar. Però volevo sapere prima di tutto se devo copiarlo completamente.- Inoltre uso il plugin widget, il codice dunque dove va copiato?
Grazie
-
4 Ottobre 2006 alle 10:16 #40397Simona86Partecipante
Non c’è nessuno che può darmi un consiglio?
-
4 Ottobre 2006 alle 10:22 #40399SteveAglAmministratore del forum
vedi qui se ti può essere utile
-
4 Ottobre 2006 alle 12:21 #40402Simona86Partecipante
Grazie mr brown, ora faccio qualche tentativo
-
4 Ottobre 2006 alle 12:27 #40403Simona86Partecipante
Ho fatto una prova, e non è quello che mi serve…. In poche parole voglio che nella mia sidebar siano già presenti i campi per effettuare il login, senza che l’utente debba cliccare su un link che lo porta ad un’altra pagina…
-
4 Ottobre 2006 alle 13:02 #40405Simona86Partecipante
Il modello a cui mi riferisco è quello di questo stesso sito, solo che io voglio mettere il tutto nella sidebar…
-
4 Ottobre 2006 alle 14:47 #40408SteveAglAmministratore del forum
<?php
if (empty($_COOKIE[USER_COOKIE]) ){
?>
<form name="loginform" id="loginform" action="<?php bloginfo('siteurl'); ?>/wp-login.php" method="post">
<label>Nome utente:<input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>
<label>Password: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
<label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
Ricordami</label>
<p class="submit">
<input type="submit" name="submit" id="submit" value="Login »" tabindex="4" />
<input type="hidden" name="redirect_to" value="/wp-admin/" />
</form>
<?php
}
else {
?>
Ciao <?php echo wp_specialchars(stripslashes($user_login), 1); ?>
<p align="center"><a href="<?php bloginfo('siteurl'); ?>/wp-admin/">Accedi</a>
<?php
}
?>
poi ti diverti un po’ tu a personalizzare il codice del form.
-
4 Ottobre 2006 alle 22:31 #40417Simona86Partecipante
Grazie Mr. Brown, sei stato di grande aiuto! Ho personalizzato il tutto proprio come volevo io. Grazie mille
-
6 Ottobre 2006 alle 9:24 #40440brain2kxPartecipante
Davvero utilissimo ma per la registrazione?
Dove è possibile farla?
oppure, come si può fare in modo da mettere un form di registrazione?
Grazie mrbrown
-
6 Ottobre 2006 alle 10:01 #40446SteveAglAmministratore del forum
oppure, come si può fare in modo da mettere un form di registrazione?
stesso procedimento, devi solo sostituire il form di login con il form di iscrizione.
-
6 Ottobre 2006 alle 10:39 #40452brain2kxPartecipante
Purtroppo quando cerco di entrare con login e password di utenti già registrati, mi da errore di pagina non trovata.
Se eseguo lo stesso login e password ma da schermata classica di WordPress, me li riconosce.
Perchè?
Cosa c’è che non va nel codice?
Inoltre se inserisco solo il login, mi si apre la pagina standard di WordPress dove mi viene detto che il campo password è vuoto.
Quindi penso sia un problema di trasferimento di password.
Grazie
-
7 Ottobre 2006 alle 8:37 #40486SteveAglAmministratore del forum
Cosa c’è che non va nel codice?
l’action del form, qui devi mettere il link corretto alla pagina di registrazione al posto di
wp-login.php
<form name="loginform" id="loginform" action="<?php bloginfo('siteurl'); ?>/wp-login.php" method="post">
-
7 Ottobre 2006 alle 10:34 #40488brain2kxPartecipante
Grazie proverò.
Sei stato gentilissimo.
-
8 Ottobre 2006 alle 9:16 #40502brain2kxPartecipante
Ho problemi sul creare la registrazione.
Qualcuno può aiutarmi?
-
1 Giugno 2007 alle 2:25 #449177h31ll3g4lPartecipante
Ciao a tutti…
sono nuovo e sarei interessato all’inserimento del for di login e password
ma il codice da voi citato dove va inserito?
Grazie e scusate se la domanda per alcuni potrebbe sembrare stupida…
-
29 Luglio 2007 alle 12:49 #45910trottoPartecipante
Il form sono riuscito ad inserirlo e sembra che funzioni.. ho una piccola questione preò che non riesco a risolvere.
Praticamente una volta che l’utente si è loggato vorrei far comparire il proprio nome accanto alla scritta benvenuto (o ciao), probabilmente, se non ho capito male, dovrebbe funzionare con questa stringa:
<?php echo wp_specialchars(stripslashes($user_login), 1); ?>
ma da me non fa
mi sapreste dare un dritta??
-
20 Settembre 2007 alle 17:11 #46744oviPartecipante
Neanche a me funziona quello, usa questo invece:
<?php global $userdata; get_currentuserinfo(); echo($userdata->user_login . "n"); ?>
-
24 Settembre 2007 alle 21:24 #46852swimPartecipante
<?php
if (empty($_COOKIE[USER_COOKIE]) ){
?>
<form name="loginform" id="loginform" action="<?php bloginfo('siteurl'); ?>/wp-login.php" method="post">
<label>Nome utente:<input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>
<label>Password: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
<label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
Ricordami</label>
<p class="submit">
<input type="submit" name="submit" id="submit" value="Login »" tabindex="4" />
<input type="hidden" name="redirect_to" value="/wp-admin/" />
</form>
<?php
}
else {
?>
Ciao <?php echo wp_specialchars(stripslashes($user_login), 1); ?>
<p align="center">/wp-admin/">Accedi
<?php
}
?>
poi ti diverti un po’ tu a personalizzare il codice del form.
Ancke io voglio fare la stessa cosa…ma in ke pagina devo inserire questo codice?
Grazie
Ciau!
-
31 Ottobre 2007 alle 16:02 #47651SunflowerPartecipante
Ciao a tutti ^^
Ho inserito questo codice nel mio blog, però vorrei sapere se c’è un modo per far comparire l’opzione “registrati” quando non si è loggati (attualmente compare solo il form per il login) e se esiste un modo per far apparire “logout” una volta che si è loggati
Grazie in anticipo^^
Sunny
-
8 Maggio 2010 alle 15:18 #73428kikko088Partecipante
riesumo questo blog per alcune info, innanzitutto sarebbe bello sapere come si può fare ad aggiungere il logout inoltre vorrei sapere se c’è un modo per far apparire una volta loggati il link alla dashboard per l’admin e al profilo per gli utenti normali invece del form, mi spiego, ora una volta che ci si collega rimane il form, io vorrei che al posto del form ci fossero i link per il logout, profilo e dash…
grazie mille
kikko088
-
11 Novembre 2011 alle 13:59 #89708xdaniel2Partecipante
Non capisco xke mi da questo errore :
Accesso negato!
Non disponi dei permessi necessari per accedere all’oggetto richiesto, oppure l’oggetto non può essere letto dal server.
il campo action l’ho impostato cosi, premetto che per fini didattici ho wordpress in locale:
<form name=”loginform” id=”loginform” action=”<?php bloginfo(‘siteurl’); ?>http://127.0.0.1:8887/wordpress/wp-login.php?loggedout=true” method=”post”>
Non riesco a capire quale sia l’url precisa di wp-login ho provato a inserire anche solo:
<form name=”loginform” id=”loginform” action=”<?php bloginfo(‘siteurl’); ?>http://127.0.0.1:8887/wordpress/wp-login.php” method=”post”>
ma nada.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.