Using Amazon with WP 2.7

My former handy plugin for inserting images and product information from Amazon into my blog stopped working with the upgrade to WordPress 2.7. I’ve been floundering since then, putting off posting book reviews and such because it was such a pain pulling in the Amazon images of the right size, without all the extra little bits (like “SALE” and “Click To Look Inside!”) that seemed to be added separately.

Well, this post explained a lot of what was going on in Amazon images, although I only “got” the gist of it (trust me, not that technical here). But it seemed clear that it was possible to put up a clean image linked back to an Amazon product page without too much extra fuss.

Abusing Amazon images

Amazon.com feeds out a lot of product images, putting out the same book cover (say) in a variety of sizes and formats. By experimentation, I found that they don’t actually have all the sizes and formats stored. Instead, they have a system that generates each requested image. The details of size and format are built into the image’s URL. – Ibid

More searching yielded this reasonably simple method, which puts a Javascript bookmarklet up on the toolbar where it can be clicked in order to generate a large image, sans advertising cruft:

Amazon Image Bookmarklets

If you ever find yourself looking for images of book covers, album art or commercial products, here are a few handy bookmarklets to grab the image from Amazon.

(Blogula note: SRSLY, go to Global Moxie to grab the Javascript bookmarklets)

Now browse to any Amazon product page and click on one of your new toolbar links. The largest available image for that product will be displayed in your browser with the indicated effects.

I will add that I took out the bookmarklets links because I’ve had problems with Javascript quoted in a blogpost before, so I’m just being a cautious beast. And also since I prefer to work with a medium image most often, I added a second bookmarklet, renamed it “Amazon Medium” and adjusted the size code in Properties:

_SCMZZZZZZZ_.jpg</pre> instead of <pre>_SCLZZZZZZZ_.jpg

Now supposedly it’s possible to add drop shadows with more code magic, but I’ll stick to my usual method if I want them. There’s lots more else you can do for fun (that first post WAS titled “Amazon Image Abuse,” after all) but for my needs, this will work until someone decides to fix the borked Amazon plugin.

Flickr Photo Album – Back From The Dead

Flickr Photo Album for WordPress : tan tan noodles – msg free since 2005

This Flickr plugin for WordPress will allow you to pull in your Flickr photosets and display them as albums on your WordPress site. There is a pretty simple template provided, but you can customize the templates 100% to match the look and feel of your own site. And if you want, you could also hook it up with Lightbox or any other number of display libraries. – Ibid

Okay, let’s try this again. I had a horrible experience with this Flickr plugin before and thought I had it fixed, but apparently the fixes were blown away by updates and theme changes. I just realized that there were still issues with it, because I noticed someone accessing a Flickr image on my blog using the Flickr Photo Gallery plugin, and it’s from a group again, NOT one of my own photos. This is precisely the behavior that was the problem; people thought I was using their images without permission, but the default settings displayed images from ALL my public groups. I had to laboriously check a HIDE box, and it seems that all the boxes were unchecked every time I upgraded.

But I haven’t found a better photo album plugin, and and the one by Joe Tan of TanTanNoodles has been updated, so I’ll cross my fingers and see what happens.

After downloading, David will need to look at this page, because it discusses some of the problems of unwanted groups continuing to be pulled in, and offers some patches. The links to patches date from before the last update of this blog, but we’ll still have to proceed carefully. The following seems to be very well documented and the plugin author participated in the discussion. It references some of the Flickr support pages and discussions that I haunted back when I had my spot of bother.

What steps will reproduce the problem?
1. Even with all my groups disabled I am still able to display group pages
and photo pages containing images that are not my own.
2. You can generate any group page by simply entering the group ID:
http://www.kuhnsfam.com/flickr/group/57074580@N00 (I am not a member of
this group)
3. You can generate any photo page by simply entering the photo ID:
http://www.kuhnsfam.com/flickr/photo/2162677183 (I do not own this photo)

While this behavior doesn’t expose photos or groups that aren’t already
visible to the public, I’ve seen reports of several people being accused of
copyright infringement because photo they did not own were being displayed
on their blog (see links below). I feel that if this issue isn’t resolved
it may result in people abandoning this wonderful plugin.

There should be an option in the preferences that completely disables all
group pages and all photo pages for images uploaded by other users.

