sabri ünal 23.05.2006, 12:45
JS ile ilgisi olmayan bir başka versiyonu da şöyledir.
- Kod: Tümünü seç
##############################################################
## MOD Title: Fix For The Firefox "Remember Passwords" Problem
## MOD Author: T0ny < N/A > (Tony Smith) N/A
## MOD Description: Fix for firefox's Remember Passwords feature
## overwriting username and password on the
## 'User Administration' page
## MOD Version: 1.2.1
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit: 4
## admin/admin_ug_auth.php
## admin/admin_users.php
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/search_username.tpl
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php 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:
## Tested with phpbb v2.0.19 , Firefox 1.5.0.1 , IE 6.0SP2 / 2.0.20 üstünde test ettim.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ AÇ ]------------------------------------------------
#
admin/admin_users.php
#
#-----[ BUL ]------------------------------------------------
#
require('./pagestart.' . $phpEx);
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
if ( ( isset($HTTP_POST_VARS['user_name']) ) & ( !isset($HTTP_POST_VARS['username']) ) )
{
$HTTP_POST_VARS['username'] = $HTTP_POST_VARS['user_name'];
}
#
#-----[ AÇ ]------------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ BUL ]------------------------------------------------
#
require('./pagestart.' . $phpEx);
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
if ( ( isset($HTTP_POST_VARS['user_name']) ) & ( !isset($HTTP_POST_VARS['username']) ) )
{
$HTTP_POST_VARS['username'] = $HTTP_POST_VARS['user_name'];
}
#
#-----[ AÇ ]------------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ BUL ]------------------------------------------------
#
name="username"
#
#-----[ SATIR İÇİNDE BUL ]----------------------------------------
#
name="username"
#
#-----[ BUNUNLA DEĞİŞTİR]--------------------------------
#
name="user_name"
#
#-----[ AÇ ]------------------------------------------------
#
templates/subSilver/search_username.tpl
#
#-----[ BUL ]------------------------------------------------
#
opener.document.forms['post'].username.value = selected_username;
#
#-----[ BUNUNLA DEĞİŞTİR ]----------------------------------------
#
if (opener.document.forms['post'].user_name)
{
opener.document.forms['post'].user_name.value = selected_username;
}
else
{
opener.document.forms['post'].username.value = selected_username;
}
#
#-----[ KAYDET - KAPAT ]--------------------------------
#
# EoM
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!