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
[ADDON] Recommended Torrents
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-11-30 16:57:58
"XIII, post: 77041":
Well if you followed thedarklord's advice im sure it would of fixed the issue.

yea u r rite i was editing english.lang rather then English.php not it works but recommended section show when i click on Brose Torrent but i need it to show index page only in row not pictures..
Unknown User
2011-12-26 12:54:57
"BlazTorrents, post: 77026":
can you pls tel me where to put recommendedtorrents_block.php and where to add these lines?? i mean in index.php if so pls give me location of index.php that after which lines to add these as i edit other instruction i.e account.php,torrents-edit.php,config.php.Thanks


index.php find:

Quote:
//Site Noticeif ($site_config['SITENOTICEON']){

begin_frame(T_("NOTICE"));

echo $site_config['SITENOTICE'];

end_frame();

}

after

Quote:
/// Recommended torrents imagesbegin_frame("Recommended");

$news = mysql_query("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 7"); ///limit number of images

if (mysql_num_rows($news) > 0) {

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

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

$tor = $row2['0'];

$altname = $row2['1'];

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

$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, 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='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img border='0'

src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=90></a>";

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

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

}

}

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

}

end_frame();

/// end recommended torrent images

for block i think u need to change "begin_frame" to "begin_block" & "end_frame" to "end_block"

like this:

Recommended_block.php

Quote:
<?php
begin_block("Recommended");

$news = mysql_query("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 7"); ///limit number of images

if (mysql_num_rows($news) > 0) {

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

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

$tor = $row2['0'];

$altname = $row2['1'];

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

$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, 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='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img border='0'

src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=90></a>";

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

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

}

}

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

}

end_block();

?>

:lol:
Unknown User
2012-01-22 05:35:53

[url="http://www.torrenttrader.org/index.php?showuser=1911"]Skayver[/url] thanks. its ok for me with a little changes
Unknown User
2012-06-24 12:41:57
@ movie torrent .. i am getting this error

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u499341047/public_html/index.php on line 50
Unknown User
2012-07-23 18:23:31
i did everything, but can't get any option for recommending torrents in case of external torrents.



i am using TT v2.08
recommended torrents.png
recommended torrents.png
2012-11-18 22:10:58
Thanks for sharing. Works  :P  Now I've had some time to looked a little closer and there are some things that work and some do not. I like this addon. Maybe there is someone who can make it work for V2.08? Or maybe make a similar one.
Unknown User
2012-12-26 19:52:41
"Movie-Torrentz, post: 45125":
I think you mean like this:



_ThreeSixMafia_:

DUDE MS MARQUEE SUCKS.

maybe somebody wants to try this slider.

[url="http://incitorrent.com"]Demo[/url]

In index.php Find:



//Site Notice

if ($site_config['SITENOTICEON']){

begin_frame("" . NOTICE . "");

echo stripslashes($site_config['SITENOTICE']);

end_frame();

}






Before Add:






// recommended torrents

begin_frame("Recommended");

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

if (mysql_num_rows($news) > 0) {

?>

<div class="marquee" id="mycrawler2">

<?

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

$tor = $row2['0'];

$altname = $row2['1'];

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

$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, 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='{$site_config[sITEURL]}/torrents-details.php?id=$row[id]'><img src='uploads/images/{$row[image1]}' height=175> </a>";

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

print("". $img1 ."");

}

}

?>

</div>

<?

}

end_frame();

// 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=6407"]crawler.js[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6408"]jquery.min.js[/url]
crawler.js
Download
jquery.min.js
Download
Unknown User
2012-12-26 23:10:36
it as a bug when you take a recommended off it removes all recommended torrents
Unknown User
2013-01-01 14:28:18
The slider one .... how high is that on server load ? or not?  anyone can tell me ? I would love to implement it but I also do not want server response to degrade OR take note OR have my bandwidth skyrocket......
Unknown User
2013-01-03 11:36:28
THANKS ! Works great  on v2.08Having some issues with Firefox - the script from webknight post wont show...works fine with the rest of the browsers dough...

"webknight, post: 87635":
maybe somebody wants to try this slider.[url="http://incitorrent.com"]Demo[/url]


P.S.

works with all browsers fine - Firefox issues with new ver... fixed by reinstaling firefox
Unknown User
2013-01-05 05:03:41
works great with 2.08 ;)
Unknown User
2013-01-20 13:45:11
Issues, not refreshing in Firefox.... nice mod, if the firefox and waterfox issues can be addressed, could be nice to have....

However having to press F5 every time u come back into Home page just doesnt work...... removed.......
Unknown User
2013-01-20 16:55:11


// recommended torrents

begin_frame("Staff Recommended Torrents");

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

if (mysql_num_rows($news) > 0) {

print("<marquee scrollAmount=3 onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=3 scrolldelay=0 direction=MARQUEE BEHAVIOR=ALTERNATE><table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");

while ($row2 = mysql_fetch_array($news, 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.seeders, torrents.leechers, torrents.filename, torrents.name , 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'];

$shortname = $row['filename'];

$img1 = "<small><i><b>".$cat."</b></i></small><br><br><a href='{$site_config[sITEURL]}/torrents-details.php?id=$row[id]'><img class ='corner iradius20 ishadow33' border='0' src='uploads/images/{$row[image1]}' alt=\"$name / $cat\" title=$shortname height=160 width=113></a><br><br><img src=images/gore.png title=Seeders height=16 width=16 border=0><b>".$row['seeders']." </b>-- <b>".$row['leechers']."</b><img src=images/dole.png title=Leechers height=17 width=17 border=0>";

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

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

}

}

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

}

end_frame();

// recommended torrents




dole.png
dole.png
gore.png
gore.png
Unknown User
2013-01-21 04:44:42
Is this meant to completely replace the code we already have in index.php?

lol I hope so, cos thts what I did, and this seems to have solved the problem spank !!!!!!

Great mod on the code, especially love the addition of the cat headers........

keep it up, u good !!!    :D

LOL..... 1 problem thuogh.... its good in FF and waterfox...... doesnt work in chrome???? see screenshot.....



just sits there and its right offf the page??

pls advise???
Unknown User
2013-01-24 12:59:40
See my index.php:

echo "<br /><b>".T_("NO_NEWS")."</b>";

}

end_frame();

}

?><?php

include "recommended-torrents.php"

?><?php

// Shoutbox

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6519"]recommended-torrents.php[/url]
recommended-torrents.php
Download
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