ReReplacer Compatibility

More
29 Aug 2011 07:33 #1968 by directivesi
joomlamailer version: 1.7.2
Joomla! version:1.5.23

Love Joomlamailer so far! Thanks

We use a plugin called ReReplacer in our sites for articles and K2 Items.

It allows use to use a word like "COMPANYNAME" in a post and on the front end and in RSS feeds it shows the Company name.

However Joomlamailer shows the "Tag" like "COMPANYNAME"

I am stuck on this and K2 Images working.

Links to rereplacer:

www.nonumber.nl/extensions/rereplacer

Thanks in advance!!

Please Log in or Create an account to join the conversation.

More
29 Aug 2011 13:32 #1970 by pete
Replied by pete on topic ReReplacer Compatibility
Hello directivesi,

The ReReplacer extension seems to work only for specific components, which does not include joomlamailer. However if you need to replace a specific string in your campaign you can hardcode that by editing the file /administrator/components/com_joomailermailchimpintegration/controllers/create.php

Insert the following code in line 818 and 1868:
Code:
$template = str_ireplace( 'COMPANYNAME', 'Acme Ltd.', $template );

This will replace all occurrences of 'COMPANYNAME' (case insensitive) with 'Acme Ltd.'
If you need to replace several strings just repeat this line.
Line numbers as of version 1.7.2

Kind regards,
Pete

Please Log in or Create an account to join the conversation.