Hey vuud, I've got cpmfetch working nicely using the cpm_showAlbumsUpdatedOverLastDays function (plus I added a DIV formatting thingy ), however I was wondering if its possible to just have a 'show last x updated albums' function (slap me if I'm missing something easy here ), and if such a function could include user galleries (maybe va $source?), which the current one doesn't seem to? I'm just thinking it could display album name/link with thumbnail (also link to album), date updated, and possibly number of new images added..
cheers
luke
Well, its always great to hear some got it working anyway.
For including user galleries (Well private ones anyway)You can always include user galleries by setting the private setting off after making your initialization call and before asking for images. From the documentation files:
cpm_unlockPrivate($bool)
This toggles access to non-public photos (default: false) It allows images not publically available to be selected and displayed until it is turned off, or the object is lost. This program makes no distinction beyond if a media item is public or not - Meaning that photos that may be viewable by logged in users are considered private, not something in between.
So you call for any of them would look like so...
<?php
include "./CoppermineFetch/coppermine.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_unlockPrivate(true);
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
Hmmm, now that I think about it - that does not really help you.
Well, this one does show updated albums... it does not take a source parameter since it should just cover all albums that are publically viewable. I can't remember exactly... give it a try and see if things work out.
cpm_showAlbumsUpdatedOverLastDays($numberOfDays,$options="")
Displays a list of albums with thumbnails and count over past days. Supports the setReturnType option.
As for limiting to the last 5 updated, no that is not in there right now. Sounds like a good idea though
Sorry if this is somewhat disjointed... I have this nasty headache rolling in right now
Let me know if I am way off on any of this...