forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: dmb0058 on November 30, 2008, 09:05:58 pm

Title: Display a single (non-random) image ?
Post by: dmb0058 on November 30, 2008, 09:05:58 pm
Ok, I followed all the advice on how not to be lazy .. two hours of web trawling and hunting through source code I'm no wiser. The cpmfetch documentation isn't exactly helpful in solving my problem either ...

I would like to simply display a single specific (i.e. not a random) image from one of my albums.
I can't find any function to do this, in fact I haven't been able to locate a list of cpwfetch functions at all - the list  on the FAQ for this board is a tantalising hint of some of them, but it's not clear if it's definitive or just a sample.

Any help appreciated. (Ultimately I want to use the information to drive the Joomla cpwfetch plugin, which apparently uses cpwfetch functions, but who's documentation is truly, abysmally, awful  :)) :)
Title: Re: Display a single (non-random) image ?
Post by: dmb0058 on November 30, 2008, 09:22:21 pm
Solved, as far as cpwfetch is concerned.

Digging through the source code I've found cpm_viewMediaByPid(). Sounds like it should do what I need.

Now to figure out the arcane way to call it from the Joomla plugin ...