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
2011-04-25 19:30:46
cheers darklord , might attempt it now :lol:
Unknown User
2011-04-25 19:57:52
torrents-upload.php

find

if ($anonyupload == "yes")  {

$anon = "yes";  

} else {

$anon = "no";

}
add after




$silver = 0+$_POST['silver'];





find





torrentlang,





add after





silver,





in the same line



find





'".$langid."',





add after





'".$silver."',





find





if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>

<TR><TD align=right>Upload Anonymous: </td><td><?php printf("<input name=anonycheck value=yes type=radio" . ($anonycheck ? " checked" : "") . ">Yes <input name=anonycheck value=no type=radio" . (!$anonycheck ? " checked" : "") . ">No"); ?> &nbsp;<I>(Your userid will not be associated to this upload)</font>

</td></tr>

<?php

}





add after





print("<tr><td align=right>Silver: </td><td><input type=radio name=silver value=1>Yes <input type=radio name=silver value=0 checked=checked>No &nbsp; (<i>Only 50% downloading Counts</i>)");



and if you ever wanted to know how to add freeleech to your upload page

change all the silver to freeleech :lol:
Unknown User
2011-04-25 23:19:13
Hi Thedarklord,

This is extremely appreciated when people like you take the time to help the community. This will improve it.  I will try it asap.  This must be an easter gift! We never know, this MOD will shurely become a FINISHED one!

Thanx. Regards.
2011-04-25 23:22:41
Wowwww!! big thancks thedarklord,

...comme si vous aviez faite ca toute votre vie! lolll   :lol:

\**************/

...as if you had done it all your life! lolll   :D

Merci beaucoup!
Unknown User
2011-04-26 14:05:31
To add in torrent details

find in torrent-details.php

	if ($row["external"]!='yes' && $row["freeleech"]=='1'){

print ("<B>Free Leech: </b><font color=red><b>This torrent is freeleech so only upload counts!</b></font><BR>");

}





and after add



	if ($row["external"]!='yes' && $row["silver"]=='1'){

print ("<B>Silver torrent: </b><font color=red><b>This torrent is 50% freeleech so only 50% download counts!</b></font><BR>");

}



and in the res=mysql after

 torrents.freeleech,



add



 torrents.silver,
Unknown User
2011-04-26 14:20:11
Hi SJC2TK,

Thanx for this enhanced add-on.

Cheers m8.
Unknown User
2011-04-26 20:24:52
have also updated my post

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";
2011-04-26 22:50:51
Coolllllllllll THANCKS YOU!!  :lol:
Unknown User
2011-05-07 06:28:22
"SJC2TK, post: 72258":
To add in torrent details
find in torrent-details.php

	if ($row["external"]!='yes' && $row["freeleech"]=='1'){

print ("<B>Free Leech: </b><font color=red><b>This torrent is freeleech so only upload counts!</b></font><BR>");

}





and after add



	if ($row["external"]!='yes' && $row["silver"]=='1'){

print ("<B>Silver torrent: </b><font color=red><b>This torrent is 50% freeleech so only 50% download counts!</b></font><BR>");

}




I think this must be:



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

print ("<B>Silver torrent: </b><font color=red><b>This torrent is 50% freeleech so only 50% download counts!</b></font><BR>");

}







Also add torrents-today in big query:



torrents.silver,
Unknown User
2011-05-07 13:50:06
"thedarklord, post: 72270":
have also updated my post
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";



Hi the darklord,

These part are really easy to follow, unfortunately, and I don't know if I am the only one, but if I click on Only Silver in the search engine, it doesn't work properly.  Would it be possible to help out!  I have attached my torrents-search.php.

And thanx again for this great MOD

Regards.  Secure by knowledge!

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4913"]torrents_search.php[/url]
torrents_search.php
Download
Unknown User
2011-05-07 14:05:16
I use tt v. 2.05 and i have like that this search:

//include dead



switch($_GET['incldead']) {

case 1:

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

$wherea[] = "banned != 'yes'";

break;

case 2:

$wherea[] = "visible = 'no'";

break;

case 3:

$addparam .= "incldead=3&amp;";

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

$wherea[] = "visible = 'yes'";

break;

case 4:

$addparam .= "incldead=4&amp;";

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

$wherea[] = "visible = 'yes'";

break;

default:

$wherea[] = "visible = 'yes'";



}

<select name=incldead>



<option value="0">Active</option>

<option value="1">Include Dead</option>

<option value="2">Only Dead</option>

<option value="3">FreeLeech</option>

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







</select>

I have freeleech mod also installled.

All working perfect :lol:

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4914"]torrents_search.php[/url]
torrents_search.php
Download
Unknown User
2011-05-07 18:21:13
Hi war02,

Thanx m8, this worked like a charm.  Always good to know that we can count on other members.  Can't wait to gain experience in PHP.

Cheers.
Unknown User
2011-05-07 20:27:36
"rdesormiers, post: 72410":
Hi war02,
Thanx m8, this worked like a charm.  Always good to know that we can count on other members.  Can't wait to gain experience in PHP.

Cheers.

sorry i only just got on glad to see u solved it :lol:
Unknown User
2011-05-07 22:01:47
To any Forum Moderator ( maybe djowarth ),

Without removing any credits to the first person who posted this MOD (world), would it be possible if The darklord could RE-CAP this MOD in a new tread. An excellent place where to post it would be in COMPLETED MOD.  Well, I can say this MOD works under v.2.06.

Note: I understand a MOD is never finished because there is always enhancements that can be done to it, but I am shure for newbie people, the first post will mix them up more than anything else...  Well, I am not ashamed to say like me at the begining!

Thanx. Regards.

Secure by knowledge.
Unknown User
2011-10-10 17:47:43
moved to mods completed
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