Hello,
I am trying to paste the following using the HTML button on the WYSIWYG editor on the 'Email Templates' tab:
After I hit update it turns this into:
Is there any way to fix this so that I can get it to not strip out the code?
Thanks!
I am trying to paste the following using the HTML button on the WYSIWYG editor on the 'Email Templates' tab:
<?php
if( $_POST['paymentMethod'] == "credit" )
{
$redirect = "https://pay.myhomepage.com";
echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br />
<span style='font-size: 14px; font-weight: bold;'><a href=\"" . $redirect\ . "\">Click here</a> to continue.</span><br />You selected credit card as your payment type. You will be redirected to our payment gateway. Please be patient as this may take some time to load.";
}
else
{
$redirect = 'http://www.myhomepage.com';
echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br />
<span style='font-size: 14px; font-weight: bold;'>Please <a href=\"" . $redirect\ . "\">click here</a> to continue to the Homepage.</span><br />";
}
?>
<h2>Payment Method: </h2>
<?php echo $_POST['payment']; ?><br />
<?php if ($_POST['checkAmount'] != NULL) {
echo "I will mail a check payable for this amount:"
;}
?>
<?php if( $_POST['payment'] == "credit" )
{
echo "<a href=\"" . $redirect\ . "\">Click here</a> to be redirected to our payment gateway. Please be patient as this may take some time to load.";
}
?>
<?php if( $_POST['payment'] == "company" )
{
echo "Please bill $" . $_POST['companyamount'] . " to Federal ID # " . $_POST['feinum'];
}
?>
After I hit update it turns this into:
<span style="font-size: 14px; font-weight: bold;"><a href="\">Click here</a> to continue.</span><br />You selected credit card as your payment type. You will be redirected to our payment gateway. Please be patient as this may take some time to load."; } else { $redirect = 'http://cepd.okstate.edu'; echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br /> <span style="font-size: 14px; font-weight: bold;">Please <a href="\">click here</a> to continue to the CEPD Homepage.</span><br />"; } ?>
<h2>Payment Method:</h2>
<p><br /> Click here to be redirected to our payment gateway. Please be patient as this may take some time to load."; } ?></p>
Is there any way to fix this so that I can get it to not strip out the code?
Thanks!
Hi redrings,
I found that it will be a necessity to make a plain textarea and editor switch for the templates however at the mean time I know no solution to this, maybe try to look at the tinymce forums for a solution to striping PHP tags! let me know if you found a solution and cant apply it!
regards
Max
I found that it will be a necessity to make a plain textarea and editor switch for the templates however at the mean time I know no solution to this, maybe try to look at the tinymce forums for a solution to striping PHP tags! let me know if you found a solution and cant apply it!
regards
Max
Thanks! The gist of the conversation at the Tiny MCE forums is don't use it if you want to add php, so I think a plain text box option would be a good solution. I also like to use php in the emails to filter out fields that are left blank in the form so that there isn't a bunch of empty white space. Until then I'll uninstall beta 2 and go use the version with the plain text box. Anyway, keep up the great work - it's really starting to come together. I see many more licenses of this extension in my future, quite simply the best forms solution for joomla out there.
Thanks redrings! sure the plain texts will be coming soonπ
Thanks redrings! sure the plain texts will be coming soonπ
Hello again, I was just wondering if you had an estimated time for when we will be able to do plain text emails again.
Thanks!
Hi redrings,
the feature is already there in V3.0 stable long time ago!π
Regards
Max
the feature is already there in V3.0 stable long time ago!π
Regards
Max
Hi redrings,
the feature is already there in V3.0 stable long time ago!π
Regards
Max
Really? I can't believe I've been sitting around for 3 months waiting for it when it was already there! πΆ
I just took a look and can't figure out how to get it to do the plain text emails. Is there an option somewhere to turn off TinyMCE that I'm overlooking?
Thanks again!
Okay I found it! It's on the 'Setup Emails' tab under 'Email Properties'. I've been looking for it on the 'Email Templates' tab! :o
glad you found it!π
This topic is locked and no more replies can be posted.