http://flickr.com/groups/tantannoodles/discuss/72157603651837287/
http://flickr.com/groups/tantannoodles/discuss/72157603279055151/
http://www.flickr.com/help/forum/en-us/60121/

The current plugin version is 1.1, and this discussion dates from when it was v.092 and v.093. The home Googlecode wiki for this plugin is here. The patches that are there relate to older versions of the plugin.

My Peekchures, Let Me Show You Them

The image in the header is randomly displayed from my Flickr sets. Go ahead, refresh! Hey, it’s from our trip to Hawaii! No, it’s Rocky Mountain National Park! Wait, now it’s family members! Yay! Click on any page, gawaaaan. I just hope there aren’t too many clinkers in there that turn out to be resized and don’t fit the frame.

No Photoshoppery needed, I just selected the best of my full size, uncropped images with a special tag, modified a Flickr “photo badge,” and the images are then re-sized to fit the background frame with CSS. Thanks, Theme Hack and Frontender, for the point in the right direction! This will help motivate me to get my backlog uploaded to Flickr.

On The Verge

Doyce, whose blog posts I read most often at one remove via the miracle of quotes and feeds, starts it off:

I’m actively communicating online all day, every day, but my main blog languishes. Why is that?

Simplicity. Twitter tweets, facebook updates, Flickr photo posting, and sharing news articles with commentary… all of those things are easier and faster BY AN ORDER OF MAGNITUDE than posting via Movable Type.

Via What it boils down to is this… – doycetesterman

And ***Dave carries it forward:

Now, I don’t do Facebook, and have never had a justification (see below) for using Twitter. But my own blogging has suffered, net, because of my love affair with Google Reader, and the “Share” and “Share with Note” functionality in same. Where, once, if I wanted to post about something cool I’m reading, I had to be at my machine, open up a blog client, write something out, do some cut-and-paste excerpting and copy over the link … now I just click on a button to Share with other GReader users — or on another one and write out a quick note.

It’s that easy. That quick, painless, seductively easy. And the result is the flood of stuff that appears in the sidebar of this blog each day under “Unblogged Bits.”

Yes, it’s that easy to use a quick and dirty method to share a link, or comment briefly about some transient insight. But it’s not sitting down, thinking, and putting words out there for all to read. It’s not blogging. It’s not writing. It’s not taking the time and effort to craft something worth doing, whether it’s for one’s own enjoyment or the (possibly imaginary) edification of others. And sure, it may be because it’s incredibly easy to just jot something quickly on Twitter, or click a Google Reader “share” link on a mobile device. It’s convenient, it’s fast, and it works.

But I, too have been blogging a lot less in the last year or so – even with all the election stuff. Oh, sure, I was copying and pasting quotes and links and posting them in the blog, but that’s not what I consider to be real, deep, personal blogging. This blog is supposed to be my Pensieve, and I just have not been pulling whispy memories out of my head with an alder wand and storing them away where they’re safe; they’ve been left to fade away into nothing. Stuff happens in my not-terribly-interesting life; funny things are said, interesting insights are had, books are read and music is heard. But you’d never know it from the never-ending cascade of regurgitated newsblather I’ve been in the habit of posting lately.

The problem is time, or specifically the lack of it, and constraints on my use of it.

The speed of posting/sharing GReader items is important, but the ease and portability of that sharing is just as important. The fact is, my life has, for reasons I’m not altogether pleased about, gotten a lot busier in the last year. As a result, I don’t do much posting from the office, and evenings are often a choice between a dozen different urgent activities, only one of which is blogging. ***Dave, ibid

Like ***Dave, I can blog on the fly, but my tool of choice is the iPhone which is never far from my hand. Using the iPhone, I can even blog with my CMS of choice, WordPress, with pictures either emailed to Flickr and bounced to the blog via an email link from there, or direct to the blog itself using one of several plugins. But the limitations of the interface are that you must tap letters, numbers and symbols out with one or two fingers or thumbs, so you can never type as quickly as you could on a full-size keyboard. Certainly, much faster than someone on a cell phone could text, but not as fast as I’m typing now. And it’s not currently possible to copy text to quote, or a url to cite in a blog post, although within some applications there are work-arounds. It’s great for posting quick photos, though. And I could set up an email-to-blog interface if I really wanted, but it would be a security problem for the main blog.

