Gossamer Forum
Quote Reply
Amazon Global
I have been playing around with Amazon’s new affiliate program. I would like to have the category name or search term inserted into the banner code.
For the category name I want to use commas, spaces or “+” between words, or phrases. To make a long question short- can I modify the following global to use “%20” or “+” by substituting them in
$cat =~ s|/|, |g; ??

$cat =~ s|/|%20|g;
$cat =~ s|/|+|g;

I am basing it on the global that puts comma-space in the cat name-

Code:
sub {
my $vars = shift;
my $cat = $vars->{category_name};
$cat =~ s|/|, |g;
return $cat;
}

How about search terms? Is there a tag that I may use for this also? I am assuming there must be since Lsql has several plugins for banner programs.

Or am I making this harder than it should be?
Smile

Subject Author Views Date
Thread Amazon Global jgkiefer 12151 Nov 20, 2001, 2:30 AM
Thread Re: [jgkiefer] Amazon Global
Paul 11879 Nov 20, 2001, 4:40 AM
Thread Re: [PaulW] Amazon Global
jgkiefer 11864 Nov 20, 2001, 7:25 PM
Thread Re: [jgkiefer] Amazon Global
Matt G 11819 Nov 20, 2001, 9:51 PM
Post Re: [Matt Glaspie] Amazon Global
brewt 11819 Nov 20, 2001, 10:07 PM
Thread Re: [Matt Glaspie] Amazon Global
jgkiefer 11871 Nov 21, 2001, 7:05 AM
Post Re: [jgkiefer] Amazon Global
Matt G 11783 Nov 21, 2001, 8:57 PM
Thread Re: [jgkiefer] Amazon Global
HopeForYou 10440 Jun 1, 2009, 7:54 PM
Post Re: [HopeForYou] Amazon Global
Andy 10439 Jun 1, 2009, 11:53 PM