Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Login by username or email Details »
Login by username or email
Mod Version: 1.00, by Marco van Herwaarden (Member) Marco van Herwaarden is offline
Developer Last Online: Dec 2010 I like it Show Printable Version Email this Page

vB Version: 3.5.0 RC3 Rating: (1 vote - 4.00 average) Installs: 43
Released: 24 Sep 2005 Last Update: Never Downloads: 181
Not Supported Code Changes  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace by:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 13 May 2006, 11:01
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
That is a good suggestion and i might add it to a next (??) release.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #17  
Old 25 May 2006, 09:19
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
does this work on 3.5.4?
Reply With Quote
  #18  
Old 28 May 2006, 09:14
BaBa2002 BaBa2002 is offline
 
Join Date: Nov 2001
Originally Posted by MarcoH64
email only would even be easier, just replace 1 word in the original file.
what do you mean with just replace 1 word?
for just email registration? and witch word?
__________________
greetings
BaBa2002
Reply With Quote
  #19  
Old 04 Jun 2006, 09:56
xr8d76 xr8d76 is offline
 
Join Date: Feb 2006
?

where/how do you add on the login boxes, instead of it just showing:

username:
Password:

TO

Username/Email:
Password:

Pls and thx
Reply With Quote
  #20  
Old 04 Jun 2006, 10:54
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Originally Posted by xr8d76
where/how do you add on the login boxes, instead of it just showing:

username:
Password:

TO

Username/Email:
Password:

Pls and thx
search parse "User Name"

maybe?
Reply With Quote
  #21  
Old 21 Jun 2006, 21:19
futuredood futuredood is offline
 
Join Date: Jan 2002
how do you change this to ONLY e-mail, and does it work for 3.5.4?
Reply With Quote
  #22  
Old 22 Jun 2006, 10:02
futuredood futuredood is offline
 
Join Date: Jan 2002
to note this works with 3.5.4
Reply With Quote
  #23  
Old 29 Nov 2006, 10:53
malmazan malmazan is offline
 
Join Date: Feb 2006
These days (3.6.4) it is more like:
Loor for :
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace by:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's the same thing, though "infractiongroupids, " is added to the query list

Last edited by malmazan; 10 May 2008 at 12:33. Reason: typo
Reply With Quote
  #24  
Old 03 Apr 2008, 18:13
OneEyeSleepy OneEyeSleepy is offline
 
Join Date: Sep 2007
Hi, is there anything similar that can be used for vbulletin v3.6.9?
Reply With Quote
  #25  
Old 03 Apr 2008, 18:25
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Sep 2005
Real name: Hasann
Heyy Marco does it work for 3.7.x ?
__________________
HASANN
Reply With Quote
  #26  
Old 05 Apr 2008, 11:56
abendagar abendagar is offline
 
Join Date: May 2002
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???
Reply With Quote
  #27  
Old 10 May 2008, 21:38
malmazan malmazan is offline
 
Join Date: Feb 2006
Originally Posted by Hasann View Post
Heyy Marco does it work for 3.7.x ?
It works
Reply With Quote
  #28  
Old 14 Aug 2008, 19:03
ChrisXX ChrisXX is offline
 
Join Date: Oct 2007
So let me get this straight, if I just change this...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to this...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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!
Reply With Quote
  #29  
Old 04 Sep 2008, 00:25
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Hi folks -- long time no see...

Just a quick question: Does this hack still work with the current vB release?
Reply With Quote
  #30  
Old 15 Oct 2008, 16:30
jerx jerx is offline
 
Join Date: Feb 2006
Works on vb 3.7.3 pl1. This is the code I used:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Originally Posted by abendagar View Post
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???
That works, too. Are there any differences between both versions, eg performance, security or stability wise?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:49.

Layout Options | Width: Wide Color: