Member
Member
MarcelSpijker   2008-01-11, 22:49
#1

I use the printRandomImages() function but it wont put anything on my screen.
The printLatestImages() works perfectly.

Is this function not working or am i using it wrong?

I tried the following:

printRandomImages();
printRandomImages(4);
printRandomImages(4,,);
printRandomImages(4,null,all);
printRandomImages(4,null,"all");

You can see that is dousn't work at my web page: http://www.marcelspijker.nl/zenphoto
On the right side it should come up ...

Please forgive the layout problems under IE, still have to fix them, but this random function is just eating my time...

Member
Member
sbillard   2008-01-12, 01:35
#2

There is a bug in the routine. The corrected routine is:
`function printRandomImages($number, $class=null, $option='all') {

if (!is_null($class)) {

$class = 'class="' . $class . '";';

echo "";

}

for ($i=1; $i

Member
Member
MarcelSpijker   2008-01-14, 08:52
#3

Thanks this works!

Only there are two \ missing before the n.

`

echo "[*]n";

echo "n";

should be

echo "[*]\n";

echo "\n";

`

Member
Member
sbillard   2008-01-14, 18:43
#4

Yes, you are right. That's the forum software. Sorry for that, it "stole" the slash. The nightly build has it correct.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.