PDA

Afficher la version complète : Générateur de mots de passe



Sofia
06/12/2006, 19h58
Description
Ce module permet d'insérer un générateur de mot de passe lors de l'inscription d'un membre... Possiblité de choisir la longueur du pass.
Remerciements et support / Thanks and support
Ce Hack a été traduit en français pour vBulletin-Ressources avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources with the explicit authorization of its author.
vBulletin-Ressources et son équipe offrira du support vis-à-vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
vBulletin-Ressources remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources thanks the author for the hack to have provided its authorization.Conception
Auteur du Hack / Author Of Hack : redspider (http://www.vbulletin.org/forum/member.php?u=105594)
Source / Link of Thread: Générateur de mots de passe (http://www.vbulletin.org/forum/showthread.php?t=105758)
Version vBulletin Requise / Version vBulletin Required : vB 3.5.3 - 3.5.4 & 3.6.x

Testé / Tested: oui
Traducteur / Translator: Sofia
Copyright © 2006 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions/ Copyright © 2006 vBulletin-Ressources.com - All Rights Reserved Only For Ours Translations~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Installation
Uploader les fichiers sur votre FTP
Uploader le xml via votre admincp (Gestionnaire de Produits)
Templates à modifiésDans le template register,

Trouvez :


<head>Ajouter en dessous :


<!-- RedSpider PWG -->
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<!-- / RedSpider PWG -->Toujours dans le template register,

Cherchez :


<input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15" value="$passwordconfirm" />
</td>
</tr>
</table>Ajouter au-dessous :


<!-- RedSpider PWG -->
<img border="0" src="./images/lock.gif" width="25" height="30"><a href="PWG.php" onclick="NewWindow(this.href,'PWG','400','350','no','center ');return false" onfocus="this.blur()">Générateur de mots de passe</a>
<!--/ RedSpider PWG -->Dans le template modifypassword,

Ajouter tout en haut :


<!-- RedSpider PWG -->
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<!-- / RedSpider PWG -->Toujours dans le template modifypassword,

Cherchez :


[confirm_new_password]:</div>
<div><input type="password" class="bginput" name="newpasswordconfirm" size="50" maxlength="50" /></div>
</td>
</tr>
</table>Ajouter au-dessous :


<!-- RedSpider PWG -->
<img border="0" src="./images/lock.gif" width="25" height="30"><a href="PWG.php" onclick="NewWindow(this.href,'PWG','400','350','no','center ');return false" onfocus="this.blur()">Générateur de mots de passe</a>
<!--/ RedSpider PWG -->

psy4
06/12/2006, 23h26
pas mal :)


beau taff =)

Allan
06/12/2006, 23h42
Merci pour cette trad Sofia ;)

lazarre
27/04/2007, 07h41
merci bien pour ce hack