Member
Member
sketchy   2010-03-19, 01:14
#1

when i call printRandomImages, i get a random image, nice!

how do i get the data on that image, like the title and the album or gallery it's from?

cheers!

Member
Member
kagutsuchi   2010-03-19, 02:30
#2

printRandomImages() simply prints the image. What you want is to use getRandomImages() instead, which will return an _Image object. From that, you can use the class methods of the returned object to get whatever information you need. (See the Functions Documentation in the User Guide for more detail.) You will have to print the image out yourself this way; however, it really isn't very hard to do using only class methods.

Member
Member
sketchy   2010-03-19, 18:02
#3

thanks! i'll give it a go.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.