Siemka

zapodaje wam moda Nowy wygląd freeleecha

Screen:

Autor: tuno12
Pamiętajcie

nasze motto to: "Nie dla szmat z TorrentMani"

No to teraz robota

Pamiętajcie zanim zabierzecie się za wgrywanie pamiętajcie że macie wgrane:
http://btdev.torrentinvite.orgindex.php/?topic=721.0No to teraz nowy wygląd freeleecha:
bittorrent.php
Znajdź i usuń:
$thisisfree = ($row[free]=="yes" ? "<img src='pic/freedownload.gif' />" : ""); Znajdź:
print("<td align=center style='padding: 0px'>");
if (isset($row["cat_name"])) {
print("<a href=\"browse.php?cat=" . $row["category"] . "\">");dodaj
powyżej:
if ($row['free'] == 'yes')
print("<tr class=darmowy>\n"); No to mamy już wyświetlenie w przeglądaniu

No to teraz bierzemy się za :
detalis.php:
Znajdź:
$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, LENGTH(torrents.nfo) AS nfosz, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, categories.name AS cat_name, users.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id")zmień na:
$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.free, torrents.filename, LENGTH(torrents.nfo) AS nfosz, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, categories.name AS cat_name, users.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id")Znajdź:
tr("Info hash", preg_replace_callback('/./s', "hex_esc", hash_pad($row["info_hash"])));Dodaj poniżej:
if ($row['free'] == 'yes')
{
print("<tr><td class=rowhead bgcolor=#79DF79>Darmowy</td><td align=left bgcolor=#79DF79>Tak</td></tr>\n");
}No to mamy już ładny freeleech.... ale brakuje nam zmiennej w css
w twoim css dodaj:
tr.darmowy td
{
background-color: #79DF79;
}Ok no to mamy już komplet

Zapodaje również narzędzie do włączania freeleecha i wyłączania, każdych i ze względu na rozmiar pliku

Pliki w załączniku.
Testowałem wszystko na silniku MrVirago 1,5 wersja finalna, ale na innych silnikach też powinno działać:)
Pozdro.

Wrazie problemów proszę pisać.