Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Notices

Reply
Thread Tools
  #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


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



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