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
[MOD]Show invites sent in Advanced Stati
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-07-15 22:16:59
This will add Invites Sent: to the Advanced Statistics block so it will show how many invites in total ur members have sent

blocks/Advancestats_block.php

Find

$result = mysql_query("SELECT SUM(downloaded) AS totaldl FROM users"); 

while ($row = mysql_fetch_array ($result)) {

$totaldownloaded = $row["totaldl"];

}
Add below


//Invites sent mod by fozshell

$result = mysql_query("SELECT SUM(invitees) AS total FROM users");

while ($row = mysql_fetch_array ($result)) {

$totalinvites = $row["total"];

}



Find



echo "<br><small>".T_("MESSAGES_SENT").":<b> " . $nmessages . "</b></small>";



Add below



echo "<br><small>".T_("INVITES_SENT").":<b> " . $totalinvites . "</b></small>";



SAVE AND UPLOAD



languages/english.php

Find at bottom



?>



Add beffore



$LANG["INVITES_SENT"] ="Invites Sent";



SAVE AND UPLOAD

Enjoy
2011-07-16 04:35:22
Hello fozshell, an image please!  :D
Unknown User
2011-07-16 12:26:51
"tiloup, post: 73595":
Hello fozshell, an image please!   :D


stats.png
stats.png
Unknown User
2011-07-22 19:02:22
I just checked multiple invites are saved in the same row so something like this will be better.

	$totalinvites = 0;



$res = mysql_query("SELECT invitees FROM users WHERE invitees != ''");

while ($row = mysql_fetch_assoc($res)) {

$invitees = explode(" ", $row["invitees"]);

$totalinvites += count($invitees);

}
2011-07-23 00:37:18
Collll fozshell BIG THANK!   :D

..DJ, thanks you update! lol  :D  :D
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