La Case de l’Oncle Tom

Développement Web, bonnes pratiques et performances

Amazon Widgets Shortcodes

I was pretty tired of copy/pasting ugly code to share Amazon affiliate links. So I decided to use the power of Wordpress shortcodes to create a tight plugin with valid XHTML code, painless usage and maximum benefits !

Amazon Widgets Shortcodes preview

Amazon Widgets Shortcodes preview

Features

  • Amazon Internationalization : Canada, France, Germany, Japan, UK and USA
  • Locales support : Belorussian, English, French and Italian (opened to contributors)
  • Nice integration in the Rich Text Editor TinyMCE
  • Copy/Paste Amazon HTML code
  • Strong usage documentation
  • RSS filtering : republish your content without your widgets inside
  • Supports Amazon context links and Amazon product preview
Download Now

Supported widgets

  • Carrousel
  • Deals
  • MP3
  • My Favorites
  • Product Preview
  • Product Links
  • Slideshow
  • Product Cloud
  • Wishlist
Amazon Widgets Shortcodes integration in Text Editor

Amazon Widgets Shortcodes integration in Text Editor

Commentaires & rétroliens

  1. KC CLARK dit :

    Can this be placed into a sidebar widget. I am using WooThemes FreshNews. THe sidebar max is 300px wide . . I’d like to include randomly all the books that my pastor is reading on his blog . . . If you have any help on this please share. I am a newbie but can fiddle with code enough to make it work. If I’m not sure of what you’re solution is I’ll ask so feel free to let me know what yo think first.

    Thanks for sharing your gifts to the WP community,
    KC

    • Oncle Tom dit :

      Actually you can’t place it in a sidebar widget.

      It will be the case in the 2.0 version as it will integrate both a quick insert (from widgets history inserts) and later, a collection manager.

      But it won’t be available within weeks as it’s quite a huge work.

  2. Do I need to use the visual editor in Wordpress to get this to work? I really don’t like the visual editor, so it’s normall switched off.

    • Oncle Tom dit :

      Nope it’s not required. The tool provided with the visual editor is just here to help you building the shortcode.

      There is a documentation (displayed within the post screen if the correct option is enabled) which describes you each shortcodes and parameters.

  3. George dit :

    Hello, and thanks for the very helpful plugin. I hope to donate and support your work soon.

    My question is about padding around a product widget. Is there an easy way within the plugin or by using a div layer some way to have the text wrap around a product widget but also pad the area by 10px?

    Thanks very much!

    • Oncle Tom dit :

      Hello,

      all widgets are wrapped in a layer with a specific class (as well as alignment informations) so it’s up to you to customize padding and margin.

      Isn’t it enough?

      • George dit :

        Hello, I did indeed find the layer that day and was very pleased to see this. Unfortunately, I neglected to come back here and retract the comment. My apologies This is the best Amazon plugin for WordPress today.

        Regards,
        George

        • Greg dit :

          « …I did indeed find the layer that day and was very pleased to see this »

          I have looked everywhere I could think of on how to customize the padding and margin and cannot figure it out. What file did you edit? And where?

          Greg

          • Look under Settings / Amazon Widget Shortcodes

            and click on the documentation button for more info.

            The class definitions are there and in the plugin editor.

  4. Lucato dit :

    Hi Oncle, nice to meet you. Thanks for sharing nice plug-in. I didn’t get to make it works with « Amazon Deals ». Some doubts and comments:
    1) How do I know the Widget ID# from Amazon? Let’s suppose I want to use the widget « Recommended Product Links », how do I know its ID#?;
    2) Talking about this « Recommended Product Links » widget, in your plug-in Amazon Deals/Main Option, IMHO it should have the options to select a product line (books, camera, garden, etc) and also add the Keyword. So, I can add the « Recommended Product Links » widget in the right way;
    3) When copying and pasting the HTML code (Iframe) into the copy/paste code tab and « apply the magic », it is showing the following error: « Could not parse Amazon HTML code. It may be invalid or it is a bug of the plugin (then, please report it). » So, I’m reporting it. ;0)

    Thanks in advance.

    • Oncle Tom dit :

      1) You don’t really need to check for the Widget ID: if you use the Rich Text Editor, simply paste the ugly HTML code provided by Amazon and it will identify it for you.

      Otherwise, the documentation included in the plugin settings page will be to help you locating and configuring any widget.

      2) I’d like to implement such a thing. Product line varies from an area to another and I’d like to rely on hardcoded values.
      That’s why I’m working on linking to Amazon API to make everything even more easier … without leaving WordPress.

      3) Could you drop me the code you tried to paste (maybe through the contact form, to avoid the HTML to be filtered in the comments), and for which widget? It would help me to fix the problem :) Thanks!

      • Lucato dit :

        Hi Oncle Tom, thanks for your reply.

        I’ve sent you the code through the contact form as requested.

        Have a nice day. ;0)

        • Oncle Tom dit :

          Sorry to have let you wait so long.

          Indeed, I was not aware of the Recommended Product feature. It’s different of the « Amazon Product » widget the plugin offers.

          You are having the error message because in the Recommended Product Links, there are no ASIN code.

          I should definitely add support for this feature.

          • Lucato dit :

            Thanks for your reply Oncle Tom.

            I hope you get to add this feature next year. :0)

            Have a Happy New Year!

            Cheers,
            Lucato.

  5. [...] Amazon Widgets Shortcodes adds a button to your post editor that allows you to easily insert an Amazon carousel, slideshow, or link to an Amazon product through your affiliate store – very useful if you’re reviewing products. [...]

  6. [...] Amazon Widgets Shortcodes adds a button to your post editor that allows you to easily insert an Amazon carousel, slideshow, or link to an Amazon product through your affiliate store – very useful if you’re reviewing products. [...]

  7. Decha Kunla dit :

    Dear all,

    I install « Amazon Widgets Shortcodes » on my WordPress Blog and i include some amazon product (ASIN) on page. Resule it show pretty on FF,GC,Opera,IE 8 but Not IE (6,7). Please anyone help me.

    Here are my blog: http://jzsilver.roietonline.net/jewelryblog/

    Decha Kunla

  8. rosmont dit :

    Bonjour Oncle,

    I´m trying for the first time to build up a website, I got Essence Red Thème, and when I create an Amazon affiliate´s link in a page (apparently successfully) when you open it it gives a very bad error warning. What can I do to insert my Amazon affiliate´s links, and would this plugin be the solution for me?
    In which case, how to use it?

    Merci de votre aide, tout conseil sera bienvenu,
    r

    • Oncle Tom dit :

      Could you copy/paste your bad error warning? It could help me much better to advise you what to do ;)

      • rosmont dit :

        Cher Oncle Tom,

        Merci, voici le error message:
        ___________________________________________
        Forbidden
        You don’t have permission to access /<iframe src= »http://rcm.amazon.com/e/cm on this server.

        Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
        ——————————————————————————–

        Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at vivirconbienestar.info Port 80
        _______________________________________

        • rosmont dit :

          Cher Oncle Tom,

          I had the idea of just downloading your product and yes, MAGIC, apparently it’s working, whereas the simple LINK for Admin does not work at all.
          So MERCI BEAUCOUP.
          Je reviendrai si j’ai un problème, mais ça a l’air de marcher like a charm!

          VOUS ÊTES GÉNIAL

  9. Raefors dit :

    I have installed and used your plug-in and I really like it. So much, in fact, that I would like it to be accessible across multiple blogs on my Wordpress (MU) site.

    The only issue I am having is that the plug-in doesn’t « remember » the Amazon Tracking ID value when a new blog is created.

    For example, if the site’s main blog has the Amazon Tracking ID value entered within the form:
    http://mysite.com/wp-admin/options-general.php?page=awshortcode-options

    …and then I create a new blog called « test, » the Amazon Tracking ID input (and any other customization) is missing from:
    http://mysite.com/test/wp-admin/options-general.php?page=awshortcode-options
    (Note: I am using the mysite.com/test WPMU setup rather than the test.mysite.com setup.)

    I had the same issue with the Akismet plug, because it too requires an input of the Wordpress API key for each blog. The solution that Akismet provides to get around the issue is outlined in the main akismet.php file (line 14):
    // If you hardcode a WP.com API key here, all key config screens will be hidden

    So, by insert one line of code:
    $wpcom_api_key = ‘41example50′;
    …Akismet « remembers » the input across all new blogs.

    In a WPMU (multi-user) environment, this is not only a matter of convenience, but necessity, because all new users with new blogs will not be savvy enough to figure out how to create and configure ID’s (for Amazon Tracking, or Akismet).

    Having explained the problem I am facing in trying to use this plugin in a large setup with many blogs, is there a workaround similar to the one that Akismet provides? In other words, is there some Amazon Shortcodes .php file where I can insert my Amazon Tracking ID once, so that the user will not see the Dashboard warning message:
    « Amazon Widget Shortcodes has been activated.
    You need to setup your Amazon Tracking ID in order to see your shortcodes display Amazon Widgets »
    with every new blog that is created?

    I assume the solution is not too difficult, since the issue is analogous to that with the Akismet plug-in. I hope you can see the solution! Thanks in advance. I guess my problem is that I like the plug-in so much I want to use it on too many blogs. :)

    • Oncle Tom dit :

      Your request sound legitimate to me. Indeed each WPMU website act as a new instance, independant of the master one.

      I’m not fond of modifying the original plugin file because in case of update, you have to manually repeat your customization again.

      So if I understand well, you want each new blog to have the same Amazon ID as your master blog?

      • Raefors dit :

        Yes, that is correct. Precisely.

        • Oncle Tom dit :

          I’ve implemented something for WordPress Mu in @187917 : when a new blog is registered, 1) the plugin is automatically enabled and 2) it copies your ID from the master blog.
          So it can work as soon as the blog is created. No need to let users access to the « Plugin » panel.

          It’s not released yet but you can grab it from the development version.

          I’ve done only basic testing: creating a blog from the dashboard blog. Be aware and test it further according to your usage/needs.

          Enjoy.

  10. Markus dit :

    Hi. I like the idea of this plugin and would also donate it, but it does not work.

    - having installed and put the caroussel widget html into the editor plugin. so i see the amazon code in the window and press update but the Carousel widget does not appear whereas the ‘Amazon Product’.

    version wp 2.8.6 and widget 1.5.2

    what is the problem. pls help me

    thx markus

    • Oncle Tom dit :

      Hi Markus,

      I’ve tried it right now, on the latest WordPress 2.8 and I got the carousel working. As I wrote just a few minutes ago, sometimes Amazon widgets screw up themselves. On page refresh, they show up correctly.

      If it’s still not working, please copy/paste your shortcode here, with your current Amazon Area.
      Otherwise, if you have a publish URL I can see the broken widget, I can check on it too.

  11. Matt dit :

    Howdy,

    It appears that this plugin does not work with wordpress 2.9, it’s creating the player code for slideshows, but the objects fail to be display.

    Pretty easy to spot on a clean 2.9 installation.

    Matt

    • Oncle Tom dit :

      Thanks for the report. I’ll check it out within the week, with the others problem too.

    • Oncle Tom dit :

      Hey Matt,

      I’ve tried to add slideshows on a fresh WordPress 2.8 and 2.9 and I got this working. Could you paste your shortcode (just the shortcode) and tell me which Amazon Area do you use (UK, US etc.)

      Sometimes their widgets just get stuck on something and don’t show up. When you reload the page, it may works (again).

      Keep me in touch!

  12. mattshelton dit :

    Hi Tom, your plugin’s options page does not work in WP 2.8 — the Save Changes button throws an error because « options.php » is a local reference, and the options-general page doesn’t know what it is.

    If you change line 25 of amazon-widgets-shortcodes/admin/view/options.php to the following, this resolves the issue:

    <form action="?page=awshortcode-options  » method= »post »>

  13. Hannes dit :

    Hello Uncle Tom! When clicking on the Amazon Logo in TinyMCE nothing happens. I am using Wordpress Version 2.9.1 DE-Edition.

  14. izabeal dit :

    I spent all day looking at Amazon plugins. This one is nearly perfect. I can’t wait to put my Amazon widgets into my WordPress widgets.

    « Actually you can’t place it in a sidebar widget.

    It will be the case in the 2.0 version as it will integrate both a quick insert (from widgets history inserts) and later, a collection manager. »

    I’m excited for v2!! Thank you! Good luck and thanks for all your hard work!! :-)

    xoxoxoxox
    iza

  15. Afpakwar dit :

    Great plugin! Thanks. Not being very computer literate I just use the Producr Links facility at the Amazon site to get the html code that I can paste in easily on the copy/paste tab of your plug-in and it works!

    One — maybe elementary problem — is that when I use « Text and Image (Enhanced Display) » I can’t get the text to wrap around the graphic. (The graphic is left-justified, with empty space to hr right, and the text starts below it.) How can I fix this, please?

  16. Ron dit :

    Amazon Shortcodes 1.5.2 is causing my pages to load very slowly since the latest release. I’ve deactivated all plugins except for it and it definately is causing slow page load time.

    • Oncle Tom dit :

      Strange. Since the latest release of the plugin or WordPress? Because the change I applied is so tiny it can’t cause such problems.

      Maybe you have a lot of shortcodes shown on your page? Could you tell me how many do you have?

      And what do you consider in the load time: before the HTML is rendered or before the page is considered as loaded by your browser? Because if there are lots of widgets, it means lots of data to download from Amazon (JS, Flash etc.)

  17. [...] 3. Amazon Widgets Shortcodes Plugin If you want to add Amazon recommendations to your blog articles, then you will need this plugin. If you don’t know by now, Wordpress strips the code from Amazon ads if you try to copy and paste the html in your posts – so you will need this plugin to insert the code properly. Great idea if you add “additional resources” at the end of your articles which I occasionally do on this site, but do a lot on my other sites. 4. CommentLuv Plugin This plugin allows you to show the last post from a commenters blog. Commenters love this plugin and often ONLY pick blogs that have this plugin enabled. So it provides a good incentive for folks to leave decent comments on your blog articles. A win-win situation for everyone. 5. Comment Relish Plugin If you don’t have the time to respond to every commenter on your site, this plugin helps by sending an automated “thank you” email note to users after the FIRST comment on your blog. Although it’s automated, you still get to write a personalized note, so it really gives your site a personal touch. Not everyone does this – so you will stand out. (I use this in addition to replying to the commenter on my blog) [...]

Répondre

Balises HTML autorisées : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Thème graphique par LeslyG, intégré par Oncle Tom.
Propulsé par WordPress, Blueprint et WP-LESS.