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: Displaying Rotational Images in a Wordpress Theme  (Read 2722 times)

0 Members and 1 Guest are viewing this topic.

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Displaying Rotational Images in a Wordpress Theme
« on: October 21, 2011, 04:00:47 pm »

My gallery is located @ http://mitchpileggi.org/gallery and I'm running the latest stable version of 1.5.16. I want to include a rotating image in the sidebar of my wordpress themed site. I'd like to know if there is a plugin that allows for this? What I mean is, I don't want the last images uploaded as I have in my theme currently, I want to have a new image display as a sort of 'Photo of the Moment' kind of thing, but I want it from the gallery or a certain album. Is there a plugin that does this?

Thanks in advance.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #1 on: October 21, 2011, 04:09:31 pm »

Use CpmFetch 2.0 found attached to the bottom of this post, http://forum.coppermine-gallery.net/index.php/topic,35450.0.html

Then read this post about making it work with Coppermine 1.5.xx  http://forum.coppermine-gallery.net/index.php/topic,65412.0.html

It should do what you need.  ;)
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #2 on: October 21, 2011, 04:23:31 pm »

Andre:

I already have Cpmfetch for 2.0 running on the site with my Latest Images displayed. Is there anything else I can use or can I use two copies of the PHP coding, one for the latest images and one for the image of the moment? My main site is http://mitchpileggi.org and you'll see I already have the latest images running.

Thanks.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #3 on: October 21, 2011, 04:35:21 pm »

can I use two copies of the PHP coding, one for the latest images and one for the image of the moment?
I don't know, but I think so. Please also have a look at the CPMFetch docs:
Quote
cpm_viewRandomMedia ( $rows,  $columns, [array $options = ""])
cpm_viewRandomMediaFromAlbum ( $rows,  $columns,  $albumid, [array $options = ""])
cpm_viewRandomMediaFromCategory ( $rows,  $columns,  $catid, [array $options = ""])
cpm_viewRandomMediaFrom ( $rows,  $columns,  $source, [array $options = ""])
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #4 on: October 21, 2011, 04:38:26 pm »

Andre:

So if it will work, I just use the coding from one of the lines you supplied?

Thanks.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #5 on: October 21, 2011, 04:45:11 pm »

I never used that plugin, so I cannot give further support. But if you're already using CPMFetch you should know how it works. Just use the correct function for the random images. The rest should stay the same, just give it a try.
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Re: Displaying Rotational Images in a Wordpress Theme
« Reply #6 on: October 21, 2011, 04:48:26 pm »

Thanks so much. I'm closing this topic.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.