Herkese Merhabalar
Ben vBulletin Forum siteme uyelerin kullanici adi degil de E-maille giris yapmalarini istiyorum.
Biraz nette arastirma firsati buldum lakin bir turlu cozume kavusturamadim.

http://www.vbulletin.org/forum/showpost.php?p=778228&postcount=13
Bu linkte gibi herseyi yapiyorum ama hem kullanici adiyla hemde emaille giris yapabiliyor. Ben sadece e-maille giris yapilsin istiyorum.
Yardim edecek arkadaslara Tesekkurler simdiden
1 File edit:
in file includes/functions_login.php, find:

if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))

and replace by:

// Start hack login with mail address (MarcoH64)
// if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
if (!$vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
{
$vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE email = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'");
}
if ($vbulletin->userinfo)
// End hack login with mail address (MarcoH64)