I’ve chosen to do that instead with a Blogger blog that I consider an extension called ginny’s links galore. I send links there from within Google Reader, but it’s not possible to edit them first; the email link sends the whole post. I’d have to fire up Blogger on a full-size desktop or laptop computer to get anything useful done as to editing there. It’s just a stopgap.

The real problem, as stated, is time. There’s not enough of it after work, and I don’t even have kids or hobbies. When I get home, I tend to veg out for a while before dinner, whether David cooks or I do. And then there’s TV. Might play a few hands of solitaire, catch up on Reader either on a full-bore computer or the ubiquitous iPhone, and then bed.

During work? Not bloody likely. A couple of years ago, I used to update constantly through the day – I had work tasks that left me with a lot of pending time while waiting for processes to complete, so I’d blog a lot about stuff I was reading online. But that changed with a recent “NO INTERNET DURING WORK TIME” edict, which is pretty strictly enforced (with some exceptions if you are on a “sanctioned” site for work purposes, such as looking for hotels using Google Maps or catching up on travel or weather news. Part of the policy specifically states “no updating personal websites or commenting on websites,” too.

Yeah, it’s that detailed.

So for a couple of years, no netsurfing and no blogging from work. As Wonkette is wont to say, the end.

Early last year, enter the iPhone: a handy little appliance that allows me to netsurf, catch up on email, or play games while waiting for an incoming call (so long as I’m otherwise caught up on my tasks). Google Reader, my RSS feed reader of choice, turned out to have a really slick, clean iPhone interface (complete with Share Note button, nyah! and email button). I get a kick out of reading stuff my husband David, or ***Dave shares. I need to find more people who share, too. And I sometimes think it’s a shame that the great little shared-comments scroll off so quickly, but life moves pretty fast.

More recently – the week of Blago’s arrest, actually, when I was home sick – I got into Twitter. It seemed kind of dumb, but then I started seeing hints of why some people rave about it so.

For one thing, Wil Wheaton and Levar Burton are on there, talking about interesting stuff in their real lives and not making like they’re stuck up famous actor-types. They’re people with concerns and problems and triumphs and questions. Just like, yes this is a platitude, everybody else. But because they’re famous, they’re more interesting than most and get more attention. However, I’m also just as interested in Sockington the Tweeting Cat, who is hi-larious.

And I’m on Facebook, too. It’s only recently started to get fun again; it had become a drag because there were too many goofy applications and games requests.

For a while, I had it set up that all of my “tweets” from Twitter would go to Facebook, and I’ve got both services patched into the sidebar of Blogula along with my Google Reader items, which are called “RED57’s Googlies.” But I had doubled up too much: I had Twitter set up to automatically post a tweet whenever I blogged something, and I also had Facebook set up to post a status update when I “imported notes” from my blog automatically. It’s much cleaner and more sane now that my Twitter stuff stays put, and the Facebook stuff doesn’t get all snarled up.

And then there’s Flickr. Well, there’s a ton – like MANY MANY MANY hundreds of pictures from a few recent trips that haven’t been uploaded. In some cases, the pictures are still sitting on flash cards. There’s so much volume that I can’t seem to sit down and take the time to sort through the cards, pick out the best images, and deal with them in coherent, workable batches. YET, I seem to have time for endless games of Spider Solitaire, or Gawd help me, Space Cadet. I’ve been coasting along using my cameraphone to send photos to Flickr, but frankly, some of them haven’t been that good. I’m feeling the need to pay more attention to photography again.

Really, all this tweeting and status updating and Flickring ought to be the supporting cast to the star of the show, my main blog. And the lack of original content here has been bugging me enough lately that I’ve tried to make more of an effort. Recent updates and theme changes certainly help; the new WordPress interface makes it easier than ever to do great stuff, and it looks good once posted (especially when compared to the semi-automated posts at the Blogger version). One of my sidebar gadgets is a live visitor update dealio, and it tickles me no end to see how many people are trying to figure out how old their washer/dryers are and how to do drop shadows on images with CSS.

Reading these posts of Doyce’s and ***Dave’s make me want to get off my figurative and literal ass and blog in a more writerly fashion. Sure, I will continue to use Google Reader/Twitter/Facebook/Flickr and put content from those sources on the sidebars of Blogula Rasa, especially during the work day. And it is at least possible and not difficult to do a blog post using the iPhone only (but it’s not very efficient or comfortable for posts of more than a paragraph in length). But all the new beginnings this year are working in me like yeast in a batch of bread (or better yet, in a pail of homebrew).

I want to do better. I need to make time for real blogging. I feel like I’m on the verge.

Amazing Grace Theme

New year, new-ish version of WordPress (2.7) and I thought it was time to check out a new theme.

This one is called “Amazing Grace” by Vladimir Prelovac and seems to work pretty nicely out of the box. Instead of a long banner image rotated across the top on various pages, it has a smaller snapshot (which will be easier to deal with, editing wise). Those are not currently my pictures, but they’re similar to some I’ve taken on various trips, so I’ll be able to figure out how to substitute my own for the default ones. I’m not sure why it has links to 3 categories across the top, but they’re good ones to highlight, being the “uncategorized” one, the one for mini-posts or asides only, and the travel one. I may tweak font size a bit for readability so would appreciate any feedback. It looks good on Firefox/Windows but of course will also check it on Explorer and will need to hear from any users of other browsers or operating systems.

Will also add my beloved drop-shadow CSS, of course. That goes without saying.

UPDATE: Followed the instructions for adding social networking buttons to the entries. Not liking the pulsing, almost BLINKtag effect. More research is needed to turn that bit off but it’s not a deal-killer. I really like the color palette and probably won’t mess with it much, as it’s similar to another theme I had called “Talian.”

UPDATE II: Oh, HO!

It turns out that Flickr makes it pretty simple to add photos from your Flickr stream to your website, but they aren’t entirely obvious about how to do it. Flickr calls this method of displaying photos on your site a “badge”, and doesn’t display the link to the configuration page very clearly. I can’t even recall the last time I found the page anywhere on the main Flickr navigation, but instead had to track it down myself using Google.

So, save yourself time and just run over to www.flickr.com/badge.gne.

This sounds very familiar and do-able. I used a simpler version of this when I was using a template called Tiga on my own site and on the old Holy Moly blog and website. Basically, I specified 4 or 5 square thumbnails in the center column, which were random images from specific sets, in a horizontal array. The one for the church website utilized a lot of face shots of different parishioners and closeups of interesting things inside the church. It was designed to make it a friendlier and familiar place to visit. Worked pretty well, too: I got a lot of compliments from visitors and from the Diocese. I had edited the Flickr-generated mishmosh of code to take out the text link and some other unwanted stuff, similar to how Ryan describes, but without his attention to clean coding. I’ll see if I can get this working for sure; there’s something about the background image and there’s also something about the size of the images specified in Vlad’s theme instructions that I may have to tinker with.

UPDATE III: Further hint on how it’s done and a slightly different method using a modified background image is at Theme Hack.

UPDATE IV: Eureka!! Theme Hack’s method works like a charm. Here are the full instructions [with one minor modification-ed.]:

Modify header.php and place the following in the style tags near the top.

#portraitbg {
  background:url(/images/bg-portraitB.jpg);
}

