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
[BLOCK] Scrolling latestimages_block
Controls ·  Search New posts · Mark unread

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

Unknown User
2007-12-05 17:21:45
Hi Torrentrader city, had this srolling last images block for v2 (((( wrong code , look back)))

your new latestimages_block.php

<?

if ($CURUSER){

begin_block("Latest Posters");

$news = mysql_query("SELECT id, name, added, image1, image2 FROM torrents WHERE banned = 'no' AND visible='yes'");



if (mysql_num_rows($news) > 0) {



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



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

$tor = $row2['0'];

$altname = $row2['1'];

$date_time=get_date_time(time()-(3600*72)); // the 24 is the hours you want listed change by whatever you want

$orderby = "ORDER BY torrents.id DESC"; //Order



$limit = "LIMIT 5"; //Limit



$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 AND torrents.added >='$date_time' $orderby $limit");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];



$img1 = "<MARQUEE behavior=scroll direction='down' height='150' scrollamount='2' scrolldelay='20' onmouseover='this.stop()' onmouseout='this.start()'><center><a href='$site_config[SITEURL]/torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=150></a></marquee>";



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

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

}

}



print("</table>");



}

end_block();

}

?>
Unknown User
2007-12-09 00:54:55
i've installed this hack and uploaded the image1, but nothing is shown in Last Posters.

help
Unknown User
2007-12-11 21:51:41
EDIT:

the images are displayed, but they are static. they don't scroll.

help please. the site is horrible
Unknown User
2007-12-17 00:45:16
:( Thank You Very Nice  :P
Unknown User
2007-12-19 05:42:38
thank you work very good !  :(

but if i want all image scrool in same time not in 1 space for each image, it's possible ?
Unknown User
2008-01-17 05:24:30
like that ! [url="http://torrents.top-site-list.com/"]http://torrents.top-site-list.com/[/url]

and its possible to limit not by time but by number of image ...exemple show juste last 20 uplaod not 24 hours ,12,1 or mores ?
Unknown User
2008-01-18 15:02:35
no one have a idees i got a script for it but a need to adapt for TT a post the code later i hope

someone can help me :)
Unknown User
2008-01-18 15:36:10
[url="http://www.torrenttrader.org/index.php?showtopic=7688"]http://www.torrenttrader.org/index.php?showtopic=7688[/url]
Unknown User
2008-02-04 10:53:29
work very godd for me i have the v2.3

thanks

gia
Unknown User
2008-02-04 11:16:52
my images are static!!!
Unknown User
2008-02-13 14:33:22
how to invert the image the last image upload in the top and the oldest image on the back

thanks

gia
Unknown User
2008-02-13 14:55:05
Quote:
"ORDER BY torrents.id DESC"

i think i could be changed to ASC
Unknown User
2008-02-22 12:27:44
dont work for order ASC
Unknown User
2008-02-24 00:04:03
it function, but they are scrolling 2 images at the same time, and they cut at the middle of the block

someone?
Unknown User
2008-02-24 22:55:37
look the the picture. i want the images scrolling all the block, not the block divided in 3 spaces

[url="http://img257.imageshack.us/my.php?image=lastpostersnb9.jpg"][/url]
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