forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: imthegirloverboard on October 31, 2015, 09:01:16 pm

Title: Latest additions to gallery script for tumblr
Post by: imthegirloverboard on October 31, 2015, 09:01:16 pm
Hey all,

On my website (http://olsensobsessive.com) in my theme header there's a script (I assume its a script) that shows the latest additions to for the whole gallery (see attachment). Also I use tumblr to post if that makes any difference.

I was wondering if there was anyway I can place the script in a sidebar just to show the latest images from a certain category? I didn't make the theme & the person who made it isn't responding to my emails.

I apologize in advance if this has previously been asking.

Many thanks!
Title: Re: Latest additions to gallery script for tumblr
Post by: Αndré on November 03, 2015, 01:39:18 pm
Those block is probably added via the "CPMFetch" plugin. I currently don't know if it's possible to display the latest additions of a category, as I never used that plugin.
Title: Re: Latest additions to gallery script for tumblr
Post by: gmc on November 04, 2015, 03:47:28 am
If it is CPMFETCH - there are functions provided that allow filtering by album or category...
You are likely calling:    cpm_viewLastAddedMedia.  you would need to change to:
Code: [Select]
cpm_viewLastAddedMediaFrom ( $source, int $rows, int $columns, [array $options = ""], int $catid)
The functions ending in From all allow specification of filters ($source) - one or more categories, albums, owners.
Code: [Select]
"cat=5,3:album=10:owner=vuud"
Some good descriptions in the docs provided with CPMFETCH.
I would need to see the specific code you have today if you need further help.