15
Go back to my original code (without the
tag). Do not edit the original function - leave it exactly as is. This function when called allows you to pass the name of the subdirectory of images. What that does is allows you to have more than one set of randomly called images on your page. Each subdirectory will need to have the same size images for this to work, though.
The way this is designed, it is THEME-based (the assumption being that if you change themes you likely want to change images).
So, in your theme directory (in your case, geometric_red -- I've used this theme myself), make a subdirectory for your images (in your case, 'random', thus XOOPS_ROOT/themes/geometric_red/random). Place your images (all same size) in this subdirectory.
Then, make the call passing the name of the subdirectory in the call like this:
Notice that when calling the function, we pass the subdirectory path (inside the theme) of the images. Note, too, that if you have more than one set, you could pass a path, for instance if you have:
random/set1
random/set2
random/set3...
then the subdirectory passed when calling the function would be 'random/set1', 'random/set2', etc.
BTW, make sure you set the width and height to be the size of your pictures. The numbers used in the example I provided were for the particular placement I used.
Hopefully I've diluted those muddy waters some?