#flickr_badge_image1
{
  position:absolute;
  left:14px;
  top:28px;
}
#flickr_badge_image1 img {
  border: none;
  width:283px;
  height:174px;
}

Create a badge with Flickr for the tagged photos you want in the header and in the final screen with the code to paste into your site look for the javascript call. Place this between the div with the id portrait-bg in header.php

Example

Once this is done, place the following image in the Amazing Grace theme directory under images and name it bgportraitB.jpg.

bgportraitb

NOTE: I arbitrarily renamed the image “bgportraitB.jpg” when I originally saved it because that was what it was actually named, so I adjusted the name of the image in the instructions above. The original instructions reference “bg-portraitB.jpg.” The theme’s original background portrait is called “bg-portrait” and that is how it is still referenced in the CSS. If I need to I can revert to the standard theme by commenting out the Theme Hack code. I think this is why the style statements above go into the header.php file, not the main CSS file. I think the style statement is actually calling out Flickr’s “image 1” and so it’s more precise than the general “uber-wrapper” statements that Frontender was using. Either method should work, with a little tweaking. Ignore that stray “P” tag in the text area box, it’s an artifact that I can’t seem to delete due to the weird way WordPress shows page returns in the editor.

UPDATE V: The Ultimate guide to Amazing Grace theme goodness and trickery is here. Vladimir’s WordPress forum, where an Amazing Grace theme board lives, is here. I’m thinking I need to figure out how to add more bookmarking links, specifically Google’s. I’ve seen mini-icons for a bunch of different sites at Pam’s House Blend. Oh, goodie, I get to edit the functions.php file again.

