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
User Posts

Go to Profile

I still don't see why takeconfirm.php and form box into invite.php exists. It shouldn't exist there. Users should NOT be allowed to confirm users they invite or see them at all. Once code is used that's it. It should be removed automatically and shouldn't exist anymore, nor inviter should be able to confirm, non-confirmed user they invite due to privacy reasons. Only moderators should see who invites who, so they can ban all of them if they see abuse.
"serph, post: 66794, member: 1398":

$site_config['CONFIRMEMAIL'] = false;        //Enable / Disable Signup confirmation email

should be set  to false

It is, I think I need to add takeconfirm.php code into account-signup.php so it automatically removes the code from user invite.php after successful registration

       SQL_Query_exec("UPDATE users SET status = 'confirmed' WHERE id IN (" . implode(", ", $_POST['conusr']) . ") AND status='pending'");
       SQL_Query_exec("UPDATE invites SET confirmed='yes' WHERE inviteid IN (" . implode(", ", $_POST['conusr']) . ") AND confirmed='no'");


Can I put it somewhere here the code above?


...else{

   if ($site_config["INVITEONLY"] && $site_config["CONFIRMEMAIL"]){

   $status = "pending";

   }else{

       $status = "confirmed"; <---- HERE below this

   }
"serph, post: 66792, member: 1398":

did you remove the @SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', 'New User:".$wantusername." ')"); in account-signup.php
on my site its removing the created invite after you confirm the user i need [USER=311]@MicroMonkey[/USER] to test it on his end and see if its doing the same for him

The problem is i set no email confirmation, so users are automatically confirmed without needing to confirm them inside invite.php. They are not pending, they have confirmed as soon as they register.
"serph, post: 66790, member: 1398":

Deleting a code gives you the code back that's what it's supposed to do confirming a pending member removes the created code after you have confirmed them and you don't get the invite back the invites are already reduced because you've created a code ie -1 invite or am I not understanding your post

For example, my profile has 1 invites left.

I generated "ce913c8d140f6f0277940ea88e3f2a7" and registered a new account which is confirmed. This code can not be used again, but it stays inside my invite list. If i delete this code, I again can create 1 new code. And i can repeat that cycle infinite times. So I will always have 1 code left. Is it possible to delete it without confirming them? To disable this confirm option as it should be automatically removed once code is used
"serph, post: 66788, member: 1398":

ok ive got it working looks like the ajshoutbox code was cuasing it to bug out remove it from account-signup.php

  @SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', 'New User:".$wantusername." ')");


it working for me if it works for everyone else ill clean up the code a bit and post in completed ive found one bug that needs sorted

Yes, that works!

Now 2 bugs left:
1. After code is used, it should be removed automatically from the inviter list and reduce -1 to invites.
2. Delete and recreate code is still bugged you can recreate as many as you want codes because deleting doesn't reduce -1 to your invite list. It just let you recreate a new code.
"MicroMonkey, post: 66786, member: 311":

the invited_by table in my test database shows 1, so I have to assume its working and I saw no such errors in my  tests. invitedate is also recorded

The problem was my windows localhost mistake heh. Okay it works perfect. The only bug left is to fix when code is used it can't be used again and to be removed automatically from invite list.
   $ret = SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, age, country, gender, client, stylesheet, language, class, ip, invited_by, invitedate) VALUES (" .
     implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip(), $i["inviter"], get_date_time()))).")");


I found a bug. $i["inviter"], get_date_time() are not working from the code. Could it be a SQL error when signing up?
"MicroMonkey, post: 66782, member: 311":

should solve the "nothing selected" problem. Still thinking about the other issues
takeconfirm.php
<?php
require_once("backend/functions.php");
dbconn();
$id = (int) $_GET["id"];
if (!@count($_POST['conusr'])) autolink("invite.php", "Nothing Selected.");
SQL_Query_exec("UPDATE users SET status = 'confirmed' WHERE id IN (" . implode(", ", $_POST['conusr']) . ") AND status='pending'");
SQL_Query_exec("UPDATE invites SET confirmed='yes' WHERE inviteid IN (" . implode(", ", $_POST['conusr']) . ") AND confirmed='no'");
header("Refresh: 0; url=invite.php?id=$id");
?>


