• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to str_replace on thank you message...

How to str_replace on thank you message... 12 years 2 months ago #21804

  • dyvel
  • dyvel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
I have a form where I have done str_replace of both admin and user email text. Now I wish to do the same, but I can't find any documentation on this, and this doesn't work:
$modThankYouMessageText = $form->ThankYouMessageText;
 
if($_POST['form']['field'] == '1') {
  $modThankYouMessageText = str_replace('{field:value}','Text replacement',$modThankYouMessageText);
}
 
$thankYouMessage['text'] = $modThankYouMessageText;
$thankYouMessage['text'] = str_replace($placeholders, $values, $thankYouMessage['text']);

What would the correct code be?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!