vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [USML] Login by Username or Email (https://vborg.vbsupport.ru/showthread.php?t=275348)

HMBeaty 12-10-2011 11:00 PM

[USML] Login by Username or Email
 
1 Attachment(s)
The [USML] Login by Username or Email Version 1.0.0 allows your users to login by using their username or email address.

------------------
Features
------------------
  • Globally enable or disable
------------------
Installation
------------------
  • Instructions in readme.html
------------------
Uninstallation
------------------
  • Instructions in readme.html
Please remember to click Mark as Installed if you use this modification.

Also, feel free to nominate this modification for the MOTM, and/or use the Donate link to show your appreciation in the time and effort put into this modification.

This is a vB4 port of this modification. As you can see, it is marked as "Re-usable Code"

Ramsesx 12-11-2011 08:28 PM

Very nice, tagged for future usage. Thanks.

karlm 12-12-2011 03:04 AM

Sounds excellent - I will give it a trial run and report back my findings...

Thanks for this :)

karlm 12-12-2011 03:09 AM

Sadly, doesn't seem to function with 418 :(

I've got a dummy account on my 2nd site and tried logging in with email address... changed PW via ACP just in case, and then used that new PW to log in with and still no joy.

HMBeaty 12-12-2011 03:12 AM

Strange. It works just fine for me on vB 4.1.8

I tested it with:
  • Username + Password with Remember Me checked
  • Email + Password with Remember Me checked
  • Username + Password without Remember Me checked
  • Email + Password without Remember Me checked

karlm 12-12-2011 03:38 AM

Well that's good to know it works for you...

I have disabled all other plugins and tried it alone - still no joy this side though. Great shame too, as it would have been an excellent tool for my site.

HMBeaty 12-12-2011 03:45 AM

Try this: https://vborg.vbsupport.ru/showpost....5&postcount=39

BCP Hung 12-12-2011 03:53 AM

Maybe same with Allow users to login with their email address OR username, but, I hope your remember cookie work good, that one can not remember me when login with email.

Anyway, you have best work ever with this !

HMBeaty 12-12-2011 04:00 AM

No, not sure why the link got messed up in the first post, but it's a port of this mod:

https://vborg.vbsupport.ru/showthread.php?t=220985

karlm 12-12-2011 04:29 AM

Quote:

Originally Posted by HMBeaty (Post 2276948)

That seems to have fixed this for me, thanks! Now to try it with other plugins.... (crosses fingers).

v123shine 12-12-2011 05:39 AM

Dear HMBeaty, can you make this mod for vb.3.8
Please!!

HMBeaty 12-12-2011 05:47 AM

Quote:

Originally Posted by v123shine (Post 2276975)
Dear HMBeaty, can you make this mod for vb.3.8
Please!!

....
Quote:

Originally Posted by HMBeaty (Post 2276956)
No, not sure why the link got messed up in the first post, but it's a port of this mod:

https://vborg.vbsupport.ru/showthread.php?t=220985


Gemma 12-12-2011 08:41 AM

Thank you, another addon from HMBeaty that seems simple but is very effective and practical - and when you see them in action it makes you wonder why the vB development team can't include them to begin with.

Thanks again :)

socialteenz 12-12-2011 12:24 PM

Thank you, i was looking for something like this. Will report this after installation once i reach back to home!!

OldSchoolDSL 01-02-2012 06:11 PM

Quote:

Originally Posted by HMBeaty (Post 2276948)

This really should be a default for vBulletin and I can't imagine why it isn't. XenForo, IPB, phpBB, SFM, and many others already have this as standard.

Installed and working

4.1.10 Alpha 2

Would you mind if I made this a request for this to be an improvement feature for vBulletin?

HMBeaty 01-02-2012 06:36 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2283108)
This really should be a default for vBulletin and I can't imagine why it isn't. XenForo, IPB, phpBB, SFM, and many others already have this as standard.

Installed and working

4.1.10 Alpha 2

Would you mind if I made this a request for this to be an improvement feature for vBulletin?

If I remember correctly, this is already in JIRA somewhere

