You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 114 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Input email address for forgotten usernames. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Mon Sep 13, 2004 12:16 am Reply with quoteBack to top

Ok well lets see here...

This is not tested. Files I looked at where from Nuke 7.3.

MAKE A BACKUP!


Open the modules/Your_Account/index.php

#-----------[FIND]-------------#

Code:

function pass_lost() {


In that function find this line:
Code:

           .""._NICKNAME.":</td><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n"


Underneath it add:
Code:

           ."<tr><td>"._EMAIL.":</td><td><input type=\"text\" name=\"user_email\" size=\"30\" maxlength=\"50\"></td></tr>\n"


#-----------[FIND]-------------#

Code:

function mail_password($username, $code) {


Change that to

Code:

function mail_password($username, $user_email, $code) {


In that funtion find

Code:

$sql = "SELECT user_email, user_password FROM ".$user_prefix."_users WHERE username='$username'";


Change that to

Code:

$sql = "SELECT username, user_email, user_password FROM ".$user_prefix."_users WHERE username='$username' OR user_email='$user_email'";


Find

Code:

   $user_email = $row[user_email];


Before it add

Code:

   $username = $row[username];



Find

Code:

   /* If no Code, send it */
   } else {
       $sql = "SELECT user_email, user_password FROM ".$user_prefix."_users WHERE username='$username'";


Change the sql to

Code:

          $sql = "SELECT username, user_email, user_password FROM ".$user_prefix."_users WHERE username='$username' OR user_email='$user_email'";



Find
Code:

   $user_email = $row[user_email];


Before it add

Code:


   $username = $row[username];


#-----------[FIND]-------------#
All the way don by the bottom

Code:

    case "mailpasswd":
   mail_password($username, $code);
   break;


change it to

Code:


    case "mailpasswd":
   mail_password($username, $user_email, $code);
   break;



If you look in the language file (modules/Your_Account/language/lang-english.php) for the define:

Code:

_NOPROBLEM

You can change that to say something like type in your email or user name.

Let me know how it goes.

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
guynuked
Nuke Cadet
Nuke Cadet


Joined: Oct 08, 2005
Posts: 2


PostPosted: Sat Oct 08, 2005 11:13 am Reply with quoteBack to top

Hello, its been very long time since I've been back to this board. (Actually, I'm Clerc but forgot my password and has old email address on record!

Teli,

Is this hack still good?
Find all posts by guynukedView user's profileSend private message
ishtar
Sergeant
Sergeant


Joined: Jun 19, 2005
Posts: 96

Location: Suriname

PostPosted: Mon Oct 10, 2005 2:05 pm Reply with quoteBack to top

ok im having kind of a problem similar to this one. ok heres the problem:

when a new user registrates and after that forgets his password :@ and clicks on the forget password button [without even clicking on the account activation button :@], the reply email goes straight to my webhosting provider :@:@

i already got 2 emails from him [my webhosting provider] where he complains about it and asks me to check my scripts again, in which i have very less knowledge. does anyone have a solution for this problem, cos its kind of pissing me off.

anyway, thanks for the help.

_________________
www.metalsuriname.com
Find all posts by ishtarView user's profileSend private messageMSN Messenger
pjdm
Nuke Cadet
Nuke Cadet


Joined: Jun 21, 2003
Posts: 3


PostPosted: Sun Oct 23, 2005 6:19 pm Reply with quoteBack to top

I am looking for the same mod. I have lots of users who forget everything including their username, passwords and the email they used.

A link to re-send the username to the registered email would be great. I've promised this my site, probably the biggest problem I have regarding logins.

If I see anything I will post it back here.
Find all posts by pjdmView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.228 Seconds - 270 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::