cheers darklord , might attempt it now :lol:
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"); ?> <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 (<i>Only 50% downloading Counts</i>)"); 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,
// Include freeleech
if ($_GET["freeleech"] == 1) {
$addparam .= "freeleech=1&";
$thisurl .= "freeleech=1&";
$wherea[] = "freeleech = '0'";
} elseif ($_GET["freeleech"] == 2) {
$addparam .= "freeleech=2&";
$thisurl .= "freeleech=2&";
$wherea[] = "freeleech = '1'";
}
add after
// Include silver
if ($_GET["silver"] == 1) {
$addparam .= "silver=1&";
$thisurl .= "silver=1&";
$wherea[] = "silver = '0'";
} elseif ($_GET["silver"] == 2) {
$addparam .= "silver=2&";
$thisurl .= "silver=2&";
$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";
"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>");
}
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,
"thedarklord, post: 72270":have also updated my post
torrents search.php
find
add after// Include freeleech
if ($_GET["freeleech"] == 1) {
$addparam .= "freeleech=1&";
$thisurl .= "freeleech=1&";
$wherea[] = "freeleech = '0'";
} elseif ($_GET["freeleech"] == 2) {
$addparam .= "freeleech=2&";
$thisurl .= "freeleech=2&";
$wherea[] = "freeleech = '1'";
}
// Include silver
if ($_GET["silver"] == 1) {
$addparam .= "silver=1&";
$thisurl .= "silver=1&";
$wherea[] = "silver = '0'";
} elseif ($_GET["silver"] == 2) {
$addparam .= "silver=2&";
$thisurl .= "silver=2&";
$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";
//include dead
switch($_GET['incldead']) {
case 1:
$addparam .= "incldead=1&";
$wherea[] = "banned != 'yes'";
break;
case 2:
$wherea[] = "visible = 'no'";
break;
case 3:
$addparam .= "incldead=3&";
$wherea[] = "freeleech = '1'";
$wherea[] = "visible = 'yes'";
break;
case 4:
$addparam .= "incldead=4&";
$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>"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.
No users online
Torrents
Members
Online