http://www.icyphoenix.com/viewtopic.php?f=35&t=514&p=4108#p4108
-----------------------------------
Vortex
Wed 25 Oct, 2006 12:12

Re: Firefox And Its Dislike Of Autocomplete = "off&quot
-----------------------------------
Easier than you think ;)


I always used a mod (found on phpbbhacks.com) to fix that problem with straight phpBB, now I modified that mod to be applied in XS in a very simple way.

Here's the mod:

[spoiler] [code] ##############################################################
## MOD Title: Firefox Autocomplete Bypass
## MOD Author: Thoul < thoul@phpbbsmith.com > ( Jeremy Rogers ) http://www.phpbbsmith.com
## MOD Description:
##		Prevents Firefox's overwriting of username and password fields
##		in the admin user editor.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit:
##		admin/admin_users.php,
##		templates/subSilver/admin/user_edit_body.tpl
## Included Files: N/A
## License: contrib/license.txt GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This modification is not compatible with Categories Hierarchy. From my
## experience, it should not be needed when using Categories Hierarchy anyway,
## as that does not appear to be affected by Firefox's auto completion.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]--------------------------------------
#
admin/admin_users.php

#
#-----[ FIND ]--------------------------------------
#

<?php

#
#-----[ AFTER, ADD ]--------------------------------------
#

// This file modified for Firefox Autocomplete Bypass

#
#-----[ FIND ]--------------------------------------
#

//
// Begin program
//

#
#-----[ AFTER, ADD ]--------------------------------------
#

//----------------------------------------------------------------------
// Firefox Autocomplete Bypass - Begin Code Alteration
//
if( isset($HTTP_POST_VARS['edit_username']) )
{
	$HTTP_POST_VARS['username'] = $HTTP_POST_VARS['edit_username'];
}
//
// Firefox Autocomplete Bypass - End Code Alteration
//----------------------------------------------------------------------

#
#-----[ OPEN ]--------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]--------------------------------------
#

<h1>{L_USER_TITLE}</h1>

#
#-----[ BEFORE, ADD ]--------------------------------------
#

<!-- This file modified for Firefox Autocomplete Bypass -->

#
#-----[ FIND ]--------------------------------------
#

		<input class="post" type="text" name="username" size="35" maxlength="40" value="{USERNAME}" />

#
#-----[ BEFORE, ADD ]--------------------------------------
#

<!-- Firefox Autocomplete Bypass - Begin Code Alteration -->
<!-- changed "username" to "edit_username" -->

#
#-----[ IN-LINE FIND ]--------------------------------------
#

name="username"

#
#-----[ IN-LINE REPLACE WITH ]--------------------------------------
#

name="edit_username"

#
#-----[ AFTER, ADD ]--------------------------------------
#

<!-- Firefox Autocomplete Bypass - End Code Alteration -->

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

[/code] [/spoiler]


Instead of [b]admin/admin_users.php[/b] and [b]templates/subSilver/admin/user_edit_body.tpl[/b] just edit files [b][color=#00ff00]adm/admin_users.php[/color][/b] and [b][color=#00ff00]templates/ca_aphrodite(orwhatyougot)/admin/user_edit_body.tpl[/color][/b] 


Files are pretty the same, only search in a different directory and this will do the trick.


I tried with my own site and it works perfectly. What do you think MG, do you approve this solution?



Edit: Author Notes say that this mod is not compatible with CH which is implemented in XS. I never experienced any problems anyway, but thought it was a good thing to notice that ;)


