| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
brownas98 Nice poster


Offline Joined: Jan 13, 2005 Posts: 114 Location: Rio de Janeiro
|
Posted: Mon Sep 26, 2005 12:44 am Post subject: allow users to login using their email or their nickname |
|
hi,
just an idea because on my old site which i am moving to dragonfly at the moment i allow people to login using either their nickname(i call this username) or the email which they registered with.
i found that about 80% of users actaully use their email to login, maybe because they have so many different nicknames on various sites(could also apply to having maybe different emails address i suppose).
just a thought, eventually i will be doing this but i think its a good feature and would be much better if it was included as then people would not have to hack the code every time the files where updated.
thanks for listening
_________________ •●••●••●••●••●••●••●•๑۩۞۩๑•●••●••●••●••●••●••●•
Reality checks don't bounce
brownas98's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP Pro/Apache 2/MySQL 5.0.18-nt/PHP 5.1.2/Dragonfly CVS/phpMyAdmin 2.7.0-pl2
Last edited by brownas98 on Mon Sep 26, 2005 8:02 am; edited 1 time in total |
|
| Back to top |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: Mon Sep 26, 2005 4:56 am Post subject: Re: allow users to login using there email or their nickname |
|
sounds like a good idea to me, what happens if there are two people that use one email address though?
run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
|
|
| Back to top |
|
 |
xengoreth DocuMentor


Offline Joined: Jul 16, 2004 Posts: 49
|
Posted: Mon Sep 26, 2005 6:06 am Post subject: Re: allow users to login using there email or their nickname |
|
Actually, e-mail is unique per user, so no two accounts could have the same address. This wouldn't be too hard to implement.
xengoreth please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: Mon Sep 26, 2005 7:08 am Post subject: Re: allow users to login using there email or their nickname |
|
yea I suppose dragonfly doesnt allow multiple email registrations as it is so it wouldn't be a problem
_________________

run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
|
|
| Back to top |
|
 |
WebSiteGuru 1000+ Posts Club


Offline Joined: Jun 09, 2005 Posts: 2318
|
Posted: Mon Sep 26, 2005 2:26 pm Post subject: Re: allow users to login using their email or their nickname |
|
Yep, it should not be the problem using email instead of username. In some cases that I see, username is email address
_________________ Lead Theme Designer - WebSiteGuru Designs
WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Mon Sep 26, 2005 3:32 pm Post subject: Re: allow users to login using their email or their nickname |
|
that would be good and have (other login options) in the userinfo block to accomodate for it.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
jzky Supporter


Offline Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Posted: Tue Sep 27, 2005 7:46 pm Post subject: Re: allow users to login using their email or their nickname |
|
I like this one to.. have some users that dont remember theyr username, so e-mail login woud be nice
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1
|
|
| Back to top |
|
 |
WebSiteGuru 1000+ Posts Club


Offline Joined: Jun 09, 2005 Posts: 2318
|
Posted: Tue Sep 27, 2005 7:49 pm Post subject: Re: allow users to login using their email or their nickname |
|
| jzky wrote: |
| I like this one to.. have some users that dont remember theyr username, so e-mail login woud be nice |
FYI, some people have multiple email accounts and you know what happens. They forgot which one they used.
_________________ Lead Theme Designer - WebSiteGuru Designs
WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
|
| Back to top |
|
 |
JSellnau_TSCC Supporter


Offline Joined: Jul 12, 2005 Posts: 102 Location: La Crosse, WI USA
|
Posted: Tue Sep 27, 2005 8:46 pm Post subject: Re: allow users to login using their email or their nickname |
|
I think it would be good to maybe have an "either email or username" type of deal.
_________________ Joel
Tri-State Computer Consulting
jsellnau @ tsccgraphix.com
www.tsccgraphix.com
ww.tri-stateconsulting.net
JSellnau_TSCC's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) CentOS 3.4/Apache 1.3.34/mySQL 4.0.25/PHP 4.4.1/DF 9.0.6.1
|
|
| Back to top |
|
 |
WebSiteGuru 1000+ Posts Club


Offline Joined: Jun 09, 2005 Posts: 2318
|
Posted: Tue Sep 27, 2005 11:09 pm Post subject: Re: allow users to login using their email or their nickname |
|
Agreed with that. there should be an option to login for either.
_________________ Lead Theme Designer - WebSiteGuru Designs
WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
Posted: Tue Sep 27, 2005 11:20 pm Post subject: Re: allow users to login using their email or their nickname |
|
i think i found solution for this, i need more testing for this.
xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
|
|
| Back to top |
|
 |
JSellnau_TSCC Supporter


Offline Joined: Jul 12, 2005 Posts: 102 Location: La Crosse, WI USA
|
Posted: Wed Sep 28, 2005 12:28 am Post subject: Re: allow users to login using their email or their nickname |
|
Looking forward to it.
_________________ Joel
Tri-State Computer Consulting
jsellnau @ tsccgraphix.com
www.tsccgraphix.com
ww.tri-stateconsulting.net
JSellnau_TSCC's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) CentOS 3.4/Apache 1.3.34/mySQL 4.0.25/PHP 4.4.1/DF 9.0.6.1
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
Posted: Thu Sep 29, 2005 6:46 pm Post subject: Re: allow users to login using their email or their nickname |
|
okay i found it....
open includes/classes/cpg_member.php
in Line 105,
Find '.$user_prefix."_users WHERE username='$username' AND user_id>1"
Replace to
'.$user_prefix."_users WHERE username='$username' OR user_email='$username' AND user_id>1"
Careful, this file can be replace in future, it quite of Hack.
Tell me how it goes.
xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
|
|
| Back to top |
|
 |
Andreas 500+ Posts Club


Offline Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Posted: Thu Sep 29, 2005 8:09 pm Post subject: Re: allow users to login using their email or their nickname |
|
Why not add it to the Core? Does it add alot of queries? Does it slow down a site? I mean, added usability CANNOT be a drawback!  Suggest it to DJ, that would be my idea.
_________________ Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder
Andreas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1
|
|
| Back to top |
|
 |
|
|