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
Silver torrents
Controls ·  Search New posts · Mark unread

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

Unknown User
2010-04-15 00:11:27
Please reup silver image plz
Unknown User
2010-04-15 18:47:44
"Obama, post: 63098":
Please reup silver image plz




silver.gif
silver.gif
golden.gif
golden.gif
bronze.gif
bronze.gif
Unknown User
2010-11-03 13:24:08
So if is ENUM yes,no i have to change in announce

        }elseif ($torrent["silver"] == 2){
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/2) WHERE id=$userid") or err("Tracker error: Unable to update stats");

whit this one

        }elseif ($torrent["silver"] == yes){
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/yes) WHERE id=$userid") or err("Tracker error: Unable to update stats");

but want work like this.the count not  only 50% the count like is freeleech  :)  which one is god for ENUM yes,no?
Unknown User
2010-11-03 13:29:00
an enum will not work you cant divise numbers / by text lmao
Unknown User
2010-11-03 14:45:05
so you mean this one is right

}elseif ($torrent["silver"] == yes){
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/2) WHERE id=$userid") or err("Tracker error: Unable to update stats");
Unknown User
2010-11-03 14:54:28
yep
Unknown User
2010-11-03 14:55:57
thnx bro :)
2010-11-11 03:32:42
fonctionne pas sur  la version V2.06  :)

~~~~~~~~~~~~~~~~~~~~~~~~~

not work on Version V2.06 :D
Unknown User
2011-02-24 15:31:01
Hi Guys,

I would be interested in this MOD but I was wondering if it's working or not?  I understand this MOD is in a Progress mode and it would be nice to finish it since TT would be taking some delay from the competition.

Thanx. Regards.

******************************************************************

Bonjour
Unknown User
2011-02-26 09:59:49
"tiloup, post: 67300":
fonctionne pas sur  la version V2.06  ;) ~~~~~~~~~~~~~~~~~~~~~~~~~

not work on Version V2.06  ;)

works fine on 2.6 u musta done something wrong

i downloaded a torrent 349mb and here were my stats

Downloaded: 174.73 MB

Uploaded: 0.00 B

Class: Coder

Privacy Level: normal

Ratio: 0.00
Unknown User
2011-02-26 13:51:01
Bonjour TheDarklord,

Merci pour l'info.  Je l'essaie rapidement.

Bonne Journ
Unknown User
2011-03-30 15:51:38
Hi Guys,

Cam someone help!  Can someone recap this MOD to make a refresh! I have edit the PHP files like mention in the first post and can't find some of the information below.  I have v2.06 of TT.  Maybe these lines are not available in v2.06.  Maybe these line don't have to be there to make this MOD work.

Edit TORRENTS.PHP

find:

case 'freeleech': $sort = "torrents.freeleech"; $addparam .= "sort=freeleech&"; break;



add after:

case 'silver': $sort = "torrents.silver"; $addparam .= "sort=silver&"; break;



find:

echo "<option value='freeleech'" . ($_GET["sort"] == "freeleech" ? "selected" : "") . ">Freeleech</option>";


add after

echo "<option value='silver'" . ($_GET["sort"] == "silver" ? "selected" : "") . ">silver</option>";



Edit TORRENTS-SEARCH.PHP

find:

<option value="3">Free Leech</option>


add after:

<option value="4">silver</option>



Edit ANNOUNCE.PHP  ( What to do with this line? )

find:

if ($row["silver"]

$dispname .= " <img src='images/silver.gif' border='0'>";

Thanx. Regards.
2011-04-25 16:20:35
Svp possible de mettre update pour la pros
Unknown User
2011-04-25 16:43:23
"tiloup, post: 72241":
Svp possible de mettre update pour la pros
Unknown User
2011-04-25 19:10:23
here for the people with difficulty installing this

ALTER TABLE torrents ADD silver ENUM ('0','1') DEFAULT '0';
open functions.php



find:




if ($row["freeleech"] == 1)

$dispname .= " <img src='images/free.gif' border='0'>";





add after







if ($row["silver"] == 1)

$dispname .= " <img src='images/silver.gif' border='0'>";





open torrents.php



find





$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech,





add after





torrents.silver,





this isnt even in torrents.php so i ignored it





case 'freeleech': $sort = "torrents.freeleech"; $addparam .= "sort=freeleech&"; break;



case 'silver': $sort = "torrents.silver"; $addparam .= "sort=silver&"; break;



echo "<option value='freeleech'" . ($_GET["sort"] == "freeleech" ? "selected" : "") . ">Freeleech</option>";



echo "<option value='silver'" . ($_GET["sort"] == "silver" ? "selected" : "") . ">silver</option>";





but can be added i guess if u read torrents.php



open torrent-edit



find





$updateset[] = "freeleech = '".$_POST["freeleech"]."'";





add after





$updateset[] = "silver = '".$_POST["silver"]."'";





find





if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){

echo "<tr><td align=right><B>".T_("FREE_LEECH").": </b></TD><TD><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />".T_("FREE_LEECH_MSG")."<br>";

}





add after





if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){

echo "<tr><td align=right><B>silver: </b></TD><TD><input type=\"checkbox\" name=\"silver\"" . (($row["silver"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />Leeching is 50% free? (Only 50% downloading Counts)<br>";

}





open index.php



in the big torrent query add





torrents.silver,





and whereever else u wanna put it



torrents search.php



find





// Include freeleech

if ($_GET["freeleech"] == 1) {

$addparam .= "freeleech=1&amp;";

$thisurl .= "freeleech=1&amp;";

$wherea[] = "freeleech = '0'";

} elseif ($_GET["freeleech"] == 2) {

$addparam .= "freeleech=2&amp;";

$thisurl .= "freeleech=2&amp;";

$wherea[] = "freeleech = '1'";

}





add after





// Include silver

if ($_GET["silver"] == 1) {

$addparam .= "silver=1&amp;";

$thisurl .= "silver=1&amp;";

$wherea[] = "silver = '0'";

} elseif ($_GET["silver"] == 2) {

$addparam .= "silver=2&amp;";

$thisurl .= "silver=2&amp;";

$wherea[] = "silver = '1'";

}





find





<option value="1" <?php if ($_GET["freeleech"] == 1) echo "selected"; ?>><?php echo T_("NOT_FREELEECH");?></option>

<option value="2" <?php if ($_GET["freeleech"] == 2) echo "selected"; ?>><?php echo T_("ONLY_FREELEECH");?></option>





add after





<option value="3" <?php if ($_GET["silver"] == 1) echo "selected"; ?>><?php echo T_("NOT_SILVER");?></option>

<option value="4" <?php if ($_GET["silver"] == 2) echo "selected"; ?>><?php echo T_("ONLY_SILVER");?></option>







languages/english.php



b4 the last





?>





add





//Silver Torrent Language

$LANG["NOT_SILVER"] = "Not Silver";

$LANG["ONLY_SILVER"] = "Only Silver";





in the big query find





torrents.freeleech,





add after





torrents.silver,





open announce.php



find





$torrentfields = "id, name, info_hash, category, banned, freeleech, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts, seeders, leechers, times_completed"; //torrent details to get





replace with





$torrentfields = "id, name, info_hash, category, banned, freeleech, silver, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts, seeders, leechers, times_completed"; //torrent details to get





find





}else{

mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error: Unable to update stats");





add before





 }elseif ($torrent["silver"] == 1){

mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/2) WHERE id=$userid") or err("Tracker error: Unable to update stats");



and for premium members if u search in the premium section there is a set all torrents silver option in the admincp if u search for it

ill also add the option for the upload page later so you can let uploaders set silver torrents
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