Display a single (non-random) image ? Display a single (non-random) image ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Display a single (non-random) image ?

Started by dmb0058, November 30, 2008, 09:05:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dmb0058

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  :)) :)

dmb0058

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 ...