Active
Project:
Brilliant Gallery
Version:
5.x-3.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2008 at 05:14 UTC
Updated:
10 Aug 2008 at 03:17 UTC
How can I create a block with random images from subfolders?
For example I have files/albums/Group1, files/albums/Group2 and files/albums/Group3 each group folder has subfolders. What I want to do is create a random images block with images from all folders in files/albums/Group1 for example.
Comments
Comment #1
helge_t commentedHi, as I needed this feature, too, I solved this with a small piece of code:
For custom PHP code to work you need to enable module "PHP filter".
And within the "Input format" settings you have to enable "Brilliant Gallery Tag" for input format "PHP code".
Please note: I am not a professional PHP coder - so if anything in this code should not be correct und insecure, please correct it here.
Best regards
Helge
Comment #2
H3rnand3z commentedI can use this, The only suggestion would be to check the file extension.
Thank You