Alright, basically I like the idea of making an easy way to have a slideshow, or series or pictures, or something like that.
I also recognize there is probably a million ways to do it, and everyone will have his or her own favorite.
I also know next to squat about flash, although I did make a cool little thing once that I sent to my boss while promoting some internet stuff I wanted to do... It bascially was all black, with big white letters fading in and out in sequence that said "Make the Internet your bitch"... then .... "Slap dat bitch". All to some soothing Rob Zombie tune (I think it was Dragula). Mind you it was all in fun, and I was much younger then. It was funny though - and he did approve the project.
Anyway, I digress.
So I am going to probably work into CpmFetch some code that provides helpful calls to get image listings. Pretty much I envision it to be another return type, so you can use it with all the functions already in place.
Something like:
$objCpm->setReturnType("ImageList");
$list = $objCpm->getRandomPhotos();
$list would then contain:
/path/image.jpg Subtitle here if you wanted one
For each.
Then again, I already have a datatype that does all that except the full image path, so maybe I will just add that in there. No sense in re-inventing something. But this is all it takes currently to output the listing into that Pic[a++] format.
$objCpm->cpm_setReturnType("resultset");
$data = $objCpm->cpm_viewLastAddedMediaFrom(1000, 1000, "");
foreach ($data as $row) {
$imagename = $objCpm->cpm->getImageToUse($row['pFilepath'], $row['pFilename'] ,"thumb_");
print "Pic[a++]='" . $imagename . "'\n";
}
So this would output the list. Of course I did not test this, but the concept stands. The most I would be integrating into CpmFetch directly is the getImageToUse call...
Now including it as a code fragment for people to put into web pages would be okay with me. But I am not out to provide a fully working application like CPG... this is developers library, not trying to be any more. I want this to be a base for people to be creative from... make life easier, etc...
Anyway, thoughts?