Spec Image
Background
We wanted to be able to show different images appearing across the footer of a site which would change depending on which area of the site the user was in. A small development on the core Joomla random image module. The menu items are linked in the database to an image, or a folder from which to pick a random image, and footer was expanded to any module position.
Technicalities
The workings are split into two parts - the module and the component. The component part sits in the administration area as a way of interfacing with the database to store different image urls according to different menu links. The options are provided for the user to choose a specific image url, no image at all, or an image chosen at random from either a specific folder for the menu item or a master random image folder specified in the module parameters. The module parameters give the options to specify the random image folder, choose how big the area will be in which to display the image, and how you would like the image to fit into this area. The options for this last parameter are:
- Stretch the image to fit the area
- Shrink the image (to scale) so it fits entirely inside the area
- Expand the image (to scale) so it covers the entire area - note that this invariably cuts off parts of the image!
Changelog
Version 1.1 (02-09-2009)
New feature - now for each menu item you are able to specify a folder from which to display a random image. Special thanks to Wouter van den Eerenbeemt for this addition who provided the suggestion and working code!
Version 1.01 (29-07-2009)
Fixed a couple of reported bugs - if you were seeing either of the errors: "unknown class JFile" or "Please install the component" (when it was installed) then these should both now be fixed.
Downloads
![]() |
Download |
GNU/GPL
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
Homepage 2009-06-04 English Joomla 1.5 40.27 KB | 7539 |

This e-mail address is being protected from spambots. You need JavaScript enabled to view it
Comments
Thanks for the comment, I like the idea. I will try and find some time to implement this soon for a new version.
Tom
Any ideas on timeline?
All the best,
Tom
Anyway a very useful component / module!
Thank you very much,
Marco.
Apart from that, it's a nice concept that I would really like to see developed in a further way... Keep like this!!!
URL is fx index.php?option=com_content&view=article&id=1&Itemid=3. In database´s table jos_specimages the field "item_id" is set to 3. But the correct field "img_url" doesn´t show up on the generated page.
I guess not.
http://psps-joomla.staging.lelapinblanc.com/images\random\bar_general2.jpg
Please help!! Thanks
It doesn't work.. I tried a lot of different combinations but in the fronted there is still a random image from somewhere in all my folders.
Is there a solution for setting the module Random Image Folder on: images/subfolder/subfolder and the component menu item on: * so the page in the fronted will load random images from images/subfolder/subfolder?