block and other options

wayland76 - November 27, 2007 - 05:21
Project:Amazon Filter
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

I'd like it if the filter would insert the Amazon IFrame blocks. An example would be:

<iframe src="http://rcm.amazon.com/e/cm?t=<% $associateid %>&o=1&p=8&l=as1&asins=<% $ASIN %>&fc1=000000&IS2=1&lt1=_blank&lc1=cf0000&bc1=000000&bg1=ffffff&f=ifr"
style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

Where $associateid and $ASIN and the surrounding <%%> markers would be replaced with the appropriate text. I implemented it myself in two lines, but it had my associate ID hardcoded into it.

#1

wayland76 - February 9, 2008 - 04:10

Agreed. Patch attached. Also improves documentation.

AttachmentSize
amazon_filter_block.patch 1.27 KB

#2

wayland76 - February 9, 2008 - 04:11
Status:active» reviewed & tested by the community

#3

wayland76 - February 9, 2008 - 04:15

Oops, left out a parenthesis. Fixed now.

AttachmentSize
amazon_filter_block.patch 1.27 KB
 
 

Drupal is a registered trademark of Dries Buytaert.