Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Resend Confirm Email
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

Unknown User
2019-07-11 08:15:04
Edit: this is working on my site i have reuploaded the files with the changes this is for the new  Bcrypt password mod wont work on older TT versions and email encrypt isnt added as i dont have it installed so cannot add it to this mod if someone has it feel free to play with code and post your findings

please bare in mind still need to add checks like if site email confirm etc :do not add mods[u] in progress to live sites [/u]

in account-login.php find
<a href="account-signup.php"><?php echo T_("SIGNUP"); ?></a> | <a href="account-recover.php"><?php echo T_("RECOVER_ACCOUNT"); ?></a>


Replace with

<a href="account-signup.php"><?php echo T_("SIGNUP"); ?></a> | <a href="account-recover.php"><?php echo T_("RECOVER_ACCOUNT"); ?></a> | <a href="emailresend.php"><?php echo T_("ACTIVE_RESEND"); ?></a> 


account-confirm.php find
if ($type =="noconf"){//email conf is disabled?
   stdhead(T_("ACCOUNT_ALREADY_CONFIRMED"));
   begin_frame(T_("PLEASE_NOW_LOGIN"));
   print(T_("PLEASE_NOW_LOGIN_REST"));
   end_frame();
   stdfoot();
   die();
}


Under add

if ($type == "resend" && validemail($email)) {
   stdhead(T_("ACTIVATE_RESEND"));
       begin_frame(T_("EMAIL_RESEND_SUCCESS"));
       if (!$site_config["ACONFIRM"]) {
           print(T_("EMAIL_RESEND_SUCCESS"). " (" . htmlspecialchars($email) . "). " .T_("ACCOUNT_CONFIRM_SENT_TO_ADDY_REST"). " <br/ >");
}
}


Still in account confirm find

if (!mysqli_affected_rows())


Replace with

if (!mysqli_affected_rows($GLOBALS["DBconnector"]))



Open Languages/english.php and add before the last ?>


//EMAIL RESEND
$LANG["EMAIL_RESEND_SUCCESS"] = "<br/><br/>Activation link resent You will need to read and respond to this email before you can use your account.<br/>If you don't do this, the new account will be deleted automatically after a few days.";
$LANG["ACTIVATE_RESEND"] = "Email activation resend";
$LANG["EMAIL_RESEND_SUCCESS"] = "Activation link sent successfully!";
$LANG["EMAIL_RESEND"] = "PLease Enter You're Email Address";
$LANG["EMAIL_ACTIVE_RE"] = "Resend Actavation Email";
$LANG["ACTIVE_RESEND"] = "Activation Resend";
$LANG["CORRECT_EMAIL_ADD"] = "<b>Please use the <Font color = 'red'>EMAIL</font> you created your account with!<br />";
/////END///////////////


Add attached file to root website folder
emailresend.zip
Download
Unknown User
2019-07-11 12:23:00
It will work, just make sure to include $signupclass = '1'; on account-signup.php. That's the problem which bugged all of this

https://www.torrenttrader.xyz/index.php?threads/important-password-update-ttv3.9804/#post-66895
2019-07-11 12:50:29
thanks, error... no account-confirm.php but on account-confirm-ok.php ;)
2019-07-11 13:53:43
md5 is part of the old passhash function that is outdated, with using the new password bycrypt this is no longer needed it didnt effect anything on password updates that i remember but when encrypting  emails it did. This is where its difficult to get a one size fits all approach.
Both of these needed updating to make TT more secure but if a member has the new password update you can just remove all md5 and that would work and with the encrypt email update its a case of calling $email or $mail

example remove $psecret = md5($secret);
then a few lines down change psecret to secret
$body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_APPROVED_EMAIL")."\n\n    ".$site_config['SITEURL']."/account-confirm.php?id=$id&secret=$secret\n\n".T_("HAS_BEEN_APPROVED_EMAIL_AFTER")."\n\n    ".T_("HAS_BEEN_APPROVED_EMAIL_DELETED")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
Unknown User
2019-07-11 16:59:01
I'll take a closer look when I'm better rested tomorrow ? thanks for the input everyone ?
Unknown User
2019-07-12 06:19:13
ok ive been looking at this and its weird dose outlook auto open url links? becuase i signup then go check phpmyadmin the user is pending i refresh the tab a few times user still pending then i go check outlook and see if  i got mail with id and secert ok no probelm thats there go to resend confirm email and in the confirm email no id no secert
and the accounts already confirmed so i check without the email resend and the account gets confirmed but not until i go to outlook and view the email with the id and secert im assuming that the resend confirm email has no id and secert becuase the account is already confirmed   :oops:

edit: apparently outlook dose i thourght i was going insane ? tested with gmail get the results that i wanted
First post updated
Unknown User
2019-07-13 14:07:40
Can anyone confirm this is working as should ? If it is I'll clean up and post in mods complete
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728