Author Topic: How to get thumbnail categories?  (Read 3189 times)

0 Members and 1 Guest are viewing this topic.

Offline raghunadhreddys

  • Newbie
  • *
  • Posts: 46
    • View Profile
How to get thumbnail categories?
« on: January 28, 2010, 03:54:25 PM »
Dear friends i want to display categories as thumbnail instead of  text links.example

http://wallpapers-diq.com/

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: How to get thumbnail categories?
« Reply #1 on: January 28, 2010, 04:12:56 PM »
Hi,
    Here is oneway...

Open includes/constants.php .. and find

Code: [Select]
define('SHOW_RANDOM_CAT_IMAGE', 0);

change it to

Code: [Select]
define('SHOW_RANDOM_CAT_IMAGE', 1);

but it will affect the performance if you have lots of images..


Hope this helps...


Rembrandt

  • Guest
Re: How to get thumbnail categories?
« Reply #2 on: January 28, 2010, 05:57:21 PM »
and search in yourTemplates category_bit.html:

 
Code: [Select]
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />
<!--{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->
    </td>
    <td>
 <a href="{cat_url}" class="maincat">{cat_name}</a>

and replace:

Code: [Select]
<!-- <img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />  -->
 {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
    </td>
    <td>
  <!--<a href="{cat_url}" class="maincat">{cat_name}</a> -->