display multiply random images at the same time

Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Sun, 2004-12-26 19:51

Hi
I have a simple problem, that I quess someone in here can solve :D

<?php
include("gallery/block-random.php");
include("gallery/block-random.php");
include("gallery/block-random.php");
?>

Of course it dosn't work. :cry: One image is displayed but not the others. I get "Cannot redeclare getrequestvar() (previously declared in......".
Can someone please help me get round this, so I can display my three random images?

Also, does block-random.php work this way?! Getting the feeling it only can display one image per day. Hmm... :roll:

See ya! :P

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2004-12-26 23:11

You must include the random block via http. It can not be included as a file. Please read the instructional post at the top of the forum.

 
Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Sat, 2005-01-01 15:40

Thank you. Yes, it works perfectly now.

Random gallery block for Mambo is then coded wrong.
I have modified my copy...

/Niklas