forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: nowordneeded on October 21, 2011, 04:00:47 pm

Title: Displaying Rotational Images in a Wordpress Theme
Post by: nowordneeded 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
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: Αndré 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.  ;)
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: nowordneeded 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
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: Αndré 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 = ""])
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: nowordneeded 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
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: Αndré 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.
Title: Re: Displaying Rotational Images in a Wordpress Theme
Post by: nowordneeded on October 21, 2011, 04:48:26 pm
Thanks so much. I'm closing this topic.

NWN