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)

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 02:16 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.01114 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete