Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
  #1  
Old 22nd June 2009, 14:17
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default having problem with some images
so first is this i use this code for getting latest posters in my page worked finu until made torrent without poster (default poster) that was like handbrake for all page about minute until started to move .. why ? i think in code i missed part what says what to do if default image right ?
other when i hosted my page on localhost as only page on "browse" i see the posters when go to torrent details link but when i seted 2 pages on same host
Code:
 httpd.conf
with same source they disapeard .. wierd because basicli it shoud work right ? because it locates image by using baseurl and then add stuff or maybe i need to add my directory somewhere ?
sorry for long post :D :D have a nice reading (realy respect you if you readed this all )
PHP Code:
// Start of Last X torrents with poster mod
print("<h2>Latest images");
print(
"</h2>\n");
$query "SELECT id, name, poster FROM torrents WHERE poster <> '' ORDER BY added DESC limit 15";
$result mysql_query$query );
$num mysql_num_rows$result );
// count rows
if ( $CURUSER) {
  echo 
"<table width=100% border=1 cellspacing=0 cellpadding=10><tr><td align=center>\n";
    echo 
'<tr><td><marquee scrollAmount=3 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="right">';
    
$i 20;
    while ( 
$row mysql_fetch_assoc$result ) ) {
        
$id unsafeChar$row['id'] );
        
$name safeChar$row['name'] );
        
$poster safeChar$row['poster'] );
        
$name str_replace'_'' ' $name );
        
$name str_replace'.'' ' $name );
        
$name substr$name050 );
        if ( 
$i == )echo'</marquee><marquee scrollAmount=3 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="right">';
        echo 
"<a href=$BASEURL/details.php?id=$id title=\"$name\"><img src=\"" safeChar$poster ) . "\" width=\"100\" height=\"120\" title=\"$name\" border=0 /></a>";
        
$i++;
    }
    echo 
"</marquee></td></tr></table>";
}
// ////////End poster mod 
Reply With Quote
Reply

Tags
images , problem

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
Images in Torrents saggy00 Template Shares 4 27th January 2013 21:19
Upload 2 images on torrent saggy00 Template Shares 5 23rd January 2010 14:47
Need new Images joeroberts BT.Manager (phpMyBitTorrent) 4 19th June 2009 02:02
Images, Baners.... x517530 Template Shares 5 7th November 2008 04:15
Menu Text 2 Images Subzero Free Torrent Source 2 8th October 2008 11:18



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