2012-05-06, 21:14:43
mvlcek Wrote:<?php
$gallery = return_i18n_gallery('my-gallery-name');
$num =count($gallery['items']);
$pics = array();
while (count($pics) < 3) {
$i = rand(0,$num-1);
if (!in_array($i,$pics)) {
$pics[] = $i;
get_i18n_gallery_link('my-gallery-name', array('url'=>'my-gallery-slug', 'thumb'=>$i)); ?>
}
}
?>
Where do I put this?
When I put it in the template and got a server error.
I put it inside a component and put the component call inside the template and though there was no error, there were no thumbnails either.