Author Topic: Image near the category  (Read 6197 times)

0 Members and 1 Guest are viewing this topic.

Offline karlito

  • Newbie
  • *
  • Posts: 11
    • View Profile
Image near the category
« 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.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Image near the category
« Reply #1 on: November 04, 2007, 05:03:32 PM »
Sorry ... I no get question ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline karlito

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Image near the category
« Reply #2 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?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Image near the category
« Reply #3 on: November 04, 2007, 08:45:49 PM »
URL ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline karlito

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Image near the category
« Reply #4 on: November 04, 2007, 09:46:28 PM »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Image near the category
« Reply #5 on: November 04, 2007, 09:55:39 PM »
You need edit includes/functions.php file where random_cat_image_file exec.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Image near the category
« Reply #6 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.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline karlito

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Image near the category
« Reply #7 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 .