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-
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?
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?