4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: karlito on November 03, 2007, 04:48:14 PM

Title: Image near the category
Post by: karlito on November 03, 2007, 04:48:14 PM
I have installed version 1.7.4 and after creating a few categories I uploaded there images.
Now I would like that near the names of the categories instead of thumbnails of folder I have thumbnails of images from respective categories.

After reading a lot all the forums I found the easiest way to do that by just uncommenting in category_bit.html file
Code: [Select]
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->
After that the same folder thumbnail is there and no images.  Maybe it worked in old version of gallery? In version 1.7.4 it doesn’t work, at list for me.

Could anyone help?
Thanks in advance.
Title: Re: Image near the category
Post by: thunderstrike on November 04, 2007, 05:03:32 PM
Sorry ... I no get question ...
Title: Re: Image near the category
Post by: karlito on November 04, 2007, 08:41:59 PM
Sorry ... I no get question ...

I mean I  uncommented
Code: [Select]
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  --> in  category_bit.html but no result.
No images appear near the categories only folder thumbnails.
So I wonder what else I should do to get image thumbnails near the categories?
Title: Re: Image near the category
Post by: thunderstrike on November 04, 2007, 08:45:49 PM
URL ?
Title: Re: Image near the category
Post by: karlito on November 04, 2007, 09:46:28 PM
http://tankaro.com/photo_/ (http://tankaro.com/photo_/)
Title: Re: Image near the category
Post by: thunderstrike on November 04, 2007, 09:55:39 PM
You need edit includes/functions.php file where random_cat_image_file exec.
Title: Re: Image near the category
Post by: thunderstrike on November 04, 2007, 10:58:58 PM
Sorry - in includes/constants.php file,

find:

Quote
SHOW_RANDOM_CAT_IMAGE

Set value to 0 or 1.

In templates, comment back (remove <! -- and --- >) the line.
Title: Re: Image near the category
Post by: karlito on November 04, 2007, 11:09:00 PM
Thanks it works :D

Quote
In templates, comment back (remove <! -- and --- >) the line.

Only comments should be removed. Not working otherwise .