Is there an easy to display a random image from my g2 gallery on my website? Is there a URL that I can just insert? I know the function exists in gallery but does it exist in gallery2. I see a lot of posts about random image but they are mostly about image block which only allows random image to display on the gallery's sidebar, header or footer. I want to display the image on a webpage that is outside of the gallery directory. Any help will be appricaited.
p.s. I don't know anything about PHP, maybe this is why I don't understand a lot of posts about random image in the forum. So when reply, please keep in mind that I don't understand PHP. Thanks.
Posts: 2258
something like this should work:
Posts: 32509
topic moved to an appropriate forum.
Posts: 2
thanks for the reply, but I tried it and it does not work.
I think this is because I don't have ImageBlock installed. I check the blocks dropdown on the theme pages, ImageBlock is not an option. I just upgraded my gallery to 2.0.2 typical version, but still no such option. Do I need the full version in order to have ImageBlock installed. Thanks
Posts: 32509
get the full package of g2. or download the imageblock module from the download page from codex.gallery2.org