|
#1
|
||||
|
||||
Silver Download for FTS
Sql:
Code:
ALTER TABLE `torrents` ADD `silver` enum('yes','no') default 'no' Code:
$res = mysql_query( "SELECT id, name, category, banned, free.... Code:
, silver Code:
if ($upthis > 0 || $downthis > 0) mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3"); } Code:
if ($upthis > 0 || $downthis > 0) if($torrent['free']=='yes') mysql_query("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error 3 (freeleech)"); else if($torrent['silver']=='yes') {$downthis=$downthis/2; $upthis = $upthis*2; mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3 (silver)"); } else mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3"); // mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3"); } Code:
, torrents.silver Code:
if(get_user_class()>=UC_MODERATOR) tr("Silver torrent", "<input type='checkbox' name='silver'" . (($row["silver"] == "yes") ? " checked='checked'" : "" ) . " value='1' /><img src=pic/silverdownload.gif border=0> Half tracked download (only half download is recorded)", 1); Code:
if(get_user_class()>=UC_MODERATOR) $updateset[] = "silver = '".($_POST["silver"]==1 ? 'yes' : 'no')."'"; Code:
$timezone = $row["added"]; Code:
$silver = ($row[silver]=="yes" ? "<img src='pic/silverdownload.gif' />" : ""); Code:
print("\"><b>$dispname</b></a> <b>(<font color=red>NEW</font>)</b> $thisisfree $silver <br>$timezone\n"); else print("\"><b>$dispname</b></a> $thisisfree $silver<br>$timezone\n"); Code:
$silver |
#2
|
|||
|
|||
I can,t find in functions.php
Code:
print("\"><b>$dispname</b></a> <b>(<font color=red>NEW</font>)</b> $thisisfree $silver <br>$timezone\n"); else print("\"><b>$dispname</b></a> $thisisfree $silver<br>$timezone\n"); |
#3
|
||||
|
||||
I think he means add rather than find
|
#4
|
|||
|
|||
ok, then Phogo where is supposed I have to add it?
I mean after o before what code:girl: |
#5
|
|||
|
|||
i think you have to replace this:
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
ok done, how can I know that now is working?
I mean where can I find out this silver option? |
#7
|
|||
|
|||
open /include/functions.php find:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
@elvira, edit and complete the mod in the first post. |
#8
|
|||
|
|||
Ok, done,
but how can someone that browse torrents notice that the torrent is silver? I mean when you browse and read torrent information, I can,t see a box o similar that indicates that torrent is silver... and how for the admin to know how much silver torrents are there? I mean for control, in the admin panel... thanks in advance |
#9
|
|||
|
|||
Quote:
|
#10
|
|||
|
|||
Ok, thank you,
|
Tags |
download , fts , silver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cant download | piders | TBDev | 1 | 10th February 2010 17:04 |
[xBTiT]HACK - Gold silver torrents by Losmi | bewithuu2 | xBTiT | 0 | 31st January 2010 12:28 |
I can download | ceausescu | xBTiT | 1 | 29th January 2010 13:36 |
TS 5.1 Download | Slatkis | Template Shares | 5 | 8th September 2008 15:53 |
New Theme For yse pre6 rc0: Silver | jora33 | Yuna Scatari Edition (YSE) | 5 | 18th August 2008 09:55 |