"stolla, post: 72312":PLEASE, I need a v2.06 with the following mods at least.
1.V2.06 with newest SVN
2.Forum
3.IMDB
4.YouTube
5.IP History
6.Disable DHT
7.Scrolling latestimages_block
8. + any other extras
PLEASE !!
Stolla
// 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"; 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>)");ALTER TABLE torrents ADD silver ENUM ('0','1') DEFAULT '0';open functions.phpif ($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&";
$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";
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");"tiloup, post: 72241":Svp possible de mettre update pour la pros
"tiloup, post: 67300":fonctionne pas sur la version V2.06 ;) ~~~~~~~~~~~~~~~~~~~~~~~~~
not work on Version V2.06 ;)
// start irc announce hack v1.0 by FLASH
if ($IRCANNOUNCE)
{
$rs = mysql_query(" SELECT * FROM categories WHERE id='" . intval($catid) . "' LIMIT 1");
$cat_details = mysql_fetch_assoc($rs);
$msg_bt = chr(3)."2 New Torrent: (".chr(3)."10 $torrent".chr(3)."2 ) Size: (".chr(3)."10 ".mksize($torrentsize).chr(3)."2 ) Category: (".chr(3)."10 ".$cat_details["parent_cat"].": ". $cat_details["name"].chr(3)."2 ) Link: (".chr(3)."10 {$site_config['SITEURL']}/torrents-details.php?id=$id&hit=1".chr(3)."2 )\r\n";
$fs = fsockopen($ANNOUNCEIP, $ANNOUNCEPORT, $errno, $errstr);
if($fs) {
sleep(1);
fwrite($fs, $msg_bt);
fclose($fs);
}
}
//end irc announce hack v1.0 by FLASH if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_frame("SpeedTest Mini");
echo file_get_contents("speedtest/index.html");
end_frame();
} "SJC2TK, post: 70305":i'm getting the very latest files again now , and will try myself from scratch, hopefully post the fix
worked 100% for me , get latest files from here :[url="http://www.speedtest.net/mini.php"]http://www.speedtest.net/mini.php[/url]
create folder named speedtest extract all files into it and upload to root , rename index-php.html to index.html and in that replace code with
create file speedtest.php and put in<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Speedtest.net Mini Bandwidth Speed Test</title>
</head>
<body bgcolor="#000000">
<table border=0 width=100% height=100%>
<tr><td align=center valign=center>
<!-- BEGIN SPEED TEST - DO NOT ALTER BELOW-->
<script type="text/javascript" src="speedtest/speedtest/swfobject.js"></script>
<div id="speedtest">
Speed Test requires at least version 8 of Flash. <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Please update your client</a>.
</div>
<script type="text/javascript">
var so = new SWFObject("speedtest/speedtest.swf?v=2.1.5", "speedtest", "450", "250", "8", "#171715");
so.addVariable("upload_extension", "php");
so.write("speedtest");
</script>
<!-- END SPEED TEST - DO NOT ALTER ABOVE -->
</td></tr>
</table>
</body>
</html>
<?
require_once("backend/functions.php");
dbconn(false);
stdhead("SpeedTest Mini");
//Speedtest
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_frame("Oo. SpeedTest Mini .oO");
echo file_get_contents("speedtest/index.html");
end_frame();
}
stdfoot();
?>
then i created a link in navigation block where you want it to show
echo "- <a href=speedtest.php>Speedtest</a><BR>";
and as i say , works 100% for me
"clubehost, post: 69683":forum.php open fine (site.com/forums.php)
in admincp (site.com/admincp.php?action=forum) open white page ( sorry english)
"TorrentialStorm, post: 69330":Added it.
"TorrentialStorm, post: 69180":the latest forum posts frame?
latestforumposts();
Just remove that from forums.php.
"djhowarth, post: 68977":Here is a modification i made for somebody i think it looks rather nice :rolleyes:
"SJC2TK, post: 68919":Well , the time of year as arrived once again , and like many a child , i have a wish, i wish Dj could be considered to join the team. not being funny guys and gals , just look at the posts through 2010 ,and not just v2 and i bet almost 95% have been at least answered by dj , TS it wouldn't be a bad thing , he is here answering all the time , and also helping with 2.06 , anyway just a thought for 2011 , may all your wishes be answered and hope mine is also ........happy new year guys and gals