![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Login by username or email
![]() Developer Last Online: Dec 2010 ![]() ![]() ![]()
This code modification was made as part of a request in this thread: http://www.vbulletin.org/forum/showt...5&page=1&pp=15
All that it does is allow to use the email address instead of the username to be used to login (username also still works). Since people where stating that it should be released, well here it goes. 1 File edit: in file includes/functions_login.php, find:
and replace by:
This will allow logging in with either mail or username. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
#16
|
|||
|
|||
That is a good suggestion and i might add it to a next (??) release.
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
#17
|
||||
|
||||
does this work on 3.5.4?
No members have liked this post.
|
#18
|
|||
|
|||
Originally Posted by MarcoH64
what do you mean with just replace 1 word?
for just email registration? and witch word?
__________________
greetings BaBa2002 No members have liked this post.
|
#19
|
|||
|
|||
?
where/how do you add on the login boxes, instead of it just showing:
username: Password: TO Username/Email: Password: Pls and thx No members have liked this post.
|
#20
|
||||
|
||||
Originally Posted by xr8d76
search parse "User Name"
maybe? No members have liked this post.
|
#21
|
|||
|
|||
how do you change this to ONLY e-mail, and does it work for 3.5.4?
No members have liked this post.
|
#22
|
|||
|
|||
to note this works with 3.5.4
No members have liked this post.
|
#23
|
||||||||
|
||||||||
These days (3.6.4) it is more like:
Loor for :
And replace by:
It's the same thing, though "infractiongroupids, " is added to the query list No members have liked this post.
Last edited by malmazan; 10 May 2008 at 12:33. Reason: typo |
#24
|
|||
|
|||
Hi, is there anything similar that can be used for vbulletin v3.6.9?
No members have liked this post.
|
#25
|
||||
|
||||
Heyy Marco does it work for 3.7.x ?
__________________
![]() No members have liked this post.
|
#26
|
|||
|
|||
Any downside to using
if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "' OR email = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'")) Isn't it simpler??? No members have liked this post.
|
#27
|
|||
|
|||
No members have liked this post.
|
#28
|
||||||||
|
||||||||
So let me get this straight, if I just change this...
to this...
It will force users to login with their email address, instead of their username? My goal is to make the username benign, and only for display purposes. The reason is I will be integrating VB in with some other apps that require email, and also use a username but only for display purposes. Am I correct? My second question then becomes, if two users have the same display name (for vB, username), will it cause problems? If so, is there a way to rectify that? Thanks much in advance! No members have liked this post.
|
#29
|
||||
|
||||
Hi folks -- long time no see...
Just a quick question: Does this hack still work with the current vB release? No members have liked this post.
|
#30
|
||||
|
||||
Works on vb 3.7.3 pl1. This is the code I used:
Originally Posted by abendagar
That works, too. Are there any differences between both versions, eg performance, security or stability wise?
![]()
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:49.