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
Index page S/L color
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2022-01-28 02:34:17
Just a very simple edit to make it so that you dont just have green and red as the colors in your SEED and LEECH column on the index page. I just noticed it, and didnt like it much.
In backend/functions.php
			case 'seeders':
if ($row["seeders"] == "0")
print("<td class='ttable_col$x' align='center'><font size ='2' color='red'><b>".number_format($row["seeders"])."</b></font></td>\n");
else
print("<td class='ttable_col$x' align='center'><font size ='2' color='green'><b>".number_format($row["seeders"])."</b></font></td>\n");
break;
case 'leechers':
if ($row["leechers"] > "0")
print("<td class='ttable_col$x' align='center'><font size ='2' color='blue'><b>" . number_format($row["leechers"]) . "</b></font></td>\n");
else
print("<td class='ttable_col$x' align='center'><font size ='2' color='red'><b>" . number_format($row["leechers"]) . "</b></font></td>\n");
break;

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-01-28 02:48:30
2022-01-28 14:15:41
Nice one.
2022-01-29 17:02:23
good idea, thank you   👍
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: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728