Do you have a database error when user registers with invitation code successfully? It shows for me the empty sqlerr with dataase error. If code is invalid then it shows the code is invalid, but the problem is that valid registration shows this database error, but account is created.
"MicroMonkey, post: 66759, member: 311":

Oh, ok , very well then. 1 mistake found. In account-signup.php
find
    $id = mysqli_insert_id($GLOBALS[DBconnector]);

change to
   $id = mysqli_insert_id($GLOBALS["DBconnector"]);

double quotes missing. It would screw up everything if it cant connect to the database.

This is not a relevant part as it is for shoutbox mod which is not required

 
 @SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', 'New User:".$wantusername." ')");
   $id = mysqli_insert_id($GLOBALS["DBconnector"]);


Edit: Try pressing confirm user without selecting them into invite.php it will show you `Database Error. Please report this to an administrator.`

Edit2: Can you try to use the same code 2 times before confirming the user. It is a bug which is letting people register multiple times.
"serph, post: 66768, member: 1398":

what page and line num  is the implode error your getting [USER=20311]@shadows[/USER] ?

Warning: implode(): Invalid arguments passed in takeconfirm.php on line 6
SQL  is the first thing i did. The codes are not delering when used and one code can be used infinite time.

Also it says that implode is an invalid argument i n 7.2
"MicroMonkey, post: 66757, member: 311":

also, I guess you have to use the edits listed in the original mod? https://www.torrenttrader.xyz/index.php?threads/invite-code-system.3246/ There are quite a few edits that need to be done to that also. mysql_query needs changed, mysql_insert_id, etc

It's already changed in the archive provided by [USER=1398]@serph[/USER] at post #5
"MicroMonkey, post: 66755, member: 311":

the files have a few short open php tags. Will cause issues if your php is set to not use open tags. Close the tags ie:<?php, not <? . I only saw this by looking at the code. I did not test this mod yet, so maybe after I give it a try I can help more, but I would start there

Its just a rendering, yeah it may or may not cause code to be rendered. Depends on a version.
"serph, post: 66753, member: 1398":

problem is mate this mod was made for tbdev about 10 years ago i modded it to work with v2.05 nearly 9 yrs ago wow takes me back
needs a proper updating to newest version and im rusty as get out ill tinker with it if i get it ill post but wont be till weekend need to set a dev site up etc
and you said you had a
2. After signup, it shows "Database Error. Please report this to an administrator." (the account is being created)
and theres nothing in the sqlerr log in admincp?

It shows only date with empty column

"serph, post: 66751, member: 1398":

whats the db error your getting ? and what version of tt are you using ?
and yeah ive just noticed its not deleteing the invite after confirm user mmm was working this morning
tbh i dont have alot of time to debug but im sure its to do with the $id = (int) $_GET["id"]; (not getting the id )
if anyone wants to give a hand its been a number of years since i messed with code

tt 3.0 default from here. no error logs given other than this implode.

If someone knows how to fix those issue it would be so good.
Will test it and report here back.

[USER=1398]@serph[/USER] seems like it's broken on php 7.2

1. Warning: implode(): Invalid arguments passed in D:\xampp\htdocs\takeconfirm.php on line 6
2. After signup, it shows "Database Error. Please report this to an administrator." (the account is being created)
3. One invitation code can be used unlimited times (bug).
4. You can delete and recreate 1 invitation code and confirm accounts and it will be always there...
"m-jay, post: 66686, member: 20288":

Password verify is on account login and for the converter it's a specific piece of code which I'll highlight in case some one else can help
That post you linked to is a good example it's just a case of defining password lenght (bycryt is longer) then verify or update old password then verify, its bugging me I'm so close

Maybe something like this?
password_hash(sha/md5($_POST['password']));
"m-jay, post: 66684, member: 20288":

Think I finally got bcrypt or argon2 encryption working for fresh install of v3
For old boards I'm still struggling to convert the old md5 passwords the only option is to recover account. I'll post what I have just doing some last test.
Another way is possibly having a back door like account-login2.php to login with old passwords then members can reset password in account settings

We need to use password_verify(); for old accounts. It should be working

Or we should use double hashing like this https://stackoverflow.com/a/18906896
problem to register — 2019-06-06 07:09:34 in v3 Support
"nitro, post: 66677, member: 20322":

Hello, where do I find this mode?

Google it how to disable it
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728