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.
  #31  
Old 18 Dec 2008, 21:47
TheFocusElf TheFocusElf is offline
 
Join Date: Mar 2005
Real name: W. Scott
I am currently using VB 3.74, I have not upgraded to PL1, but I will in a short moment. I don't know how many users have had any resolution to this, and I was nervous for a fraction of a second before I read through the mod and really took a moment to understand what it was doing:

I am a Director of Marketing and training for a modest NFP organization, our initiatives are funded by our member dues, plain and simple. We are planning to open up the site from a pretty non-interactive VB to a defined VB system with users actually entering the system, belonging to member classes, etc. For record keeping, we want our members to log in with their emails, this way, if something changed significantly, they might be inclined to modify their email address in their control panel so that we're all up to date.

So, if you are looking to EXLUSIVELY require your members to log in with their emails (don't forget, this changes the Admin CP log in too), open the prescribed file in the original post, and if the file is otherwise unmodified, scroll down to around line 140, this is where you will find :


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

Comment that out with // and substitute the following:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

All of these instructions were contained in the original post, just probably a few of you users, like me, don't really know what all is going on in those lines of code!

Again, this works, and unless VB drastically overhauls the login system, I see this very simple process working for patches to come.

Cheers and Merry Christmas/Holidays and Happy New Year!
Reply With Quote
  #32  
Old 29 May 2009, 23:31
sharkee sharkee is offline
 
Join Date: Dec 2007
Great, thanks. Installed.
Reply With Quote
  #33  
Old 12 Jan 2010, 04:41
asiaphoto asiaphoto is offline
 
Join Date: Nov 2008
hi everyone,

now that VB4 is released (and i'm running our forum on VB4)

is anyone able to update this mod? i'm willing to pay for professional service.

see my request here:
http://www.vbulletin.org/forum/showt...17#post1953217
Reply With Quote
  #34  
Old 30 Nov 2010, 19:26
phoelapyae phoelapyae is offline
 
Join Date: Jun 2010
Can i get for version 4?
Reply With Quote
  #35  
Old 14 Dec 2010, 18:35
malmazan malmazan is offline
 
Join Date: Feb 2006
Vote on vB.com to have this feature made standard: http://tracker.vbulletin.com/browse/VBIV-9646
Reply With Quote
  #36  
Old 12 Sep 2011, 06:45
davidthornton davidthornton is offline
 
Join Date: May 2002
Does anyone have this working for v4.x? I'd like to be able to change a v4.x installation to only allow login via email address instead of username (and have the forum only permit one account per email address as well)
Reply With Quote
  #37  
Old 17 Oct 2011, 23:09
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Originally Posted by jerx View Post
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.



That works, too. Are there any differences between both versions, eg performance, security or stability wise?

I can confirm that ONLY the above code works for 3.8.5 too

I add that you also need to change Username to Name/email. Look in language for: <strong>$vbphrase[username]</strong>
Then Look for template register and search in it for: <strong>$vbphrase[username]</strong> and change it to <strong>$vbphrase[user_name]</strong>
This will keep in register template the phrase Username and in login box Name/Email.
If you don't do this modification You will have allot of users registering with email address instead of Username.

Thanks

Last edited by imedic; 19 Oct 2011 at 09:14.
Reply With Quote
  #38  
Old 10 Dec 2011, 15:15
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
There is a small bug ( a space between - and > ) and gives an error if you upgrade to 3.8.7 PL2 so here is the working code I use:


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

Reply With Quote
  #39  
Old 10 Dec 2011, 17:54
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
I have not tested this, but in vBulletin 4, try this:

In the file includes/functions_login.php, find:

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

And replace with:

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

__________________
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
"It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!
Reply With Quote
  #40  
Old 14 Dec 2011, 21:53
malmazan malmazan is offline
 
Join Date: Feb 2006
Originally Posted by HMBeaty View Post
I have not tested this, but in vBulletin 4, try this:

In the file includes/functions_login.php, find:

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

And replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Did you change anything with respect to the latest v3 versions? I'm getting this error on v4.1.8:

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

Reply With Quote
  #41  
Old 14 Dec 2011, 22:02
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Originally Posted by malmazan View Post
Did you change anything with respect to the latest v3 versions? I'm getting this error on v4.1.8:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Only thing that was changed for vB 4 was this:

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

was added to the query
__________________
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
"It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!
Reply With Quote
  #42  
Old 15 Dec 2011, 10:55
malmazan malmazan is offline
 
Join Date: Feb 2006
Originally Posted by imedic View Post
There is a small bug ( a space between - and > ) and gives an error if you upgrade to 3.8.7 PL2 so here is the working code I use:
I tried that on v4.1.8 and it seems to work fine. Thanks for sharing.
Reply With Quote
  #43  
Old 28 Jun 2012, 14:10
wangyu1314 wangyu1314 is offline
 
Join Date: May 2005
it is ok in vbb 3.8.7pl2
Reply With Quote
  #44  
Old 17 Jul 2012, 15:06
amanthena amanthena is offline
 
Join Date: Jul 2012
It works perfectly on vbulletin 4.x as well
Reply With Quote
  #45  
Old 17 Jul 2012, 15:49
mifupa mifupa is offline
 
Join Date: Oct 2010
Real name: Michael
vb 4.1.12 it works - thanks
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 03:44.

Layout Options | Width: Wide Color: