I have been wanting to add my Amazon affiliate javascript as a banner ad on my site. For some reason the Banner module refuses to read this and generate the ad. Has anyone else had this problem, or am I missing something?

Comments

sun’s picture

Try using text mode to insert the javascript. When using javascript mode have to be no <script> tags in the banner code.

You might also have a look at
http://drupal.org/project/amazon_items
http://drupal.org/project/amazontools
http://drupal.org/project/amazon_filter
http://drupal.org/node/14952

doc oconnor’s picture

I am looking for this same solution. I have an idea. May need to allow this within the setting.php file. So you can connect to amazon to pull the data. Not sure.
I created a Block, and added the javascript code within source on block page. Then, I added the block to the footer. Yet, the image for the banner does not display. Just a box for no image shows. So, it must be because the code is pulling data from another location, and this needs to be configured in settings.php to allow it.
Hope this makes since. I am attempting to setup Banners and more from amazon, and will post if I learn anything. If anyone has any tips, please share them. Thanks.