Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Last X torrents (http://www.bvlist.com/showthread.php?t=2537)

sammygo 1st May 2009 15:38

Last X torrents
 
Here is Last X torrents with poster and marquee function.

Here is the code
Code:

//Start of Last X torrents with poster and marquee mod
$query="SELECT id, name, poster FROM torrents WHERE poster <> '' ORDER BY added DESC LIMIT XXX";
$result=mysql_query($query);$num = mysql_num_rows($result);
print("");
print("

Last XXX Torrents

");
print("
");
while ($row = mysql_fetch_assoc($result))  {
$id = $row['id'];
$name = $row['name'];
$poster = $row['poster'];
$name = str_replace('_', ' ' , $name);
$name = str_replace('.', ' ' , $name);
$name = substr($name, 0, 50);
print("");
}
print("
");
//End of Last X torrents with poster and marquee mod

Change this :
Code:

DESC LIMIT XXX
And this :
Code:

print("

Last XXX Torrents

");

Thanks to Cue @ tbdev.net for this mod :X :drink:
Picture:
http://img335.imageshack.us/img335/792/lastxxxez2.jpg

Strikey 5th May 2009 04:48

TBDEV
 
Another post copied from tbdev

bestlap 23rd January 2013 10:29

In tbdev 08 dosen't work >>

http://i.imgur.com/nJA97Mk.jpg

Chez 23rd January 2013 12:51

//

bestlap 23rd January 2013 17:39

Quote:

Originally Posted by Chez (Post 39030)
//

:sos:?

Chez 23rd January 2013 18:32

add this in index.php where do you want to appear

PHP Code:

//== Start of Last X torrents with poster and marquee mod ==//
$query="SELECT id, name, poster FROM torrents WHERE poster <> '' ORDER BY added DESC LIMIT 10";
$result=mysql_query($query);$num mysql_num_rows($result);
print(
"<table cellpadding=2 width=93% align=center><tr><td colspan=1 align=center>
<marquee scrollAmount=2 onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=2 scrolldelay=50 direction=left>"
);
while (
$row mysql_fetch_assoc($result))  {
$id $row['id'];
$name $row['name'];
$poster $row['poster'];
$name str_replace('_'' ' $name);
$name str_replace('.'' ' $name);
$name substr($name050);
if (!empty(
$poster)){
print(
"<a href=$BASEURL/details.php?id=$id title=$name><img src=$poster width=120 height=180 title=$name border=0></a>");
} else {
print(
"<a href=$BASEURL/details.php?id=$id title=$name><img src=pic/poster.jpg width=120 height=180 title=$name border=0></a>");
} } print(
"</marquee></td></tr></table>");
//== End of Last X torrents with poster and marquee mod ==// 

and run this SQL query in phpmyadmin

PHP Code:

ALTER TABLE torrents ADD `posterblob 



All times are GMT +2. The time now is 06:00.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.