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"
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?
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'])
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: