Voilà une option qui manque dans FSB, on ne sait pas supprimer son avatar depuis son profil...
Code (Sélectionner le code)
/******************************************************************************* * Template Mod :: version 0.0.1 * * ---------- Auteur -------------------------------------------------------- * Auteur :: Babacooll * Email :: mich.mg@skynet.be * Site Web :: http://www.poudlard-interactif.net * * ---------- Mod ----------------------------------------------------------- * Nom :: Supprimer Avatar * Version :: 0.0.1 * Compatible :: FSB BETA1b * * Description :: Rajouter une option dans le profil pour supprimer son * avatar. * * Temps d'installation :: 5 minutes * Requêtes :: Non * Cache :: Non * Fichiers joints :: 0 * Fichiers à modifier :: 2 * * ---------- Note ---------------------------------------------------------- * Mod important car sinon un avatar ne peut être supprimé par un membre !!! * * ---------- Historique ---------------------------------------------------- * Commencé :: Le 18 / 09 / 2004 * Dernière modification :: Le 18 / 09 / 2004 * * Le 18 / 09 / 2004 :: * Première version du MOD * *******************************************************************************/ # # [1] ---------- ouvrir -------------------------------------------------------- # profil.php # # [2] --------- chercher ------------------------------------------------------- # $parametre = array('login', 'mdp' # # [3] ---------- après, ajouter ------------------------------------------------ # , 'delete_avatar' # # [4] ---------- chercher ----------------------------------------------------- # info($langue['info_titre'], $langue['profil_update'] . '<br /><br />' . sprintf($langue['retour_index'], ajout_sid('index.php'))); break; default: # # [5] ---------- avant, ajouter ----------------------------------------------- # if ( $delete_avatar ) { $sql = "UPDATE " . MEMBRES_TABLE . " SET membre_avatar=NULL WHERE membre_id = '".$membre['membre_id']."'"; if ( ! $bdd->requete($sql) ) { info($langue['er_titre'], sprintf($langue['er_update'], 'membres'), __LINE__, __FILE__, $sql); } } # # [6] --------- chercher ------------------------------------------------------- # 'L_EMAIL' => $langue['email'], # # [7] ---------- après, ajouter ------------------------------------------------ # 'L_DELETE_AVATAR' => $langue['delete_avatar'], # # [8] ---------- ouvrir -------------------------------------------------------- # themes/IceCold/profil_corps.tpl # # [9] --------- chercher ------------------------------------------------------- # <tr> <td class="td_profil_bas">{L_LIER_AVATAR}</td> <td class="td_profil2_bas" width="500"><input type="text" value="{V_LIER_AVATAR}" name="lier_avatar" size="30" /></td> </tr> # # [10] --------- après, ajouter ------------------------------------------------ # <tr> <td class="td_profil_bas">{L_DELETE_AVATAR}:</td> <td class="td_profil2_bas"> <input type="radio" name="delete_avatar" value="1"> {L_OUI} <input type="radio" name="delete_avatar" value="0" checked="checked" /> {L_NON} </td> </tr> # # [11] --------- ouvrir -------------------------------------------------------- # langues/fr/lang_forum.php # # [12] -------- chercher ------------------------------------------------------- # $langue['gestion_avatar'] = 'Gestion de l\'avatar'; # # [13] --------- après, ajouter ------------------------------------------------ # $langue['delete_avatar'] = 'Supprimer l\'avatar';
BaB'








