Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Latest additions to gallery script for tumblr  (Read 2860 times)

0 Members and 1 Guest are viewing this topic.

imthegirloverboard

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • mkaeuphoria
Latest additions to gallery script for tumblr
« 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!
Logged
 *Image Removed*

 *Link Removed*

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Latest additions to gallery script for tumblr
« Reply #1 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.
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Latest additions to gallery script for tumblr
« Reply #2 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.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.