UPDATE VI: Merry Christmas 2009! I couldn’t remember how I’d set this theme up; basically any picture in my stream can be used as long as it’s in landscape mode, with the proper tag. So theoretically I could use my iPhone to add images to the pool “on the fly.” Just have to remember to add the tag.

XML-RPC LIBXML2 FIX: ABC123 OMG WTF AOK

Here’s how David fixed the problem I was having posting to WordPress from any source other than my normal edit window. See if you can make any sense of it; all I know is I can post to my blog from my iPhone, Flickr, Scribefire (I’m still using 3.1.3), and probably ecto/Linear again.

Geeky Ramblings » Blog Archive » Temporary LIBXML2 solution

The problem has been narrowed down to a bug in LIBXML2 that causes leading angle brackets “<” to be stripped off of posts when processed through the XMLRPC support in PHP. I logged the issue in the WordPress bug tracker, and the consensus is that the problem started manifesting after an automatic update applied by Fedora 8.

Well, to solve the problem I’ve moved Ginny’s blog to a temporary server
running in a base Fedora 8 install in a VMWare instance. Luckily WordPress stores most of its content in the MySQL database (not the images, unfortunately). A bit of NFS magic to mount the appropriate directory in the virtual system, and it’s working fine. The server itself only has Apache, PHP, MySQL client, SSH, and a few other bits & pieces to keep it running. No automatic updates, GUI, compilers, etc.

Once the bug is fixed (either WordPress, using a different XML processing mechanism, or LIBXML2) I’ll move her server back to the main server.

Okay. Got that? It’s a base Fedora 8 install in a VMWare instance. Natch.

Test Cattern

Flickr

This is a test of the Non-urgency Moblogization System. No cats have
been mobilized, there is no cause for alarm.

Ginny
I can has iPhone?

Via: Flickr Title: Test Cattern By: GinnyRED57
Originally uploaded: 26 Nov ’08, 8.44pm CST PST

UPDATE: Posting moblogged photos via Flickr works, WordPress is no longer stripping the HTML brackets!

My husband David will post a more technical explanation, but basically he set up the blog on a virtual server, and installed an older version of Linux running in VMWare on that server.

It’s complicated. Let’s just say I can now post to the blog from one of several third-party applications, and I’m going to test them all. They’re all useful, and handy for various reasons.

The “Star Trek” Eucharistic Prayer of the Episcopal Church

Naow that we can has a competent, intelligent preznit naow who is also spiritual, I’m reminded of a rarely-heard Eucharistic prayer from the Book of Common Prayer. I’m going to bug my priest, Steve, to use this one more often (he tends to either stray far from the BCP into other national church’s prayer books, or stick to the bog-standard “Eucharistic Prayer A.”

When I lived in Seattle and was a member of Trinity Episcopal, we prayed “Eucharistic Prayer C” during much of the later summer and fall, when a more ecological view was appropriate to the season. One of our older members was involved with the creation of this prayer back when the 1979 Prayer Book was being revised. It’s also known as “Star Trek” because it invokes “galaxies, suns, the planets in their courses,” and I always loved hearing it. We also used it whenever there was a NASA shuttle mission “up.”

God of all power, Ruler of the Universe
you are worthy of glory and praise.
Glory to you for ever and ever.
At your command all things came to be:
the vast expanse of interstellar space,
galaxies, suns, the planets in their courses,
and this fragile earth, our island home.
By your will they were created and have their being.
(Eucharistic Prayer C, Book of Common Prayer, p. 370)

PS this is kind of a test, because my husband David just updated this blog to the latest version of WordPress, and I’m kind of hoping the angle-bracket problem might be addressed.

UPDATE: Dammit, nope. The angle-brackets are still being completely stripped. This post was updated via Scribefire, a blogging platform I’d love to use more. At least it’s set for “scheduled posts” with enough lead time to fix the brackets before the post goes up.