Author Topic: Random Image not always there  (Read 4063 times)

0 Members and 1 Guest are viewing this topic.

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Random Image not always there
« on: July 11, 2002, 04:12:14 PM »
How does the random image mod work?

Using 1.6.1. I only get a random image if I am at toplevel in the galleries or if I am in a subgallery with pictures.

If I select a category without pics (they are in subcategories) there is no random image.
Is this normal or is it a bug.

Check it out at: http://www.totaaldigitaal.nl/gallery

Kind regards,
Piet

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Random Image not always there
« Reply #1 on: July 11, 2002, 05:29:46 PM »
hi,

it's not a bug ;)
because in this category are no pics..

if you want to use in every category a random image from whole gallery:
open template categories.html and change

{if random_cat_image}
to
{if random_image}


{random_cat_image}
to
{random_image}


{endif random_cat_image}
to
{endif random_image}
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Random Image not always there
« Reply #2 on: July 11, 2002, 05:33:52 PM »
I thought so.
But now I am sure.

Thanks for the workaround.

Piet