hi.......
Is it possible to fetch thumb size slideshow from a album or last updated album. and gives a hyperlink to that album.
Thanks
Nishant
You can fetch the thumbnails of any given album (and of meta albums as well afaik). The surrounding HTML (the slideshow code) is yours to design. If you have no clue how to accomplish this, use one of the many slideshow scripts that already are available for free (e.g. from http://dynamicdrive.com/dynamicindex14/index.html) - just use the data fetched by cpmFetch to populate the JavaScript pic arrays. It's up to you as well if the links are clickable or not.
Quote from: GauGau on November 30, 2006, 04:08:29 PM
You can fetch the thumbnails of any given album (and of meta albums as well afaik). The surrounding HTML (the slideshow code) is yours to design. If you have no clue how to accomplish this, use one of the many slideshow scripts that already are available for free (e.g. from http://dynamicdrive.com/dynamicindex14/index.html) - just use the data fetched by cpmFetch to populate the JavaScript pic arrays. It's up to you as well if the links are clickable or not.
You can also just get back an array of data from cpmfetch and wrap that into a slideshow...
there is no official cpmfetch slideshow solution though
I think there was a thread on it in here somewhere though...
This is a nice idea, I've alrdy installed cmpfetch in my webpage, what code I need to fetch the array of data?
thx
Quote from: freynolds on December 08, 2006, 06:09:22 PM
This is a nice idea, I've alrdy installed cmpfetch in my webpage, what code I need to fetch the array of data?
thx
Put this before you call for images
$objCpm->cpm_setReturnType('resultset');
Then your calls return an array. Use print_r to see the contents
Thanks you all
I have tried but as not a professional programmer i couldn't able to get success can you give me some more hint about it so i can do that. write now i am using following code to fetch last added images from gallery and here i have only mentioned the category not the album.
<?php
include "getimage/cpmfetch.php";
$objCpm = new cpm('/wallpapers');
$options = array( 'imagewidth' => '120','imageheight' => '90', 'alttag' => '%t Movie Wallpapers Download', "tablestyle" => "table", imagestyle =>"img");
$source = "cat=6";
$objCpm->cpm_viewLastAddedMediaFrom (1,2,$source,$options);
$objCpm->cpm_close();
?>
Thanks
Niks