coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: MichB on April 25, 2007, 01:52:48 PM

Title: Any method for just path+filename?
Post by: MichB on April 25, 2007, 01:52:48 PM
Hi, I used a hack to introduce flv videos into coppermine, and I want to make a module for joomla to show in front page the last added media, I already use cpmfecth to show latest image from an album (working so far so good), just wondering if there's any method in cpmfetch to simply get the latest path+filename from latest file aded at an album/category, to make such thing.

I looked at the documentation of cpmfetch and it seems that the methods report links already HTML formated.

Sorry for my poor english.

Regards.
Title: Re: Any method for just path+filename?
Post by: vuud on April 25, 2007, 03:19:13 PM
Quote from: MichB on April 25, 2007, 01:52:48 PM
Hi, I used a hack to introduce flv videos into coppermine, and I want to make a module for joomla to show in front page the last added media, I already use cpmfecth to show latest image from an album (working so far so good), just wondering if there's any method in cpmfetch to simply get the latest path+filename from latest file aded at an album/category, to make such thing.

I looked at the documentation of cpmfetch and it seems that the methods report links already HTML formated.

Sorry for my poor english.

Regards.

Check the doc's for  cpm_setReturnType

You can tell it to give you an array back...
Title: Re: Any method for just path+filename?
Post by: MichB on April 25, 2007, 04:24:39 PM
Thanks a lot vuud, that's what I was looking for, In fact even much more.
Title: Re: Any method for just path+filename?
Post by: vuud on April 25, 2007, 04:31:19 PM
Quote from: MichB on April 25, 2007, 04:24:39 PM
Thanks a lot vuud, that's what I was looking for, In fact even much more.

print_r  will show you everything it has... Its also done as an example at the bottom on this page:

http://cpmfetch.fistfullofcode.com/features/index.php


Title: Re: Any method for just path+filename?
Post by: MichB on April 25, 2007, 04:53:22 PM
I already checked that with a for loop at the array.

Thanks a lot again, that was fast and good support.