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
Recommended Torrents for 2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-01-05 09:15:21
SQL:



ALTER TABLE torrents ADD `recommended` enum('yes','no') NOT NULL default 'no';

In torrents-edit.php

Find:




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

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

}




Below, add:





if(get_user_class($CURUSER) > 6){

echo "<tr><td align=right><b>Recommended: </b></td><td><input type='checkbox' name='recommended'" . (($row["recommended"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />";

}






Find:





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




Below, add:





if(get_user_class($CURUSER) > 6){

if ($_POST["recommended"] == "yes")

$updateset[] = "recommended = 'yes'";

else

$updateset[] = "recommended = 'no'";

}






In index.php

Find:





stdhead(T_("HOME"));




Below, add:





//===| Start Recommended Torrents |===//

begin_frame("Recommended Torrents");

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY torrents.id DESC LIMIT 5");

if (mysql_num_rows($rec) > 0) {

print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");

while ($row2 = mysql_fetch_array($rec, MYSQL_NUM)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' title="$altname | $cat" width=150 height=210></a>

<div style='margin-top:3px; font: Arial 11px'>

<img src=images/check.png height='11' title='Completed' border=0> <font color=#0080FF><b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='11' title='Seeders' border=0> <font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='11' title='Leechers' border=0> <font color=#FF0000><b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");

}

end_frame();

//===| End Recommended Torrents |===//




Upload into images the files contained in the attached archive, and that's all.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6447"]images.zip[/url]

images.zip
Download
recommended.png
recommended.png
2013-01-05 20:43:46
Thanks You BigMax1  :D

Edit torrents-edit.php

if(get_user_class($CURUSER) > 6){

   echo "<tr><td align=right><b>".T_("RECOMMENDED").": </b></td><td><input type='checkbox' name='recommended'" . (($row["recommended"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />&nbsp;".T_("INFO_RECOMMENDED")."<br /></td></tr>";

}
Edit index.php


begin_frame(T_("RECOMMENDED_TORRENTS"));



French

//Start Recommended Torrents

$LANG["RECOMMENDED_TORRENTS"] = "Torrent Recommandées";

$LANG["RECOMMENDED"] = "Recommandées";

$LANG["INFO_RECOMMENDED"] = "Cochez la case pour recommander ce torrent.";

English

//Start Recommended Torrents

$LANG["RECOMMENDED_TORRENTS"] = "Recommended Torrents";

$LANG["RECOMMENDED"] = "Recommended";

$LANG["INFO_RECOMMENDED"] = "Notch the box to recommend this torrent.";
Unknown User
2013-01-05 23:59:42
Nice works great !

To ad slider:

In index.php

Find:

stdhead(T_("HOME"));
Below, add:




//===| Start Recommended Torrents |===//

begin_frame("Recommended Torrents");

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limit number of images

if (mysql_num_rows($rec) > 0) {

print("<table align=center cellpadding=4 cellspacing=0 width=100% border=0 class=marquee id=mycrawler2><tr>");

while ($row2 = mysql_fetch_array($rec, MYSQL_NUM)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width=150 height=210></a>

<div style='margin-top:3px; font: Arial 11px'>

<img src=images/check.png height='11' title='Completed' border=0> <font color=#0080FF><b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='11' title='Seeders' border=0> <font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='11' title='Leechers' border=0> <font color=#FF0000><b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");

}

end_frame();

//===| End Recommended Torrents |===//





add in your themes header.php before </head> tag







<!--recommended -->

<script type="text/javascript" src="js/crawler.js">

<script type="text/javascript" src="js/jquery.min.js">

</script>

<script type="text/javascript">

marqueeInit({

uniqueid: 'mycrawler2',

style: {

},

inc: 5, //speed - pixel increment for each iteration of this marquee's movement

mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)

moveatleast: 2,

neutral: 150,

savedirection: true,

random: false

});

</script>

<!--recommended -->



and Upload attached files to public_html/js directory.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6451"]crawler.js[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6452"]jquery.min.js[/url]
crawler.js
Download
jquery.min.js
Download
Unknown User
2013-01-06 01:20:00
@darknova

<table> 


its 2013 dude.:(
Unknown User
2013-01-06 04:29:40
This slider is very nice darknova   :)   and works properly in Mozilla Firefox and Google Chrome.

But it seems that crawler.js has a problem with Internet Explorer 9 (Windows 7 SP1 x64) because I don't see nothing, just a empty window...

I see that the slider works perfectly at your tracker with IE9, what changes have you forgot to post here?  :D
Unknown User
2013-01-06 08:09:46
I have noticed sometimes just changing



<script type="text/javascript" src="js/crawler.js">

<script type="text/javascript" src="js/jquery.min.js">

</script>

to




<script type="text/javascript" src="<?php echo $site_config["SITEURL"];?>/js/crawler.js"></script>

<script type="text/javascript" src="<?php echo $site_config["SITEURL"];?>/js/jquery.min.js"></script>



fixes some browser issues.
Unknown User
2013-01-06 10:11:39
You're right ArcticWolf, but in this case it doesn't work, the problem is elsewhere.

I suppose it would be crawler.js blame, but I don't know enough about java...
Unknown User
2013-01-06 12:18:27
Ok it dont look like its crawler.js to blame.. the newer themes for TT have something in the header file to load for html5

adding this to the header file before </head>

seems to fix it from what I see, atleast in IE 9, I dont have an lower version to see if below works LOL!!





<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<meta http-equiv="X-UA-Compatible" content="IE=9"/>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

<meta http-equiv="X-UA-Compatible" content="IE=8"/>

<meta http-equiv="cache-control" content="no-cache">

<meta http-equiv="pragma" content="no-cache">

<!-- CSS -->

<!--[if lt IE 9]>

<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>

<![endif]-->


I been modifying all my themes i use on my site to basically have the same stuff between <head> and </head> other then well css and any special java for like xmas snow.

what that .js does https://code.google.com/p/html5shim/
Unknown User
2013-01-06 16:08:21
Thank ArcticWolf but I abandoned this crawler because I discovered another problem.

I have installed Movie-Torrent CapTcha and it doesn't work properly together with him...
Unknown User
2013-01-06 18:17:07
btw if you use announcement system with slider, announcement comes behind to pictures when you click the alert.

i couldn't solve it then moved announcement contents position a little up.

@BigMax1 it works [url="http://incitorrent.com/index.php"]here[/url].

fyi there is some differences between Darknova's code and mine.

[url="https://www.torrenttrader.org/topic/6833-addon-recommended-torrents/page__st__40#entry87635"]https://www.torrentt...__40#entry87635[/url]

And idk what excatly Movie-Torrent CapTcha is but if you don't use that on index.php then you can make your crawler.js to just work in index.php, right?



<? if ($page == "index") {

echo ("<script type='text/javascript' src='js/crawler.js'></script>")

}

?>

Unknown User
2013-01-07 06:18:45
after I put this on it did not work as my themes are payed ones and I dont know that much about php only html plz help.
Unknown User
2013-01-13 20:41:14
nice thx
Unknown User
2013-04-08 16:07:31
"darknova, post: 87909":
Nice works great !

To ad slider:

In index.php

Find:

stdhead(T_("HOME"));
Below, add:




//===| Start Recommended Torrents |===//

begin_frame("Recommended Torrents");

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limit number of images

if (mysql_num_rows($rec) > 0) {

print("<table align=center cellpadding=4 cellspacing=0 width=100% border=0 class=marquee id=mycrawler2><tr>");

while ($row2 = mysql_fetch_array($rec, MYSQL_NUM)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' title="$altname | $cat" width=150 height=210></a>

<div style='margin-top:3px; font: Arial 11px'>

<img src=images/check.png height='11' title='Completed' border=0> <font color=#0080FF><b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='11' title='Seeders' border=0> <font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='11' title='Leechers' border=0> <font color=#FF0000><b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");

}

end_frame();

//===| End Recommended Torrents |===//





add in your themes header.php before </head> tag







<!--recommended -->

<script type="text/javascript" src="js/crawler.js">

<script type="text/javascript" src="js/jquery.min.js">

</script>

<script type="text/javascript">

marqueeInit({

uniqueid: 'mycrawler2',

style: {

},

inc: 5, //speed - pixel increment for each iteration of this marquee's movement

mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)

moveatleast: 2,

neutral: 150,

savedirection: true,

random: false

});

</script>

<!--recommended -->



and Upload attached files to public_html/js directory.

Does not work.
Unknown User
2013-06-15 04:30:05
[color=rgb(40,40,40)]Nice works[/color]
Unknown User
2013-06-19 15:24:35
Great nova it works
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728