$rows and $colums In all of them the combination of rows and columns determines the maximum number of images you will get back. By applying math, you can predict exactly how many. If you ask for 2 colums and 2 rows, you will get a maximum of 4 pictures. (2 x 2 = 4). If you ask for 5 columns and 2 rows, you will get 10 pictures maximum. (5 x 2 = 10). Now I say maximum, because you may not have that many available to you. Say you ask for 5 columns and 5 rows, but you only have 9 photos that match your other criteria. CoppermineFetch will sense this and adjust the grid to compensate. It does this by alternatively losing colums and rows. So Instead of ending up with a 25 cell table, with only the first two rows populated, you will get back a 3 x 3 table with all cells populated. Pretty neat stuff.
$albumid and $catid These are integer numbers that represent the different categories in your photo album and the albums within them. You can find out what is what by going to your CPG in a web browser, finding the category or album you want and checking the URL. Its pretty obvious when you look at the URL what part is what. Here are two examples of what to look for (See the end of the URL) : http://www.fistfullofcode.com/photos/thumbnails.php?album=6 http://www.fistfullofcode.com/photos/index.php?cat=4
For information on the $source string see the section on Selecting specific albums or categories For information on the $options array, see the section detailing the options array.
Shows the photos last added to the gallery.
Shows the photos last added to the albums and categories specified in the $source string
This function allows one image to be retrieved from the gallery and displayed by calling its PID number.
Shows random images from the gallery
Shows random images from albums and categories specific in the $source string
When you request images this function does a few things: 1. Gets the total number of images available to that source 2. Mutiples the number by a percent to qualify (currently 10% for viewed) 3. Gets that many back from the database sorted by views (depending) 4. Randomly grabs the count you want from there.
This function will display the photos with the highest rankings. This is decided on the number stored in the database. It is based on the newer approach that allows for semi free form source to be specified. If you want the whole gallery $source must be set as "".
This function will display the photos with the highest rankings. This is decided on the number stored in the database. It is based on the newer approach that allows for semi free form source to be specified. If you want the whole gallery $source must be set as "".
When you request images this function does a few things: 1. Gets the total number of images available to that source 2. Mutiples the number by a percent to qualify (currently 25% for rated) 3. Gets that many back from the database sorted by rating (depending) 4. Randomly grabs the count you want from there.