Gallery-RSS Wordpress Plugin
Alright–with the help of magpie RSS, I cooked up my first Wordpress Plugin–as you can see to the right, it takes the RSS gallery feed and generates N number of thumbnails (you specify) of the recently updated galleries of the particular gallery (you specify) , optionally displays captions (you specify) and allows you to style the unordered list via CSS tags specific to the plugin.
Suprisingly, I could find nothing that does this for Wordpress.
It is available in its current form (caching isn’t working properly, in fact maybe not at all–I just haven’t seen any ill effects yet) below:
Installation and usage instructions are in the file.
An example of it in action is on the sidebar of my homepage.
UPDATE 2/23 - working on an update to the plugin–attempting to fix my personal problems of unexpected weirdness that seems to crop up depending on what images have been updated (i.e. the next set of text appearing immediately to the right of the four boxes on my site). You’ll be able to specify the number of columns maximum to display; i hope this will help some of you as much as it will, me. :) I’m encouraged to know that this runs just fine with Movable Type as well; gives me some motivation to cook up some other things around the plugin (i hate software bloat so my *intent* is to be as modular as possible).
Add New Comment
Viewing 43 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Take and shower and hurry up, we've got places to go, people to see!!!!!
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
on, and one i need to add to the instructions! Thanks for the checking this out, and your swift feedback!<li>
< ?php echo gallery_rss(4,"",0,0.50,"div"); ?>;
< /></li>
Do you already have an account? Log in and claim this comment.
I'm trying to get this work. In my wp-sidebar template i'm calling
< ?php echo gallery_rss(4, '', 0, 1.0); ?> < />. But always width and height are zero. I think because you are calling $rss->image and I don't find any "image" element in rss generated by "gallery". Element < pb : thumb > and height attributes. Shouldn't we read those values instead. Am I making any sense ? Please let me know where I'm going wrong.Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Looking at the magpie RSS website, it appears that attributes are not currently supported. From the TODO section:
j.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Jaibharat, thanks for the hacks! I'm going to wait until Magpie properly implements attributes (hopefully you've contacted them with your changes!) before updating the plugin.
thanks again!
j.
Do you already have an account? Log in and claim this comment.
Gallery-RSS Wordpress Plugin
Alright—with the help of magpie RSS, I cooked up my first Wordpress Plugin—as you can see to the right, it takes the RSS gallery feed and generates N number of thumbnails (you specify) of the recently updated galleries...
Do you already have an account? Log in and claim this comment.
Simple PHP Gallery (with built-in support for Wordpress)
http://www.relativelyabsolute.com/spg/
SimplePie (a super-simple RSS parser)
http://www.skyzyx.com/projects/simplepie/
Do you already have an account? Log in and claim this comment.
(excuse my poor english)
Do you already have an account? Log in and claim this comment.
For my purposes, menalto gallery works perfectly as well.
Particularly since I am familiar with it (always a top consideration)
Gallery will allow me to allow friends to place their photos up as well.
and there exists an iPhoto to Gallery plugin.
Wait a second--why are we discussing the merits of gallery software? I just wrote a plugin that serves *my* purposes. :)
Do you already have an account? Log in and claim this comment.
Two Ells Amazon Wishlist Plugin is pretty cool. If you look over to the right and scroll down, you'll see a random item from my wishlist at Amazon. Even if you aren't going to buy it for me (and you really should), it's just a way to get to know me...
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
if you happen to come across a module for gallery 1 that allows custom RSS feeds, you should be able to point to one of them in the plugin and it'll read that instead (although there's no guarantee that the format of said RSS would match the "standard" rss.php that comes with gallery).
hope this helps!
Do you already have an account? Log in and claim this comment.
http://www.bovine.net/~jlawson/gallery/rss2.phps
I saved that file as rss.php in my Gallery install directory.
I've only got one actual size thumbnail showing with "ul" layout because with four thumbs and the "div" layout the rest of my sidebar kept getting thrown off whack... if I knew more about css it probably would be really easy to fix... but for now I'm happy with at least the one "most recently added" photo showing up.
Thanks again.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
"Warning: MagpieRSS: Failed to fetch http://www.stewartville.org/gallery/rss.php. (HTTP Response: ) in /home/.ike/stewartville/stewartville.org/news/wp-content/plugins/magpierss/rss_fetch.inc on line 239
Warning: Invalid argument supplied for foreach() in /home/.ike/stewartville/stewartville.org/news/wp-content/plugins/gallery_rss.php on line 128"
I've looked online a bit, like Magpie FAQ, etc. and it seems like if it can't access the rss.php, then there should be a way to have the cache loaded rather than report the error. I thought I'd followed suggestions to avoid it correctly, but I still get the error quite frequently when my page loads. A refresh usually fixes it, but not always.
Do you already have an account? Log in and claim this comment.
i'll have to look into this as well.
when you say
you did this by modifying the php code?
i'm not familiar with what the Magpie folk say to do to avoid it, so i'll have to look it up--i'll let you know.
j.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
thanks again for letting me know!
j.
Do you already have an account? Log in and claim this comment.
check my blog @ UrbanWordz.com. My gallery is small right now as i just installed it.
lj.