Author Topic: Random Image  (Read 5133 times)

0 Members and 1 Guest are viewing this topic.

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
Random Image
« on: October 09, 2002, 06:12:23 PM »
Hi! I tried putting the random image onto my site's main page, and I failed. I copied the code, from index and edited it, I made a special template. It worked when I view the page...but when I use PHP include to insert it into main,  it screws up, since that path to global and sessions is different. I screwed with paths and I was able to make it work, but the image and the link to a full image was broken.
Is there a way to include a random image onto a main page which is 1 dir higher than 4 images?
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
It's been done
« Reply #1 on: October 09, 2002, 08:05:42 PM »
Search the forums, a mod has already been posted to do this and discussions on how to tailor it also exist.

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
Random Image
« Reply #2 on: October 09, 2002, 10:29:48 PM »
I did...couldn't find anything.....mind sharing???
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Almost there
« Reply #3 on: October 10, 2002, 12:08:06 AM »
It's a sticky thread about 9 lines down in "Mods & Anpassungen"
http://www.4homepages.de/forum/viewtopic.php?t=1020