OldSchoolDSL 01-02-2012 06:45 PM

Quote:

Originally Posted by HMBeaty (Post 2283112)
If I remember correctly, this is already in JIRA somewhere

The search on JIRA really could use some improving. But yes, I found it.

http://tracker.vbulletin.com/browse/VBIV-9646

Nirjonadda 02-24-2012 08:25 PM

Its not working for vB 4.1.10

filebucket 02-25-2012 02:11 AM

Quote:

Originally Posted by Nirjonadda (Post 2303061)
Its not working for vB 4.1.10

It works when you apply the fix they already mentioned in the comments: https://vborg.vbsupport.ru/showpost....5&postcount=39

webphangan 03-12-2012 03:07 AM

I will try

Amit86 05-21-2012 08:54 AM

Quote:

Originally Posted by filebucket (Post 2303128)
It works when you apply the fix they already mentioned in the comments: https://vborg.vbsupport.ru/showpost....5&postcount=39

tested it, it works ( i tried before and it didnt because i had the plugin disabled )

peterkohar 06-02-2012 01:37 AM

thanks, it's work perfectly in my forum using VB 4.1.11

AshenTemper 10-06-2012 10:48 PM

So, I have it working but I've come across an issue that I can only track back to the modification recommended to the functions_login.php file:
Quote:

Originally Posted by HMBeaty (Post 2276948)

If I leave the username and password fields blank and just click on the login button, users receive the following PHP ererror that reveals the location of the login script and also that its using an eval() statement (which I believe is a security concern):

Quote:

Parse error: syntax error, unexpected T_IF in /home/*SITENAME*/*SITEURL*/forum/includes/functions_login.php(215) : eval()'d code on line 3
Granted, I replaced some of the data above but you get the idea. By reverting the functions_login.php file and disabling the mod, it works just fine but then I don't get to allow my users to login via email. Is there a way to fix this?

vilia100 10-11-2012 06:51 PM

Quote:

Originally Posted by AshenTemper (Post 2371270)
So, I have it working but I've come across an issue that I can only track back to the modification recommended to the functions_login.php file:


If I leave the username and password fields blank and just click on the login button, users receive the following PHP ererror that reveals the location of the login script and also that its using an eval() statement (which I believe is a security concern):



Granted, I replaced some of the data above but you get the idea. By reverting the functions_login.php file and disabling the mod, it works just fine but then I don't get to allow my users to login via email. Is there a way to fix this?

There are two issues:
1. At first you should ensure that the feature is enabled in Options: AdminCP -> Options -> [USML] Login by Username or Email
2. In addition there is an error in Plugin. You should Go to the AdminCP -> Plugins & Products -> Plugin Manager. Then find the following plugin: [USML] Login by Username or Email (it should be the last one in the list) and Edit it.
Finally you have to add the opening bracket in first string to correct the error:
From
PHP Code:

if ($vbulletin->options['usml_login_nameemail_enable'

to
PHP Code:

if ($vbulletin->options['usml_login_nameemail_enable']) 

Then save and everything should work

Good luck!

BadgerDog 10-14-2012 07:06 PM

Quote:

Originally Posted by vilia100 (Post 2372354)
2. In addition there is an error in Plugin. You should Go to the AdminCP -> Plugins & Products -> Plugin Manager. Then find the following plugin: [USML] Login by Username or Email (it should be the last one in the list) and Edit it.
Finally you have to add the opening bracket in first string to correct the error:
From
PHP Code:

if ($vbulletin->options['usml_login_nameemail_enable'

to
PHP Code:

if ($vbulletin->options['usml_login_nameemail_enable']) 

Then save and everything should work

Good luck!

Installed on 4.1.3pl5 with thanks .. :)

Didn't work until I made vilia's change ... thank you vilia. :up:

Works fine now... nice feature ...

Regards,
Doug

Stratis 04-27-2015 01:29 PM

1 Attachment(s)
Very nice thanks guys.

Here reαdy without editing plugin


All times are GMT. The time now is 04:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01267 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete