Author Topic: removing random picture  (Read 4370 times)

0 Members and 1 Guest are viewing this topic.

Offline dimilinowski

  • Pre-Newbie
  • Posts: 7
    • View Profile
removing random picture
« on: February 20, 2009, 10:50:52 AM »
I'd like to remove the random picture from the left side of my screen.  Can somebody please tell me how to do this?

http://www.heathsstuff.com/PHOTOS/index.php

Thank you
Diane Milinowski

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: removing random picture
« Reply #1 on: February 20, 2009, 12:04:34 PM »
I'd like to remove the random picture from the left side of my screen.  Can somebody please tell me how to do this?

http://www.heathsstuff.com/PHOTOS/index.php

Thank you
Diane Milinowski

hi diane,

in home.html search for {random_image} and delete the block

BR,
bergbluem

Offline dimilinowski

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: removing random picture
« Reply #2 on: February 20, 2009, 02:20:49 PM »
I cannot remember where I have seen this "home.html" but I have.  Can you be a little more specific?

Thank you
Diane

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: removing random picture
« Reply #3 on: February 20, 2009, 02:27:52 PM »
the file home.html is in your default templates folder => templates / default / home.html

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: removing random picture
« Reply #4 on: February 20, 2009, 04:01:28 PM »
removing template tags will not help performance wise (although it also works)

You should disable random image in includes/constants.php:
// If you have a lot of images in your database,
// the random image function could make your programm slow.
// Try first to set "SHOW_RANDOM_CAT_IMAGE" to 0.
define('SHOW_RANDOM_IMAGE'1);
define('SHOW_RANDOM_CAT_IMAGE'0);
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)