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
Mailbox must be reworked for compose (Hi
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

Unknown User
2019-05-07 23:06:16
The current compose code is making huge stress to the database if for example there are 100k registered users.

The TO: row must be removed or reworked as an input field, rather than select which gets all users from the database.

   # Don't display yourself, Privacy is determined on acceptpms - (From All or Staff Only).
   $res = SQL_Query_exec("SELECT id, username FROM users WHERE id != $CURUSER[id] AND enabled = 'yes' AND status = 'confirmed' $where ORDER BY username");
   
   if (mysqli_num_rows($res))
   {
       $to = "<select name=\"userid\">\n";
       while ($arr = mysqli_fetch_assoc($res)) $to .= "<option value=\"$arr[id]\">$arr[username]</option>\n";
       $to .= "</select>\n";
   }
Unknown User
2019-05-20 19:17:02
Bumping this [USER=311]@MicroMonkey[/USER] / [USER=20288]@m-jay[/USER] any suggestion?

$_GET[$user[name]] must be defined if we change it to input field so when a user enters username it should take it as a get. (right now it must input user ID number)
2019-05-21 13:48:13
I'll have a look at this some point this week it should be input username but it would be better if once you type a letter it would recommend names, this helps with spelling so you don't get errors by users
Unknown User
2019-05-21 14:03:34
"m-jay, post: 66617, member: 20288":

I'll have a look at this some point this week it should be input username but it would be better if once you type a letter it would recommend names, this helps with spelling so you don't get errors by users

The problem is messages table in SQL doesn't contain the username, only ID. So we can't return username. (Sender is also an ID from the user who sent pm)


$arr[username] will get the username when inputed into the box, but pm will not be sent because it is uknown as username is not defined for sender and id.
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728