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
2008-11-29 22:08:44
did not work wat i posted
Unknown User
2009-03-29 18:07:29
The scrolling part would be nice because now you are stopped by the limit, lets say 5, and

no more pictures will be shown after that according to the torrent-id as now.
Unknown User
2009-04-01 09:50:56
TY working great ;)
Unknown User
2009-04-03 20:15:00
how can we make it scroling??

but not only 5 or 6 but all recomend we have!!

thnx!!!
Unknown User
2009-04-05 20:59:17
"world, post: 55980":
how can we make it scroling??but not only 5 or 6 but all recomend we have!!

thnx!!!

take this out of the query

LIMIT 6
Unknown User
2009-04-06 08:13:33
and scroll?? how ca i make it??
Unknown User
2009-04-09 20:03:37
For this users who wants to be scroll. This source is completely edited by me

// Recommended torrents images

// Edited by YoungKostov

begin_frame("Recommended torrents");

$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 6"); ///limit number of images



if (mysql_num_rows($news) > 0) {

print("<marquee behavior=alternate direction=left onMouseOver=stop(); onMouseOut=start();><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 height=90></a>";

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

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



}

}

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

}

end_frame();



P.S This code must be put in index.php after:



//Site Notice

if ($site_config['SITENOTICEON']){

begin_frame("" . NOTICE . "");

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

end_frame();

}
Unknown User
2009-04-24 22:15:47
thnx a lot m8!!!! works fine this one is better for me with a litle modification... ;)

// Recommended torrents images
// Edited by YoungKostov

begin_frame("Recommended torrents");

$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 50" ); ///limit number of images

if (mysql_num_rows($news) > 0) {

print("<marquee direction=right onMouseOver=stop(); onMouseOut=start();><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=130 height=140></a>";

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

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

}

}

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

}

end_frame();
Unknown User
2009-04-26 19:18:05
so give best code full of whis mod.. ty
Unknown User
2009-06-28 22:19:12
best code thanks all
Unknown User
2009-06-28 23:56:43
give us the best code for this addon
Unknown User
2009-08-07 16:45:58
Thanks,

Works with the latest SVN also.

Peace.........
Unknown User
2010-01-31 16:31:30
work great thanks TT v2
Unknown User
2010-02-04 17:44:41
Is there any way to divide it in two rows so it shows three pictures at the upper row and 3 above?

I'd really appreciate that  <_<

Thanks
Unknown User
2010-09-27 13:12:38
HELLO ,i have the problem with a frame torrent recommanded:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /public_html/index.php on line 30

What is it?
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