Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #11  
Old 29th January 2016, 10:51
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
that's what i said.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #12  
Old 13th March 2016, 13:00
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Click the image to open in full size.
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!
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
09 , browse , caticons , tbdev

Thread Tools

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 14:06. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.