So i managed to make it work.
In
BROWSE.PHP
Replace this code:
PHP Code:
$i = 0;
$catsperrow = 7;
foreach ($cats as $cat)
{
$HTMLOUT .= ($i && $i % $catsperrow == 0) ? "</tr><tr>" : "";
$HTMLOUT .= "<td class='bottom' style='padding-bottom: 2px;padding-left: 7px;align:left;border:1px solid;'>
<input name='c".$cat['id']."' type=\"checkbox\" " . (in_array($cat['id'],$wherecatina) ? "checked='checked' " : "") . "value='1' /><a class='catlink' href='browse.php?cat={$cat['id']}'>" . htmlspecialchars($cat['name']) . "</a></td>\n";
$i++;
}
with this:
PHP Code:
$i = 0;
$catsperrow = 7;
foreach ($cats as $cat)
{
$HTMLOUT .= ($i && $i % $catsperrow == 0) ? "</tr><tr>" : "";
$HTMLOUT .= "<td class='bottom' style='padding-bottom: 2px;padding-left: 7px;align:left;border:1px solid;'>
<input name='c".$cat['id']."' type=\"checkbox\" " . (in_array($cat['id'],$wherecatina) ? "checked='checked' " : "") . "value='1' /><a class='catlink' href='browse.php?cat={$cat['id']}'><img width='45' src=pic/caticons/" . htmlspecialchars($cat['image']) . "></a></td>\n";
$i++;
}
In
BITTORRENT.PHP
Search for
genrelist function and edit the following query by adding
image after
name:
PHP Code:
$res = mysql_query("SELECT id, name FROM categories ORDER BY name");
so it will be something like this:
PHP Code:
function genrelist() {
$ret = array();
$res = mysql_query("SELECT id, name, image FROM categories ORDER BY name");
while ($row = mysql_fetch_array($res))
$ret[] = $row;
return $ret;
}
That's it!
Hope it will work for you!
Good luck!