[ic] Newbie help - Filters - Update to 5.4 - Sign emails
kevin at cursor.biz
Sun Feb 5 14:16:46 EST 2006
Mark Halliday <bmhtdev at yahoo.co.uk> wrote:
> Results in the following output in emails:
> [item-filter pound2gbp]£24.99[/filter]
> I have tried the following substitution criteria as well:
> $val =~ s/£\s*/GBP /g;
> $val =~ s/\&\#163\;\s*/GBP /g;
> $val =~ s/`£`\s*/GBP /g;
> I have also tried [filter pound2gbp][item-price][/filter].
> None of the above seem to work. It is as if the filter is not being
> called at all.
Perhaps the filter is not being called at all, as you suspect.
Did you just rename the file, or did you rename the filter definition
within the file as well?
If you're calling the filter as follows:
Then the filter will need to look something like this:
$val =~ s/£\s*/GBP /g;
If you want to use "£" then you must do so in the input as well
as in the filter substitution.
Oh, one last thing I just noticed. I copied/pasted your test case
without noticing that you have a syntax error in the closing tag.
Use the following instead:
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users