The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I want my forum to be setup so that users use their email addresses to login instead of username. I did a search on this forum, and this is the closet to what I wanted:
https://vborg.vbsupport.ru/showthread.php?t=96832 This is for v3.5.0 RC3 and login with either username or email, but I have 3.8.4 PL1 and I want login with email only, not username. I tried: File: ./includes/functions_login.php Line: 140 CHANGED 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)) . "'")) TO if ($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)) . "'")) It didn't seem to work. Can anyone help me with this? Thanks. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|