Author Topic: difference random_image / random_cat_image  (Read 3796 times)

0 Members and 1 Guest are viewing this topic.

Offline lapinkulta

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Avatar Essentials
difference random_image / random_cat_image
« on: June 23, 2005, 06:17:22 PM »
Hi!

What is the difference between random_image.htm and random_cat_image.htm in the templates folder and how can I choose which of them i use?

Cheers,
lapinkulta
Two hours of try and error can save ten minutes of manual reading.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: difference random_image / random_cat_image
« Reply #1 on: June 24, 2005, 01:06:23 AM »
random_cat_image.html used only inside categiries.html template (well, maybe in details.html too), its identical to random_image.html, but will display random image only from a curent category.
random_image.html on other hand will display image taken from any categories.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lapinkulta

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Avatar Essentials
Re: difference random_image / random_cat_image
« Reply #2 on: June 24, 2005, 01:27:57 PM »
thanks, somehow i don't get the random_cat_image to work in my own templates.

anyway, i found a method here how to exclude certain categories to be displayed in the random_cat_image view. Is there also a way to exclude certain categories to be displayed in the "normal" random_image view?

cheers,
lapinkulta
Two hours of try and error can save ten minutes of manual reading.