[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Newbie help - Filters - Update to 5.4 - Sign emails


Mark Halliday <suppressed> wrote:
> Results in the following output in emails:
> 
> [item-filter pound2gbp]&pound;24.99[/filter]
> 
> I have tried the following substitution criteria as well:
> 
> $val =~ s/&#163;\s*/GBP /g;
> $val =~ s/\&\#163\;\s*/GBP /g;
> $val =~ s/`&#163;`\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:

    [item-filter pound2gbp]&pound;24.99[/filter]

Then the filter will need to look something like this:

    $val =~ s/&pound;\s*/GBP /g;

If you want to use "&#163;" 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:

    [item-filter pound2gbp]&pound;24.99[/item-filter]

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.