- Kod: Tümünü seç
#
#-----[ AÇ ]--------------------------------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ BUL ]-------------------------------------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ SONRASINA EKLE ]--------------------------------------------------------------
#
'CITY' => ( $profiledata['user_city'] ) ? $profiledata['user_city'] : ' ',
'L_CITY' => $lang['city'],
#
#-----[ AÇ ]--------------------------------------------------------------------------
#
includes/usercp_register.php
#
#-----[ BUL ]-------------------------------------------------------------------------
#
# ( Satırdan sadece bir alıntı )
#
$strip_var_list = array('username' => 'username',
#
#-----[ SATIRİÇİNDE BUL ]-------------------------------------------------------------
#
'interests' => 'interests'
#
#-----[ SATIRİÇİNDE, SONRASINA EKLE ]-------------------------------------------------
#
, 'city' => 'city'
#
#-----[ BUL (birincisi) ]-------------------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ SONRASINA EKLE ]--------------------------------------------------------------
#
$city = stripslashes($city);
#
#-----[ BUL ]-------------------------------------------------------------------------
#
$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
}
}
}
#
#-----[ SONRASINA EKLE ]--------------------------------------------------------------
#
#
//
// Şehir seçimi zorunlu olsun ve ilk iki girdi kontrolü
//
if ( $mode == 'editprofile' || $mode == 'register' )
{
if ( $city == $lang['city_choice']['0'] || $city == $lang['city_choice']['1'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
Sitenizde yayinlanan
## MOD Adı : Şehir Açılır Kutuda
## Sürüm : 1.0.1 (phpBB 2.0.10)
Mod'un sehir secenigini zorunlu olmasini istemiyorum.
- Kod: Tümünü seç
//
// Şehir seçimi zorunlu olsun ve ilk iki girdi kontrolü
//
if ( $mode == 'editprofile' || $mode == 'register' )
{
if ( $city == $lang['city_choice']['0'] || $city == $lang['city_choice']['1'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
$lang['city_choice']['1'] buradaki "1" rakamini "2" mi yapmam lazim , yada baska bir degisiklik var mi, zorunlu olmamasi icin.