Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 11th July 2008, 03:52
nako75018 nako75018 is offline
Senior Member
 
Join Date: Jan 2008
Posts: 15
Default TS v1.3.9 by Xam Last 10 Torrents
hello i want make like torrentsstrike x-fusion for last torrent but i don't know what i do in my database beacause when a make this code i have one errer help me

Code:
<?begin_frame("Last 10 Torrents",true,5);?>
<?
    //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("<marquee scrollAmount=3 onMouseover=this.scrollAmount=0 onMouseout=this.scrollAmount=3 scrolldelay=0 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($name, 0, 50);
    print("<img src=$poster width=100 height=142 title=$name border=0>");
    }
    print("</marquee></tr>");
    //End of Last X torrents with poster and marquee mod

?>
Reply With Quote
  #2  
Old 11th July 2008, 04:35
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default Re: TS v1.3.9 by Xam Last 10 Torrents
what is the error you get?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 12th July 2008, 22:28
nako75018 nako75018 is offline
Senior Member
 
Join Date: Jan 2008
Posts: 15
Default Re: TS v1.3.9 by Xam Last 10 Torrents
i have this

Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /data/18/1/75/141/1564956/user/1685657/htdocs/index.php on line 452
Reply With Quote
  #4  
Old 12th July 2008, 22:46
reptileking reptileking is offline
Senior Member
 
Join Date: Jul 2008
Posts: 34
Default Re: TS v1.3.9 by Xam Last 10 Torrents
why dont u use 4.3 nulled ??
Reply With Quote
  #5  
Old 12th July 2008, 23:24
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Re: TS v1.3.9 by Xam Last 10 Torrents
add poster sql in ur database

Code:
ALTER TABLE torrents ADD poster VARCHAR(255) NOT NULL
Reply With Quote
  #6  
Old 1st January 2009, 22:55
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default thanks
works awesome
Reply With Quote
Reply

Tags
10 , torrents , xam

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Torrents.ro Fynnon Community Cafe 2 21st January 2015 12:45
What.cd has over 200,000 torrents Fynnon Community Cafe 0 14th July 2008 15:54
Top 3 Torrents jora33 Yuna Scatari Edition (YSE) 0 3rd July 2008 10:57



All times are GMT +2. The time now is 06:58. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.