Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Add last torrents - image not available (http://www.bvlist.com/showthread.php?t=10585)

kira 15th November 2015 21:20

Add last torrents - image not available
 
add block last torrents images in the homepage
error we see just 'image not available' and not the poster

PHP Code:

//== Latest torrents
if (($last5torrents $mc1->get_value('last5_tor_')) === false) {
$sql "SELECT t.id, t.category, t.owner, t.seeders, t.poster, t.leechers, t.name, t.description, t.dcredits, t.times_completed, t.nuked, nukereason, t.added, c.name AS cat_name, c.image AS cat_img FROM torrents AS t LEFT JOIN categories AS c ON c.id = t.category WHERE visible='yes' ORDER BY added DESC LIMIT {$TBDEV['latest_torrents_limit']}";
$result mysqli_query($GLOBALS["___mysqli_ston"], $sql) or sqlerr(__FILE____LINE__);
while (
$last5torrent mysqli_fetch_assoc($result)) $last5torrents[] = $last5torrent;
 
$mc1->cache_value('last5_tor_'$last5torrents$TBDEV['expires']['last5_torrents']);
}
$HTMLOUT.= "<div class='roundedCorners' style='background:#ECE9D8;text-align:left;width:85%;border:1px solid #C0C0C0;padding:3px;'>
<div style='background:transparent;height:20px;'><span style='font-weight:bold;font-size:10pt;'>Derniers Torrents</span></div>"
;
$HTMLOUT.= "<table align='center' width='100%' border='0' cellspacing='0' cellpadding='5'>";
$HTMLOUT.= empty($last5torrent["poster"]) ? "<img src='" $TBDEV['pic_base_url'] . "noposter.jpg' width='150' height='220' />" "<img src='" htmlsafechars($last5torrent['poster']) . "' width='150' height='220' />";
$HTMLOUT.= "</table></div>";
//== End Latest torrents 


firefly007 17th November 2015 17:06

Hey!

I will make it for you.. just give me a little time please:)

joeroberts 17th November 2015 20:27

change
PHP Code:

$last5torrent["poster"

to
PHP Code:

$last5torrents["poster"


DND 17th November 2015 21:16

hehehe that would do the trick, but i fixed his problem already..
:coffee:

kira 18th November 2015 20:28

Thankx this problem is fixed :drink:


All times are GMT +2. The time now is 09:16.

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