[!WebLoginPE? &type=`simple` &liHomeId=`3,4,6,7,8,9,2` &profileTpl=`simpleProfileTpl`!]
[!WebLoginPE? &type=`simple` &liHomeId=`3,4,6,7,8,9,2`!]
else { $this->FormatMessage($this->LanguageArray[2]); return; }
else { $error = $this->LanguageArray[2].'<br />'; $errorMessage .= str_replace('[+000+]', '"password"', $error); $this->FormatMessage($errorMessage); return; }
<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofilesimple">Save</button> <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofilesimple">Delete My Profile</button>
I also followed the advice above and altered a couple of the buttons by adding the word "simple" to the value string:
<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofilesimple">Save</button> <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofilesimple">Delete My Profile</button>
Seems to work fine now, fingers crossed...
[!WebLoginPE? &type=`register` &groups=`dottori` &lang=`it` ®Type=`verify` ®isterTpl=`register-dottore-form` ¬ifySubject=`NUOVO DOTTORE ` ®HomeId=`1` &profileHomeId=`220` &liHomeId=`1` &loHomeId=`1` &customFields=`titolo,nome,cognome,struttura,telefono,cellulare,via,civico,provincia,cap,citta,data_nascita,anno_laurea,tipo_attivita,specialita_1,specialita_2,specialita_3,numero_albo,albo_provincia,policy_1,policy_2,policy_3` ®Required=`titolo,nome,cognome,username,data_nascita,tipo_attivita,specialita_1,numero_albo,albo_provincia,policy_2,policy_3` !]
[!WebLoginPE? &type=`profile` &groups=`dottori` &lang=`it` &profileTpl=`modifica-dottore-form` ¬ifySubject=`MODIFICA DOTTORE ` ®HomeId=`1` &profileHomeId=`220` &liHomeId=`1` &loHomeId=`1` ®Required=`nome,cognome,email,username,data_nascita,tipo_attivita,specialita_1,numero_albo,albo_provincia,policy_2,policy_3` !]
<div style="color:red;">[+wlpe.message+]</div> <!--<div id="wlpeRegister">--><div class="contactform"> <form id="wlpeRegisterForm" name="wlpeRegisterForm" action="[~[*id*]~]" method="POST"> <fieldset id="wlpeRegisterFieldset"> <p class="wlpeRegisterInfo">[*intro*]</p> <fieldset> <h4>Dati generali</h4> Titolo: <select name="titolo" width="10" value="[+form.titolo+]"> <option selected="selected" value=""></option> <option value="Dr." >Dr.</option> <option value="Prof." >Prof.</option> </select> * Nome: <input name="nome" type="text" style="width:105px;" value="[+user.nome+]"> * Cognome: <input name="cognome" type="text" style="width:105px;" value="[+user.cognome+]"> Struttura: <input name="struttura" type="text" style="width:99%;" value="[+user.struttura+]"> Telefono: <input name="telefono" type="text" style="width:150px;" value="[+user.telefono+]"> Cellulare: <input name="cellulare" type="text" style="width:150px;" value="[+user.cellulare+]"> * Email: <input name="email" type="text" style="width:150px;" value="[+user.email+]"> * Ripeti email: <input name="email.confirm" type="text" style="width:150px;" value="[+user.email+]"> Via: <input name="via" type="text" style="width:270px;" value="[+user.via+]"> N. civico: <input name="civico" title="" type="text" value="[+user.civico+]"> Provincia: <select name="provincia" value="[+user.provincia+]"> <option selected="selected" value="">Nessuno</option> <option value="Alessandria" title="">Alessandria</option> <option value="Ancona" title="">Ancona</option> <option value="Aosta" title="">Aosta</option> <option value="Arezzo" title="">Arezzo</option> </select> Cap: <input name="cap" title="" type="text" value="[+user.cap+]"> Città: <input name="citta" type="text" style="width:85px;" value="[+user.citta+]"></td> <h4>Per il medico</h4> * Data nascita: <input name="data_nascita" type="text" id="sel3" size="10" value="[+user.data_nascita+]"> Anno laurea: <input name="anno_laurea" title="" type="text" value="[+user.anno_laurea+]"> * Tipo attività: <select name="attivita" value="[+user.attivita+]"> <option selected="selected" value="Spec. ambulatoriale" title="">Spec. ambulatoriale</option> <option value="Medico di Medicina Generale" title="">Medico di Medicina Generale</option> <option value="Ospedaliero" title="">Ospedaliero</option> </select> * Spec. 1: <select name="specialita_1" value="[+user.specialita_1+]"> <option selected="selected" value="Agopuntura" title="">Agopuntura</option> <option value="Tisiologo pneumologo" title="">Tisiologo pneumologo</option> <option value="Urologo" title="">Urologo</option> <option value="Vulnologo" title="">Vulnologo</option> </select> * Albo della provincia: <select name="albo_provincia" value="[+user.albo_provincia+]"> <option value="Lecco" title="">Lecco</option> <option value="Livorno" title="">Livorno</option> <option value="Lodi" title="">Lodi</option> </select> Spec. 2: <select name="specialita_2" value="[+user.specialita_2+]"> <option selected="selected" value=""><Nessuno></option> <option value="Idrologia Medica" title="">Idrologia Medica</option> <option value="Igienista" title="">Igienista</option> <option value="Immunologo" title="">Immunologo</option> <option value="Infettivologo" title="">Infettivologo</option> </select> * Numero iscriz. albo: <input name="numero_albo" title="(Campo obbligatorio)" type="text" style="width:110px;" value="[+user.numero_albo+]"> <select name="specialita_3" value="[+user.specialita_3+]"> <option selected="selected" value=""><Nessuno></option> <option value="Agopuntura" title="">Agopuntura</option> <option value="Alfa Wassermann" title="">Alfa Wassermann</option> </select> Codice omaggio: <input name="codice_omaggio" title="" type="text" style="width:140px;" value="[+user.codice_omaggio+]"> [*policy_1*] * Scegli un Username: <input name="username" type="text" style="width:120px;" value="[+user.username+]"> </fieldset> <fieldset id="wlpeUserProfileButtons"> <button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofile">Salva</button> <button type="submit" id="wlpeProfileLogoutButton" name="service" value="logout">Logout</button> <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofile">Elimina il mio profilo</button> <button type="submit" id="wlpeRegisterCancelButton" name="service" value="cancel">Cancella</button> </fieldset> </form>
I finally figured this out... Once I created a custom form I changed the save button's value="saveprofile" to value="saveprofilesimple" and it started working.