Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
[USML] Login by Username or Email Details »»
[USML] Login by Username or Email
Version: 1.0.0, by HMBeaty HMBeaty is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 12-10-2011 Last Update: Never Installs: 64
Uses Plugins
 
No support by the author.

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"

Download Now

File Type: zip [USML] Login by Username or Email (1.0.0).zip (2.9 KB, 402 views)

Screenshots

File Type: jpg vBulletin Options.jpg (44.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Gorgasm, nacaruncr

Comments
  #22  
Old 05-21-2012, 08:54 AM
Amit86 Amit86 is offline
 
Join Date: Feb 2008
Location: Israel
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filebucket View Post
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 )
Reply With Quote
  #23  
Old 06-02-2012, 01:37 AM
peterkohar peterkohar is offline
 
Join Date: Aug 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, it's work perfectly in my forum using VB 4.1.11
Reply With Quote
  #24  
Old 10-06-2012, 10:48 PM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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?
Reply With Quote
  #25  
Old 10-11-2012, 06:51 PM
vilia100 vilia100 is offline
 
Join Date: Jul 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AshenTemper View Post
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!
Reply With Quote
  #26  
Old 10-14-2012, 07:06 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vilia100 View Post
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
Reply With Quote
  #27  
Old 04-27-2015, 01:29 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice thanks guys.

Here reαdy without editing plugin
Attached Files
File Type: xml product-usml_login_nameemail.xml (3.5 KB, 25 views)
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 05:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07016 seconds
  • Memory Usage 2,307KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete