View Single Post
  #4  
Old 05-14-2008, 07:43 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Subcategory Icon

Quote:
Originally Posted by yuichi
Yurij, Thanks for your kind reply.
I actually was able to show subcategory icons with 3 columns in the main category page.
What I want to do is to place a subcategory icon at the beginning of the page right before the subcategory description.
I've been trying to do this for a while, but no luck at all..

With the flow around icons category or not?

If you're comment out 3 lines, you will be displayed the description category under of the icon category.

PHP Code:
.........
            {*<
tr>
                <
td align=center>{$c.description}</td>
            <
tr>*}
.....
.....
            <
tr>
                <
td align=center>{$c.description}</td>
            <
tr


Ups... I forgot one moment...

Open file "include/categories.php" and find next line:

PHP Code:
if ($short_list) {
        
$to_search "$sql_tbl[categories].categoryid,$sql_tbl[categories].parentid,$sql_tbl[categories].categoryid_path,$sql_tbl[categories].category,$sql_tbl[categories].avail,$sql_tbl[categories].order_by";
    } else {
        
$to_search "$sql_tbl[categories].*";
    } 

And to replace those lines with this code

PHP Code:
if ($short_list) {
        
$to_search "$sql_tbl[categories].categoryid,$sql_tbl[categories].parentid,$sql_tbl[categories].categoryid_path,$sql_tbl[categories].category,$sql_tbl[categories].avail,$sql_tbl[categories].order_by, $sql_tbl[categories].description";
    } else {
        
$to_search "$sql_tbl[categories].*";
    } 
Reply With Quote