Tomi Junnila was kind enough to submit two edits to the Amazon Wishlist plugin. They include the ability to search non-US Amazon stores and an enhancement to the way multiple pages of results are fetched. (Formerly, it had been one page or all pages, with a request sent per batch of ten. So if you had 600 items in your wish list, you were sending 60 requests in order to print a single random item. Tomi’s change allows you to specify the number of pages of results to return, affording you more than the default ten results without blackholing you into request hell. Thanks, Tomi!
Download from the usual link in the nav bar.
[...] y gmhowell @ 6:34 am
I was having trouble with the amazon wishlist plugin from daryl. It included ‘class-snoopy’ entirely within the plugin. I don’t know if this [...]
I got it. Fixed the problem I was having with the magpie problems. The following worked for me, should work for others:
1. Delete the entire section starting with:
2. Insert the following line (I put it somewhere after the ‘do not edit after this line’ area:)
require ('wp-includes/class-snoopy.php');Now I have both the wishlist and the dashboard works correctly. Even better, I’m going to start working on getting that other thing working that I talked about before.
(Ain’t insomnia grand?)
Amazon Wishlist
Two Ells Amazon Wishlist Plugin Updated.
I hope I can use this function on XOOPS.
XOOPS
Amazon Wishlist Plugin
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…
I was having some trouble with your plugin on version 1.5.2004-01-04. The dashboard uses magpie rss. Your plugin uses snoopy. The two libraries have some functions with the same name. Any ideas how to work around this?
(Hope you don’t feel like I’m spamming:)
Okay, Magpie is a patched version of Snoopy. I don’t know how much of Magpie is present in the stock 1.5. If any. I tried a few things:
Attempt A:
1. remove the snoopy code at the end of your plugin
2. load page; it doesn’t work. Can’t find the command (snoopy??)
Attempt B:
1. remove snoopy code from your plugin.
2. activate and call gallery-rss from my index.php; everything works (but I had a minor error. Seems like Amazon couldn’t find the image I was trying to load. I waited to do further testing at this point. IOW, i don’t know if the dashboard loaded. But I did find that it seems like the functionality amazon-wishlist needs is found in an install of magpie.) So it seems like a ‘require’ line is needed in your plugin to be 100%??
wp_install_directoy/wp-includes/class-snoopy.php seems to be the file to look at.
I’m going to check with the author of the other plugin and see if it really needs an external install of magpie.
Thanks for the quick reply. I just added a link. I’d love to see those features.
I’d just like to comment, as for the “dev token”, as I was really confused until I took it upon myself to read up on the Amazon Developer website. It seems they have renamed it to ‘Subscription ID’, with the migration of AWS 4.0
You might want to change this, or make comments about this in the plugin.
You can find more information about this at the following link, on the AWS forums:
http://forums.prospero.com/n/mb/message.asp?webtag=am-assocdevxml&msg=7141.1&ctx=0
That line of code, obviously, got mucked up by the translation to HTML.
It’s supposed to look like this:
$aw_html .= "\t\t<a class=\"amazon_wishlist_link\" href=\"" . $results->url . "\"><img class=\"amazon_wishlist_image\" src=\"" . $results->{$image_size} . "\" alt=\"Wishlist Image\"/></a><br/>\n";
Hopefully that will show up right, with the slashes
Darryl, love the plugin, but I have noticed one small problem with it: what it generates is not valid XHTML, and even if that is corrected using the default placement at the end of categories hoses the XHTML of the main page.
The quick fix for the first problem is to alter the generated code to include alt tags for the image, and to close the IMG tag.
I have something like this:
$aw_html .= “\t\turl . “”>{$image_size} . “” alt=”Wishlist Image”/>\n”;
The issue with default placement is that where the filter drops the wishlist stuff screws up the and hierarchy. There is probably a solution for this that involves conditionally wrapping the wishlist generated content in tags depending on whether or not the automatic placement flag is set–I’ve got around this by manually placing the plugin tag in my index for now, which can get me to valid XHTML.
You can see both of these issues on Two Ells by just hitting the ‘valid xhtml’ link on your Meta menu.
Hi there, I seem to have done everything right but it is still not showing up. I have put in my developer tag and assoc id but nothing. Its a real sweet plugin if I can get it working….any ideas?
Not sure this’ll work, but try going to about line 182 in the plugin. Look for the following code:
switch ($locale) {
case “uk”: $this->server .= “co.uk”; break;
case “us”: $this->server .= “com”; break;
default: $this->server .= “$locale”; break; // Untested!
}
And add a line after the “us” line that reads:
case “ca”: $this->server .= “ca”; break;
Then, in about line 36, change:
$aw_locale=’uk’;
to
$aw_locale=’ca’;
I’m in the process of setting this up without much luck yet. I took a shot in the dark and input “ca” for Canada and placed all the relevant data for my own wishlist but not even a glimmer appears on my site to show that the plugin is even active.
I’m sure it’s something simple but my big question is this:
Do you have a support forum, section, area, or FAQ, where I can find some answers?
Thanks to you and the others that contributed for your efforts on this.
Thanks for the cool plugin. Just a note that I modified it some myself so it would randomly pick my wishlist or my wife’s wishlist, allowing for two or more wishlists to be searched.
Odd bug seems to be that if an item doesn’t have an image, it doesn’t display the text either, I am not sure if that crept in with my modification or not.
How can I link the wishlist items to my wishlist.
If someone buys me something they would need my shipping info.
My wishlist also wouldn’t remove the items purchased.
Also. Can I use this script to pull a complete view of my wishlist? Instead of just the single item as packaged.
I’m afraid this isn’t supported. You could hack the code pretty easily to add a link to your wishlist. Just scroll down to the bottom of the amazon_wishlist() function and look for the lines:
[php]
$aw_html .= “tn”;
$aw_html .= “n”;
[/php]
Add something like the following between the two lines:
[php]
$aw_html .= “view my wishlist“;
[/php]