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
User Posts

Go to Profile

Any ideas??
Secure Centos — 2010-11-19 22:52:54 in General Chat
On carat networks
Secure Centos — 2010-11-19 11:58:10 in General Chat
Hello guys! I would to know how can I secure my Centos... I find this [url="http://www.securecentos.com/"]site[/url] but It hasn't too much.

So if you Know a site with tutorials or whatever plz post  :huh:  (I try google but I don't find something specific)
Php,mysql books — 2010-11-16 21:49:44 in General Chat
Ok thank you very much!!
Php,mysql books — 2010-11-16 21:06:31 in General Chat
Thank you very much dj for this BIG post  :huh:  I download the editor!!

Also one question.... Php is hard to learn? Because I see on the files a lot of variables and I scared a little :)
Php,mysql books — 2010-11-16 19:41:16 in General Chat
Hello guys! I know i am so annoying with my noobs questions so I take the desicion to start learn php and sql. I know a little html

If you know a good english  book for dummies plz give me a link to download it  :huh:

Thank you very much!
And how can i change it?
I found a bug on torrent search. When you order by seeders for example the sticky torrents still appears.
There isn't an option on torrent upload page only on edit!

Could you post your code to tell you how to instert the image(functions.php)
Yes DJ my fault!! Now it is correct!

[updated firtst post]
Screens added!
"thedarklord, post: 67414":
[url="http://www.torrenttrader.org/index.php?showtopic=7428&hl=sticky"]http://www.torrenttrader.org/index.php?sho...8&hl=sticky[/url]

Yes but this i think,this is only for prenium users
@djhowarth Just edit the torrent and turn it off .. @thedarklord i didn't find anything about stiky torrent..
[size=12px][font='Arial Black']I ported this from tbdev by Tony![/font][/size]

ALTER TABLE torrents ADD `sticky` enum('0','1') NOT NULL default '0';
On torrent search.php and torrent.php find the big query and add:




torrents.sticky





and look something like this:





$query = "SELECT torrents.name, torrents.seeder, torrents.sticky....





Also on torrents-search.php and torrents.php



find:





$orderby = "ORDER BY  " . $column . " " . $ascdesc;





and replace with:





$orderby = "ORDER BY torrents.sticky desc, " . $column . " " . $ascdesc;







On torrents-edit



find:



 

  if ($CURUSER["edit_torrents"] == "yes")

$updateset[] = "freeleech = '".$_POST["freeleech"]."'";





add below:



 

 if ($CURUSER["edit_torrents"] == "yes")

$updateset[] = "sticky = '".$_POST["sticky"]."'";





find:





if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){

echo "<tr><td align=right><B>".FREE_LEECH.": </b></TD><TD><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />".FREE_LEECH_MSG."<br>";

}





add below:





if ($CURUSER["edit_torrents"] == "yes")

echo "<tr><td align=right><B>".Sticky.": </b></TD><TD><input type=\"checkbox\" name=\"sticky\"" . (($row["sticky"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />Sticky torrent<br>";





On funtions.php



find:





$smallname = htmlspecialchars(CutName($row["name"], $char1));





Add below



$sticky = ($row[sticky]=="1" ? "<img src='images/sticky.gif' bored='0' alt='sticky'>" : "");





Now you have to add the image wherever you want.



For example add $sticky on(dont copy this!!):





print("<td class=ttable_col$x nowrap><a href=\"torrents-details.php?id=$id&hit=1\" onmouseover=\" return overlib('<img  class=glossy src=$balon width=200 border=0>', CENTER);\" onmouseout=\"return nd();\">$sticky $dispname $checked</a><br>$descrs");



:huh:

Upload the image on images as sticky.gif



Thaanks!
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728