Loading...
 
Skip to main content

Features / Usability


how to display a random image on a wiki page

Hi all,
I found how to display ( in a module) a random image from a given image gallery, or from any image gallery,
adding a user module with:
{gallery id=-1 showgalleryname=1}

or using an already done module random_images

But how can I do this in a wiki page ?

if iI use
{img src=show_image.php?galleryid=7}

I always get the first image of gallery id=7; I saw the offset, sort_mode and other parameters, but none of them seems to support a "random" argument.

How can I do this ?

Andrea

>
> How can I do this ?
>

You can include a module in a wiki page by using:

Copy to clipboard
{MODULE(module=>modulename)}{MODULE}


So, you can:

  1. Create a module to show a random image. It looks like you already know how to do that.
  2. Then simply include the module in the wiki page.


HTH,

-RickQuestion


Thank you, it works fine !
Is there a way to setup height and width of the shown image ?
Or it simply depends on the thumbnail size and is not possible to modify it ?