Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   icons cats in browser (http://www.bvlist.com/showthread.php?t=1342)

gvalfer 5th November 2008 20:57

icons cats in browser
 
i use torrentstike fully mode v1, how to insert the icons of cats in browser?
get the names and put the images
please help me

Fynnon 5th November 2008 21:02

i don`t understand what you want ...draw me a picture please

and you can post in TS forum since this is a supported source :P

gvalfer 5th November 2008 21:46

1 Attachment(s)
Quote:

Originally Posted by Fynnon (Post 6306)
i don`t understand what you want ...draw me a picture please

and you can post in TS forum since this is a supported source :P


Attachment 614

Krypto 5th November 2008 23:42

bittorrent.php FIND:
PHP Code:

function genrelist() {
    
$ret = array();
    
$res mysql_query("SELECT id, name FROM categories ORDER BY name");
    while (
$row mysql_fetch_array($res))
        
$ret[] = $row;
    return 
$ret;


REPLACE:
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;


browse.php FIND:
PHP Code:

foreach ($cats as $cat)
{
    
$catsperrow 7;
    print((
$i && $i $catsperrow == 0) ? "</tr><tr>" "");
    print(
"<td align=center class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"checkboxden\" " . (in_array($cat[id],$wherecatina) ? "checked " "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]>" htmlspecialchars($cat[name]) . "</a></td>\n");
    
$i++;



REPLACE:

PHP Code:

foreach ($cats as $cat)
{
    
$catsperrow 7;
    print((
$i && $i $catsperrow == 0) ? "</tr><tr>" "");
    print(
"<td align=center class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"hidden\" " . (in_array($cat[id],$wherecatina) ? "checked " "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]><img src=pic/" htmlspecialchars($cat[image]) . "></a></td>\n");
    
$i++;




All times are GMT +2. The time now is 05:23.

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