vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Email Login (https://vborg.vbsupport.ru/showthread.php?t=95915)

Logikos 09-09-2005 07:02 AM

Email Login
 
I don't have much time to create this hack. I wanted to make my forums where the user can login with there email instead of a username...

upon registering they don't enter a username... just email, password, ect...

Andreas 09-09-2005 07:12 AM

Just curious ... what would be the sense of doing this?u

Vizionz 09-09-2005 07:45 AM

i am pretty sure thats gonna be a custum hack and will most likely cost you. i dont think to many would be interested in a forum filled with email addresses. whos online list would be huge if you had a big forum.

Logikos 09-09-2005 04:00 PM

For a project that I'm doing:

What would be Usernames would be display names that can be changed by the user anytime they wish...

That being said, since alot of the user will often change there displayname (aka: username) i would like them to login using there email address...

All I need is the login part hacked, what you would see on the WOL and postbits would be there display name... which would change often...

Its a personal project that I'm doing for myself... I would hack all this myself, but I thought I would try to save some time... :)

Protoman 09-23-2005 03:52 AM

I'd probably use this hack too. I'm doing a comparison of IPB 2.1's features to vbulletin 3.5 and basically going to request every feature they have for vbulletin :rolleyes:

and one of thier admin options is to allow login by usernames or by email addresses (although not both)

jugo 09-23-2005 12:27 PM

That would actually be really really useful.

I think it would be a very much used hack....there is alot of benefit from this, because you cannot create an account without a valid email.

Good idea Live Wire...as always.

Marco van Herwaarden 09-23-2005 12:30 PM

Quote:

Originally Posted by jugo
there is alot of benefit from this, because you cannot create an account without a valid email

Please explain, i really don't get this. What got this to do with the name you use to sign in?

Protoman 09-23-2005 01:31 PM

I just thought this would be an easy mod that if for some reason they can't remember their username, but they know their email and password they could still get on the site without having to do the 'I Lost my password' routine.

Marco van Herwaarden 09-23-2005 01:35 PM

Sorry to say, but that is a lousy reason in my personal opinion. What make you think they can remember their email then? Seems to me like a lot of work just so that occasionally someone don't need to use the Lost Password routine.

In most cases the username will be shorter (easier to remember??) then their email, and if they are afraid they would forget, then just use the part before the @ of their mail as username.

Wayne Luke 09-23-2005 01:38 PM

Why not just use this hack here:
https://vborg.vbsupport.ru/showthrea...ighlight=alias

Logikos 09-23-2005 02:55 PM

I was requested this hack for a personal website that I'm making. The reason why I wanted to use email login was because I wanted to allow members to change there 'display name' anytime they want. Kinda like MySpace. You login with your email, then you can change your display name to what ever you want and anytime you want.

I also agree that its easier to login with emails. No one forgets there email address.... Or do they¿.. Anyway, I was hoping someone would create this for me as i don't have much time anymore as I used to.

I just wanted the login part to be hacked. When they register they still choose a username/password and enter there email addy. I would have to just hack the login.php file to check emails addresses in the database other then the username. Of course edit the navbar template for the form. It was a long shot so I said why not. If I do happen to create this, I will release it to the public.

Marco van Herwaarden 09-23-2005 03:01 PM

I have a slight feeling that a future vB version already might have this as a standard feature. But that is just guessing.

You would have to make 100% sure that there are no dupe mail addresses.

Marco van Herwaarden 09-23-2005 03:30 PM

1 File edit:
in file includes/functions_login.php, find:
PHP Code:

    if ($vbulletin->userinfo $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " TABLE_PREFIX "user WHERE username = '" $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'")) 

and replace by:
PHP Code:

    // Start hack login with mail address (MarcoH64)
    //    if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
    
if (!$vbulletin->userinfo $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " TABLE_PREFIX "user WHERE username = '" $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
    {
        
$vbulletin->userinfo $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, username, password, salt FROM " TABLE_PREFIX "user WHERE email = '" $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'");
    }
    if (
$vbulletin->userinfo)
    
// End hack login with mail address (MarcoH64) 

This will allow logging in with either mail or username.

Protoman 09-23-2005 06:01 PM

sweet, you should release this hack! you did all the work :D

Marco van Herwaarden 09-23-2005 06:56 PM

Someone should first really test it. I only did this in a 2 minute job on my localhost and it seemed to work.

john1744 09-23-2005 07:02 PM

Live Wire, I would love that hack, the being able to change username part. I look forward to this immensely.

Protoman 09-23-2005 08:08 PM

well, I just tested it and it works great on PHP5 :)

sorry Live Wire if this thread sorta wandered off topic :nervous:
this code should get you half way there though

Logikos 09-23-2005 08:32 PM

Thanks Marco! :)

Boofo 09-23-2005 08:58 PM

Quote:

Originally Posted by MarcoH64
Someone should first really test it. I only did this in a 2 minute job on my localhost and it seemed to work.

I've seen what Marco can do with a simple comma, you might want to thoroughly test this first everyone. LOL

Protoman 09-23-2005 09:39 PM

I only see 1 situation that could cause a problem with this system.

I suggest doing the following: AdminCP> options > User Registration Options >
Set 'Illegal Usernames' to "@" (minus quotes)

Marco van Herwaarden 09-24-2005 04:59 AM

Hmm i doubt that this could cause any problems. What problems would you see with a username formatted like an email address?

Protoman 09-24-2005 01:43 PM

just a personal preference to keep people from using emails as their username

T3MEDIA 09-24-2005 05:26 PM

thats hot. makes your site like lavalife

Mr Chad 10-10-2005 05:17 AM

this is also useful if you changed someones user name it can be.

Account or Email:
Password:

djhawky 12-30-2005 06:06 PM

For some reason now that i placed MarcoH64's hack the system is no longer paying attention to people awaiting email verification and logging them in. Any ideas?

akanevsky 12-31-2005 12:06 PM

I'll finish up marco's hack and release it k?

Quote:

For some reason now that i placed MarcoH64's hack the system is no longer paying attention to people awaiting email verification and logging them in. Any ideas?
That's how it always was, wasn't it? People login but stay in the "awaiting email authorization" usergroup...

Boofo 12-31-2005 12:33 PM

Quote:

Originally Posted by Psionic Vision
I'll finish up marco's hack and release it k?

Make sure you clear it with him first. ;)

akanevsky 12-31-2005 12:34 PM

Ok ;) Marco, can I release your hack - with all credits of course?

Logikos 12-31-2005 03:47 PM

https://vborg.vbsupport.ru/showthrea...threadid=96832
https://vborg.vbsupport.ru/showthrea...threadid=96855


All times are GMT. The time now is 04:47 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.01179 seconds
  • Memory Usage 1,783KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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