FormerLurker
Sep-07-2007, 03:34 PM
I know I can pull a random image from a gallery with random.mg, but I have searched and didn't find answers to these questions that I need to think through some customization I'm doing. Any help would be appreciated.
1) Is there any way to make the random image link to the image itself (in a singleImage page)? I know how to make it link to a gallery but I can't figure out whether it's possible to pull the actual image number from the random.mg function.
2) If the answer to number 1 is that it can't be done, has anyone got any suggestions for a php script that will pull each image number from a particular SM gallery? I can then grab the image on the fly with php, but I don't know how to pull all of the image numbers in the first place. I'm trying to avoid keeping a separate data file that I would have to update each time I upload a new image to the SM gallery I'll be pulling from.
Thanks!
1) Is there any way to make the random image link to the image itself (in a singleImage page)? I know how to make it link to a gallery but I can't figure out whether it's possible to pull the actual image number from the random.mg function.
2) If the answer to number 1 is that it can't be done, has anyone got any suggestions for a php script that will pull each image number from a particular SM gallery? I can then grab the image on the fly with php, but I don't know how to pull all of the image numbers in the first place. I'm trying to avoid keeping a separate data file that I would have to update each time I upload a new image to the SM gallery I'll be pulling from.
Thanks!