Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fetch slideshow from a album in thumb size ?  (Read 7122 times)

0 Members and 1 Guest are viewing this topic.

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Fetch slideshow from a album in thumb size ?
« on: November 30, 2006, 02:11:14 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fetch slideshow from a album in thumb size ?
« Reply #1 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Fetch slideshow from a album in thumb size ?
« Reply #2 on: November 30, 2006, 04:55:10 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...
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

freynolds

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: Fetch slideshow from a album in thumb size ?
« Reply #3 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Fetch slideshow from a album in thumb size ?
« Reply #4 on: December 08, 2006, 06:26:39 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
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Fetch slideshow from a album in thumb size ?
« Reply #5 on: December 19, 2006, 09:29:12 pm »

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.

Code: [Select]
<?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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.