Author Topic: How to show random image on mainpage  (Read 6856 times)

0 Members and 1 Guest are viewing this topic.

Offline zohaib10

  • Pre-Newbie
  • Posts: 4
    • View Profile
How to show random image on mainpage
« on: November 20, 2008, 07:41:25 PM »
Hi,
  I installed the 4images script at domain.com/wallpapers but i want to show random image on my main domain DOMAIN.COM. Please tell me how this is possible ?

Thanks.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: How to show random image on mainpage
« Reply #1 on: November 20, 2008, 07:55:28 PM »
hi zohaib10 and welcome to the 4images forum,

here a tip .> http://www.4homepages.de/forum/index.php?topic=1020.0
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 zohaib10

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How to show random image on mainpage
« Reply #2 on: November 21, 2008, 01:58:41 PM »
I am only able to show 1 random image. How i can control number of random images to be displayed on homepage. One more thing, How i can randomize images from particular categories ?

Bundle of thanks.

Offline forexsystemprofi

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: How to show random image on mainpage
« Reply #3 on: November 21, 2008, 03:02:59 PM »
I have one more question: can I make a special cathegory for random images only?
« Last Edit: November 21, 2008, 05:06:47 PM by Nicky »

Offline zohaib10

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How to show random image on mainpage
« Reply #4 on: November 21, 2008, 03:27:02 PM »
Can you please make some modifications in http://www.4homepages.de/forum/index.php?topic=1020.0 . I mean can you make a function so that users will be able to control how much different random pictures they wanna show.

Thanks :D

Offline zohaib10

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How to show random image on mainpage
« Reply #5 on: November 21, 2008, 04:08:23 PM »
I made some changes in that code which is mentioned above and now i am able to show more than one random images on my domain but there is problem.

I want to show random images as

Random Image 1             Random Image 2

But it is displaying as

Random Image 1

Random Image 2


I mean I want to randomize images horizontally but it is appearing vertically.

What to DO .... plz help

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: How to show random image on mainpage
« Reply #6 on: November 21, 2008, 04:59:57 PM »
i will close this thread...

please post your questions into the MOD thread...
but this was discussed many time...

for horizontally...
delete the <br> tag on the end of the echo "...."
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 Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: How to show random image on mainpage
« Reply #7 on: November 21, 2008, 05:06:31 PM »
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