Userdetails Issue

Started by Dolby, July 04, 2011, 12:08:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mindless

function snatchtable covers snatchlist - function maketable covers seeding - leeching - uploaded - completed.

Dolby

doh see it now missed /caticons from this line

<td style='padding: 0px'><img src='pic/caticons/".htmlspecialchars($arr["catimg"])."' alt='".htmlspecialchars($arr["catname"])."' /></td>

Mindless

Nothing to do with that the cat images are defined in function snatchtable at the top.

Dolby

hi have a little problem with recently snatched in userdetails the cat icons show as text



and here is the code snippet

//==Snatched
    $snatches='';
    $res = sql_query("SELECT s.*, t.name AS name, c.name AS catname, c.image AS catimg FROM snatched AS s INNER JOIN torrents AS t ON s.torrentid = t.id LEFT JOIN categories AS c ON t.category = c.id WHERE s.userid = $user[id]") or sqlerr(__FILE__, __LINE__);
    if (mysql_num_rows($res) > 0)
    $snatches = snatchtable($res);                                                                                                           
    $numbsnatched = mysql_num_rows($res);
    if (isset($snatches))
    $HTMLOUT .= "<tr valign=\"top\"><td class=\"rowhead\" width=\"10%\">{$lang['userdetails_cur_snatched']}</td><td align=\"left\" width=\"90%\"><a href=\"javascript: klappe_news('a3')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica3\" alt=\"Show/Hide\" /></a><b><font color=\"red\">&nbsp;&nbsp;$numbsnatched</font></b><div id=\"ka3\" style=\"display: none;\">$snatches</div></td></tr>\n";
    //==End


any ideas plz guys ?